@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");

@font-face {
  font-family: "Canva Sans";
  src: url("../fonts/CanvaSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("../fonts/CanvaSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #082c54;
  --deep-blue: #06294d;
  --blue: #0c3766;
  --gold: #c8a25c;
  --light-gold: #e7d3a7;
  --warm-white: #faf9f5;
  --white: #ffffff;
  --text: #252525;
  --muted: #777777;
  --border: #dcdcdc;
  --link-blue: #1769d1;
  --btn: #0e3564;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Canva Sans", sans-serif;
  background: var(--warm-white);
  color: var(--text);
}

body::after {
  content: "/REIGN SUPREME";
  position: fixed;
  left: 0;
  right: 0;
  bottom: -0.08em;
  width: 100%;
  margin: 0;
  font-family: "Canva Sans", sans-serif;
  font-weight: 800;
  font-size: 8.8vw;
  letter-spacing: 0.01em;
  line-height: 0.72;
  text-align: center;
  color: rgba(0, 44, 107, 0.14);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.login-page {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    url("../assets-html/login-hero.jpg") left center / cover no-repeat,
    var(--deep-blue);
}

.brand-overlay {
  display: none;
}

.brand-content {
  position: absolute;
  left: 8.4%;
  top: 31.5%;
  max-width: 78%;
  color: #fff;
  /* Artwork already contains the marketing copy; keep HTML for structure/a11y. */
  opacity: 0;
  pointer-events: none;
}

.brand-eyebrow {
  margin: 0 0 1.35rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(52px, 5.2vw, 86px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-title-gold {
  display: block;
  color: var(--gold);
}

.brand-title-white {
  display: block;
  color: #fff;
}

.brand-divider {
  width: 156px;
  height: 1px;
  margin: 1.15rem 0 1.25rem;
  background: var(--gold);
}

.brand-tagline {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f4f4f4;
  line-height: 1.45;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 28px 48px 28px;
  background: var(--warm-white);
  overflow: hidden;
}

.login-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 100% 18%, rgba(231, 211, 167, 0.28), transparent 62%),
    radial-gradient(ellipse 38% 42% at 100% 88%, rgba(200, 162, 92, 0.12), transparent 60%);
}

.welcome-line {
  align-self: flex-end;
  margin: 18px 56px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9a9a9a;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  z-index: 1;
  white-space: nowrap;
}

.welcome-line span {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(600px, 86%);
  margin-top: 28px;
  padding: 42px 52px 36px;
  background: var(--white);
  border: 1px solid rgba(220, 220, 220, 0.65);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 32, 54, 0.1);
}

.login-logo {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 auto 22px;
}

.login-heading {
  margin: 0 0 28px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: #4a4a4a;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #2b2b2b;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > .bi-person,
.input-wrapper > .bi-lock {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9aa0a6;
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 58px;
  padding: 0 44px 0 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  box-shadow: none;
}

.form-control::placeholder {
  color: #b0b0b0;
}

.form-control:focus {
  outline: none;
  border-color: #b7c4d4;
  box-shadow: 0 0 0 3px rgba(23, 105, 209, 0.08);
}

.toggle-visibility {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 22px;
  flex-wrap: nowrap;
}

.remember-me {
  white-space: nowrap;
}

.forgot-link {
  white-space: nowrap;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #2b2b2b;
  cursor: pointer;
}

.remember-me input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--btn);
  border: 1px solid #8aa0b8;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1.5px solid #8ea0b5;
  cursor: pointer;
}

.remember-me input:checked {
  background: var(--btn);
  border-color: var(--btn);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.forgot-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--link-blue);
  text-decoration: none;
}

.sign-in-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sign-in-btn .bi {
  font-size: 16px;
  letter-spacing: 0;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 18px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}

.register-section {
  text-align: center;
}

.register-section p {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

.register-section a {
  font-size: 15px;
  font-weight: 600;
  color: var(--link-blue);
  text-decoration: none;
}

.side-message {
  position: absolute;
  right: 22px;
  bottom: 78px;
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b0b0b0;
  line-height: 1.7;
}

.side-message span {
  display: block;
  width: 42px;
  height: 1px;
  margin: 10px 0 0 auto;
  background: var(--gold);
}

.login-footer {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  color: #8a8a8a;
  text-align: center;
  z-index: 1;
}

@media (max-width: 1199px) {
  .login-card {
    padding: 36px 36px 28px;
    margin-top: 28px;
  }

  .welcome-line {
    margin-right: 56px;
  }
}

@media (max-width: 991px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 280px;
  }

  .brand-content {
    opacity: 0;
  }

  .login-panel {
    padding: 20px 16px 24px;
  }

  .welcome-line {
    align-self: center;
    margin: 4px 0 0;
    align-items: center;
  }

  .login-heading {
    white-space: normal;
  }

  .side-message {
    display: none;
  }
}

body {
  animation: page-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-leaving {
  animation: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.26s ease, transform 0.26s ease;
  pointer-events: none;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.is-leaving {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
