@import url('./fonts.css?v=20261014r9u1c');
/* ═══════════════════════════════════════════════════════════════════
   THRIVE DESIGN SYSTEM — auth.css (PR-9U0)   cache: 20261014r9u1c
   Shared styles for login, forgot-password, reset-password,
   change-password pages.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #C8901A;
  --gold-light:   #E8B547;
  --charcoal:     #191919;
  --off-white:    #F7F5F0;
  --surface:      #FFFFFF;
  --border:       #DFDCD4;
  --muted:        #62605B;
  --danger:       #A83232;
  --success:      #17663C;
  --warning:      #765600;
  --ink:          #080808;
  --navy:         var(--ink); /* Compatibility alias only. */
  --navy-muted:   var(--ink); /* Compatibility alias only. */
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui:      'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--ink);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle gold architectural lines on dark background */
body::before {
  content: '';
  position: fixed;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border: 40px solid rgba(200,144,26,0.08);
  border-radius: 2px;
  opacity: 1;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border: 28px solid rgba(200,144,26,0.05);
  border-radius: 2px;
  opacity: 1;
  pointer-events: none;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  animation: card-in 200ms ease-out;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Logo ─────────────────────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  gap: 6px;
}
.logo-img {
  width: 120px;
  height: auto;
  display: block;
}
.logo-powered {
  font-size:14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── Brand heading (used in some pages instead of logo) ───────────── */
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 8px;
}
.tagline {
  font-size:14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

/* ── Typography ───────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
h1.large { font-size: 26px; }
.subtitle {
  font-size:14px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.4;
}
p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Form elements ────────────────────────────────────────────────── */
label {
  display: block;
  font-size:14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
input {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
input:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(200,144,26,0.25);
}
.field { margin-bottom: 16px; }

/* ── Primary button (gold on black) ─────────────────────────────── */
button[type=submit],
.admin-page .btn-primary {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-light);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  margin-top: 8px;
  transition: box-shadow 100ms ease-out, transform 100ms ease-out, background 100ms;
  letter-spacing: 0.01em;
  text-transform: none;
}
button[type=submit]:hover:not(:disabled),
.admin-page .btn-primary:hover:not(:disabled) {
  background: #222;
  box-shadow: 0 0 0 2px rgba(200,144,26,0.45);
  transform: translateY(-1px);
}
button[type=submit]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Messages ─────────────────────────────────────────────────────── */
.error,
.msg.error {
  background: rgba(168,50,50,0.06);
  border: 1px solid rgba(168,50,50,0.25);
  border-radius: 4px;
  color: var(--danger);
  font-size:14px;
  padding: 10px 12px;
  margin-top: 12px;
  display: none;
}
.msg.success {
  background: rgba(46,139,87,0.08);
  border: 1px solid rgba(46,139,87,0.25);
  border-radius: 4px;
  color: var(--success);
  font-size:14px;
  padding: 10px 12px;
  margin-top: 12px;
  display: none;
}
.msg {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size:14px;
  display: none;
}
.msg.error { background: #fdecea; color: var(--danger); border: 1px solid #ef9a9a; display: none; }
.msg.success { background: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; display: none; }

/* ── Footer / back links ──────────────────────────────────────────── */
.card-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size:14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.back {
  margin-top: 24px;
  font-size:14px;
  color: var(--muted);
  text-align: center;
}
.back a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.back a:hover { text-decoration: underline; }
.skip-link { display: block; text-align: center; margin-top: 14px; font-size:14px; color: var(--muted); }
.skip-link a { color: var(--gold); text-decoration: none; }
.skip-link a:hover { text-decoration: underline; }

/* ── Env badge ────────────────────────────────────────────────────── */
.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(184,134,11,0.10);
  border: 1px solid rgba(184,134,11,0.28);
  border-radius: 3px;
  color: var(--warning);
  font-size:14px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: 0.08em;
  margin-left: 8px;
  vertical-align: middle;
}
.env-badge::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.env-badge.live {
  background: rgba(46,139,87,0.10);
  border-color: rgba(46,139,87,0.28);
  color: #2E8B57;
}

/* ── Hint / password hint ──────────────────────────────────────────── */
.hint {
  font-size:14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Forced password banner ────────────────────────────────────────── */
.forced-banner {
  background: rgba(184,134,11,0.10);
  border: 1px solid rgba(184,134,11,0.30);
  border-radius: 4px;
  color: #7a5a00;
  font-size:14px;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Loading / invalid states (reset-password) ──────────────────── */
#loading { text-align: center; color: var(--muted); font-size: 14px; }
#invalid-token { display: none; }
#reset-form-wrap { display: none; }

/* Shared auth/admin accents and keyboard focus. */
a { color: var(--gold); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(200,144,26,0.25);
}

/* Admin pages use the same palette with a full-width, scrolling layout. */
body.admin-page { display: block; padding: 0; color: var(--charcoal); }
.admin-page::before, .admin-page::after { display: none; }
.admin-page .main > h1 { color: var(--gold-light); }
.admin-page .main > .subtitle { color: #D1D1D1; }
.admin-page .card { max-width: none; padding: 0; animation: none; box-shadow: none; }
.admin-page .card.admin-form-card { padding: 28px; }
.admin-page .topnav-logo, .admin-page .topnav-right a { color: var(--gold-light); }
.admin-page .admin-subnav a { color: var(--gold-light); }
.admin-page .admin-subnav a.active { border-color: var(--gold); }
.admin-page .btn-primary { width: auto; margin-top: 0; }
.admin-page .modal .btn-primary, .admin-page .admin-form-card .btn-primary { width: 100%; }
.admin-page .warning-box, .admin-page .already-viewing { background: var(--surface); }

/* Direction A — typography and controls shared by every authentication page. */
body { font-size:14px; font-variant-numeric:tabular-nums; padding-top:136px; }
body::before,body::after { display:none; }
.card { border:0; border-radius:8px; box-shadow:0 3px 18px rgba(36,32,20,.035); animation:none; }
.logo-wrap { position:absolute; bottom:100%; left:0; width:100%; padding-bottom:24px; margin:0; }
.logo-img { width:180px; filter:brightness(1.4); }
.logo-powered { color:#bbb; font-size:14px; text-transform:none; letter-spacing:0; }
h1,h1.large { font:600 32px/1.15 var(--font-display); letter-spacing:-.8px; }
label { font-size:14px; text-transform:none; letter-spacing:0; }
.env-badge { font-family:var(--font-ui); font-size:14px; color:#62605B; background:#EFEDE7; border-color:#DFDCD4; letter-spacing:0; }
button[type=submit],.admin-page .btn-primary { background:#E8B547; color:#111; border-color:#E8B547; min-height:38px; }
button[type=submit]:hover:not(:disabled),.admin-page .btn-primary:hover:not(:disabled) { background:#F0C35E; transform:none; }
button[type=submit]:disabled { opacity:1; color:#62605B; background:#EFEDE7; }
a,.back a,.skip-link a { color:#1853BC; }
.card-footer,.card-footer span { font-size:14px !important; }
:focus-visible { outline:2px solid #C8901A; outline-offset:3px; }
.brand { color:#191919; }
body.admin-page { padding-top:0; }
.card:has(>.brand)>.brand { position:absolute; left:50%; bottom:100%; transform:translateX(-50%); width:180px; height:60px; margin:0 0 48px; font-size:0; background:url('./thrive-logo.png?v=20261014r9u1c') center/contain no-repeat; }
.card:has(>.brand)::after { content:'Thrive Lending LLC · NMLS #2191014'; display:block; margin-top:24px; border-top:1px solid #DFDCD4; padding-top:16px; color:#62605B; font-size:14px; text-align:center; }
.card:has(>.brand)>.tagline { position:absolute; left:0; bottom:100%; width:100%; margin:0 0 24px; font-size:0; text-align:center; }
.card:has(>.brand)>.tagline::after { content:'powered by Dyad AI'; font:14px var(--font-ui); color:#bbb; letter-spacing:0; text-transform:none; }
.logo-wrap { background:#080808; }
input::placeholder { color:#62605B; opacity:1; }
.card:has(>.brand)>.tagline { background:#080808; }
