:root {
  --auth-navy: #101b3d;
  --auth-blue: #315bdc;
  --auth-blue-dark: #2449bd;
  --auth-ink: #14203b;
  --auth-muted: #76819a;
  --auth-line: #dfe5ef;
  --auth-soft: #f5f7fb;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  background: var(--auth-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* ==========================================================
   Global Header
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--auth-line);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
}

.logo a {
  color: var(--auth-navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--auth-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--auth-blue);
}

@media (max-width: 800px) {
  .container {
    padding: 12px 20px;
  }

  .main-nav {
    display: none;
  }
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.94fr) minmax(460px, 1.06fr); }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(36px, 6vw, 100px) 42px clamp(36px, 7vw, 118px); overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 5%, rgba(104, 141, 255, .42), transparent 27%), radial-gradient(circle at 100% 92%, rgba(31, 75, 198, .52), transparent 36%), var(--auth-navy); }
.auth-intro::after { content: ""; position: absolute; width: 420px; height: 420px; right: -200px; bottom: -210px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025); }
.auth-mark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; width: max-content; color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.mark-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--auth-navy); background: #fff; font-size: 1rem; font-weight: 800; }
.intro-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0; padding: 80px 0; }
.eyebrow { margin: 0 0 18px; color: #9db4ff; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.intro-copy h1 { max-width: 540px; margin: 0; font-size: clamp(2.65rem, 5vw, 5rem); line-height: 1.03; letter-spacing: -.065em; }
.intro-text { max-width: 390px; margin: 25px 0 0; color: #b7c2dd; font-size: 1.04rem; line-height: 1.65; }
.intro-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #aebbd8; font-size: .8rem; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: #77e0ae; box-shadow: 0 0 0 5px rgba(119, 224, 174, .12); }
.auth-panel { display: grid; place-items: center; padding: 38px 28px; background: #fff; }
.auth-panel-inner { width: min(100%, 420px); }
.auth-heading h2 { margin: 0; color: var(--auth-ink); font-size: 2rem; letter-spacing: -.045em; }
.auth-heading p { margin: 8px 0 0; color: var(--auth-muted); font-size: .92rem; }
.mobile-brand { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 34px 0 26px; padding: 4px; border-radius: 12px; background: #f1f4f9; }
.auth-tab { border: 0; border-radius: 9px; padding: 10px; color: var(--auth-muted); background: transparent; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; }
.auth-tab.is-active { color: var(--auth-ink); background: #fff; box-shadow: 0 2px 9px rgba(25, 45, 85, .09); }
.auth-message { margin: 0 0 17px; padding: 10px 12px; border: 1px solid #f1c9c9; border-radius: 9px; color: #b72c2c; background: #fff5f5; font-size: .82rem; }
.auth-message.success { border-color: #b8e5ce; color: #137744; background: #f0fbf5; }
.auth-form { display: grid; gap: 9px; }
.auth-form[hidden] { display: none; }
.field-label { margin-top: 7px; color: #46516b; font-size: .78rem; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.label-row .field-label { margin-top: 0; }
.text-button { padding: 0; border: 0; color: var(--auth-blue); background: transparent; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.text-button:hover { color: var(--auth-blue-dark); text-decoration: underline; }
.reset-back { justify-self: center; margin-top: 4px; }
.auth-input { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid var(--auth-line); border-radius: 9px; outline: 0; color: var(--auth-ink); background: #fff; font: inherit; font-size: .9rem; transition: border-color .16s, box-shadow .16s; }
.auth-input::placeholder { color: #a7afc0; }
.auth-input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(49,91,220,.12); }
.auth-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; margin-top: 17px; padding: 0 16px; border: 0; border-radius: 9px; color: #fff; background: var(--auth-blue); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; box-shadow: 0 8px 18px rgba(49, 91, 220, .2); transition: background .16s, transform .16s; }
.auth-submit:hover { background: var(--auth-blue-dark); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: default; transform: none; }
.auth-submit:disabled:hover { background: var(--auth-blue); }
.auth-submit span { font-size: 1.2rem; font-weight: 400; }
.auth-legal { margin: 27px 0 0; color: #a0a8b8; font-size: .72rem; line-height: 1.5; text-align: center; }

@media (max-width: 800px) {
  .auth-shell {
    display: flex;
    flex-direction: column;
  }

  .auth-panel {
    order: 1;
    min-height: auto;
    padding: 28px 24px 36px;
  }

  .auth-intro {
    order: 2;
    min-height: 180px;
    padding: 28px 26px;
  }

  .intro-copy {
    padding: 18px 0 8px;
  }

  .intro-copy h1 {
    max-width: 550px;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .intro-text,
  .intro-note {
    display: none;
  }

  .mobile-brand {
    display: block;
    margin: 0 0 16px !important;
    color: var(--auth-blue) !important;
    font-size: .74rem !important;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .auth-tab.is-active {
    color: var(--auth-blue);
    outline: 2px solid var(--auth-blue);
    outline-offset: -2px;
  }
}
@media (max-width: 460px) {
  .auth-intro {
  min-height: 140px;
}

.auth-panel {
  min-height: auto;
  padding: 28px 20px 36px;
}
}
