:root{
  /* Navy */
  --navy-900: #000040;
  --navy-800: #000055;
  --navy-700: #000066;
  --navy-600: #0A1280;
  --navy-500: #1A25A0;
  --navy-100: #E5E9FF;
  --navy-50:  #F0F3FF;

  /* Gold */
  --gold-800: #7A5000;
  --gold-700: #9A6A00;
  --gold-600: #B8871E;
  --gold-500: #CC9933;
  --gold-400: #E0B045;
  --gold-300: #ECC870;
  --gold-100: rgba(200,150,40,.10);
  --gold-50:  rgba(200,150,40,.05);

  /* SYSTEM MAPPING (IMPORTANT) */
  --bg: #06070D;                 /* deep neutral, not pure navy */
  --surface: #0D0F1A;            /* slightly lifted */
  --surface-2: #121528;

  --border: rgba(255,255,255,.08);
  --border-soft: rgba(255,255,255,.05);

  --text-1: #F5F7FF;
  --text-2: #B8C0E0;
  --text-3: #7C86B0;

  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);

  --danger: #FF5D5D;
  --success: #22C55E;

  --r-lg: 12px;
  --r-sm: 10px;
}

/* =========================
   BASE
========================= */
body{
  padding: 40px 0;
  margin:0;
  background: var(--bg);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* =========================
   WRAPPER
========================= */
.auth-wrap{
  width:100%;
  max-width:420px;
  padding:20px;
  margin: auto 0;
}

/* =========================
   BRAND
========================= */
.auth-brand{
  text-align:center;
  margin-bottom:28px;
}

.auth-brand-name{
  font-size:22px;
  font-weight:600;
  color:var(--text-1);
  letter-spacing:-0.2px;
}

.auth-brand-name span{
  color:var(--accent); /* gold used ONLY here */
}

.auth-brand-sub{
  font-size:11px;
  color:var(--text-3);
  margin-top:6px;
  letter-spacing:.12em;
}

/* =========================
   CARD
========================= */
.auth-card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 32px;

  box-shadow:
    0 1px 0 rgba(255,255,255,.03),
    0 12px 28px rgba(0,0,0,.45);
}

.plan-teaser {
  display: flex;
  align-items: center;

  padding: 12px 14px;
  margin: 14px 0;

  background: rgba(255,255,255,.02);
  border: 1px solid var(--color-border-soft);
  border-radius: 10;

  transition: border-color 150ms ease, background 150ms ease;
}

/* subtle hover (feels like SaaS UI, not marketing card) */
.plan-teaser:hover {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}

.plan-teaser-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-teaser-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1.3;
}

.plan-teaser-sub {
  font-size: 12px;
  color: wheat;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

/* =========================
   HEADINGS
========================= */
.auth-card h1{
  font-size:22px;
  font-weight:600;
  color:var(--text-1);
  margin:0 0 6px;
}

.auth-card .sub{
  font-size:14px;
  color:var(--text-2);
  margin:0 0 24px;
}

/* =========================
   INPUTS
========================= */
label.lbl{
  display:block;
  font-size:10px;
  font-weight:600;
  color:var(--text-3);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}

input.fi{
  width:100%;
  padding:12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size:14px;
  outline:none;
  transition: .15s ease;
  margin-bottom:16px;
}

input.fi::placeholder{
  color:var(--text-3);
}

input.fi:hover{
  border-color: rgba(255,255,255,.18);
}

/* GOLD used ONLY on focus */
input.fi:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--gold-100);
}

/* =========================
   PASSWORD
========================= */
/* =========================
PASSWORD FIELD
========================= */
.pw-wrap{
position:relative;
margin-bottom:16px;
}

/* ensure input has space for the icon */
.pw-wrap .fi{
padding-right:42px;
}

/* =========================
TOGGLE BUTTON
========================= */
.pw-toggle{
position:absolute;
top:50%;
right:8px;
transform:translateY(-50%);

display:flex;
align-items:center;
justify-content:center;

width:32px;
height:32px;

background:none;
border:none;
border-radius:6px;

color:var(--text-3);
cursor:pointer;

transition: 
 color .15s ease,
 background .15s ease,
 transform .1s ease;
}

/* hover = subtle, not loud */
.pw-toggle:hover{
color:var(--text-2);
background: rgba(255,255,255,.04);
}

/* active click feedback */
.pw-toggle:active{
transform:translateY(-50%) scale(.92);
}

/* keyboard accessibility */
.pw-toggle:focus-visible{
outline: 2px solid var(--accent);
outline-offset: 2px;
}

/* icon sizing consistency */
.pw-toggle i{
font-size:16px;
line-height:1;
}

input.fi{
box-sizing: border-box;
}
/* =========================
   BUTTON
========================= */
.btn-submit{
  width:100%;
  padding:12px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color:#000;
  font-weight:600;
  font-size:14px;
  border:none;
  cursor:pointer;
  transition:.15s ease;
}

/* subtle hover only */
.btn-submit:hover{
  background: var(--accent-hover);
}

/* =========================
 LINK RESET (GLOBAL)
========================= */
a{
color: var(--text-1);          /* default = white */
text-decoration: none;
transition: color .15s ease;
}

/* hover = gold (controlled, not loud) */
a:hover{
color: var(--accent);
}

/* remove ugly browser focus outline, replace properly */
a:focus{
outline: none;
}

/* =========================
 SSO GROUP
========================= */
.sso-group{
display:flex;
flex-direction:column;
gap:10px;
margin-bottom:18px;
}

/* =========================
 BUTTON
========================= */
.sso-btn{
position:relative;
display:flex;
align-items:center;
justify-content:center;

height:44px;
padding:0 14px;

border-radius: var(--r-sm);
border:1px solid var(--border);
background: var(--surface-2);

color: var(--text-1);
font-size:14px;
font-weight:500;
text-decoration:none;

transition:.15s ease;
}

/* =========================
 ICON (LOCKED LEFT)
========================= */
.sso-icon{
position:absolute;
left:14px;
display:flex;
align-items:center;
justify-content:center;
}

/* normalize svg */
.sso-icon svg{
width:18px;
height:18px;
display:block;
}

/* 🔑 CRITICAL: tone down Google colors */
.sso-btn:first-child svg{
filter: grayscale(1) brightness(1.4);
opacity:.9;
}

/* GitHub stays clean */
.sso-btn:last-child svg{
fill: currentColor;
opacity:.9;
}

/* =========================
 TEXT (TRUE CENTER)
========================= */
.sso-text{
text-align:center;
width:100%;
}

/* =========================
 HOVER
========================= */
.sso-btn:hover{
border-color: var(--accent);
background: rgba(255,255,255,.02);
}

/* =========================
 ACTIVE
========================= */
.sso-btn:active{
transform: scale(.98);
}

/* =========================
   ALERTS
========================= */
.alert-msg{
  border-radius:8px;
  padding:10px 12px;
  font-size:13px;
  margin-bottom:16px;
}

.alert-msg.err{
  background: rgba(255,93,93,.08);
  border:1px solid rgba(255,93,93,.25);
  color: var(--danger);
}

.alert-msg.ok{
  background: rgba(34,197,94,.08);
  border:1px solid rgba(34,197,94,.25);
  color: var(--success);
}

/* =========================
 DIVIDER
========================= */
.divider{
display:flex;
align-items:center;
gap:12px;
margin:20px 0;
color:var(--text-3);
font-size:12px;
}

/* left + right lines */
.divider::before,
.divider::after{
content:"";
flex:1;
height:1px;
background:var(--border-soft);
}

/* =========================
   FOOTER
========================= */
.auth-footer{
  text-align:center;
  font-size:13px;
  color:var(--text-2);
  margin-top:18px;
}

.auth-footer a{
  color:var(--accent);
  text-decoration:none;
}

.auth-footer a:hover{
  text-decoration:underline;
}

/* =========================
   LEGAL
========================= */
.legal-note{
  font-size:11px;
  color:var(--text-3);
  text-align:center;
  margin-top:14px;
}

.legal-note a{
  color:var(--text-2);
}

/* =========================
 PERKS (ICON LIST)
========================= */
.perks{
display:flex;
flex-direction:column;
gap:10px;
margin-bottom:20px;
}

.perk{
display:flex;
align-items:center;
gap:10px;
font-size:13px;
color:var(--text-2);
line-height:1.5;
}

/* icon styling = subtle, premium */
.perk i{
font-size:16px;
color:var(--accent);
opacity:.85;
}

/* subtle variation */
.perk:nth-child(2) i,
.perk:nth-child(4) i{
color:var(--text-3);
opacity:.9;
}

/* Forget Password */
.forgot {
display: block;
text-align: right;
font-size: 12px;
color: var(--text-3);
margin: -8px 0 14px;
text-decoration: none;
transition: color .15s ease;
}

.forgot:hover {
color: var(--accent);
}

.forgot-wrap {
display: flex;
justify-content: flex-end;
margin: -8px 0 14px;
}

/* ERROR PAGES  */

/* =========================
   ERROR PAGES (GLOBAL)
========================= */

.error-wrap{
  width:100%;
  max-width:560px;
}

.error-card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);

  padding: 48px 36px;
  text-align:center;

  box-shadow:
    0 1px 0 rgba(255,255,255,.03),
    0 12px 32px rgba(0,0,0,.45);
}

.error-badge{
  display:inline-flex;
  align-items:center;

  padding:6px 12px;
  margin-bottom:18px;

  border-radius:999px;

  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;

  color:var(--accent);
  background:var(--gold-50);
  border:1px solid rgba(204,153,51,.18);
}

.error-code{
  font-size:72px;
  font-weight:700;
  line-height:1;
  color:var(--text-1);
  margin-bottom:10px;
}

.error-title{
  font-size:22px;
  font-weight:600;
  color:var(--text-1);
  margin-bottom:10px;
}

.error-sub{
  font-size:15px;
  color:var(--text-2);
  line-height:1.7;
  max-width:420px;
  margin:0 auto;
}

.error-actions{
  margin-top:26px;
}

.error-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 18px;
  min-width:180px;

  background: var(--accent);
  color:#000;

  font-weight:600;
  font-size:14px;

  border-radius: var(--r-sm);
  text-decoration:none;

  transition:.15s ease;
}

.error-btn:hover{
  background: var(--accent-hover);
}

.error-footer{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border-soft);

  font-size:12px;
  color:var(--text-3);
  line-height:1.6;
}

.error-brand{
  text-align:center;
  margin-bottom:22px;
}

.error-brand-name{
  font-size:26px;
  font-weight:700;
  color:var(--text-1);
}

.error-brand-name span{
  color:var(--accent);
}

.error-brand-sub{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-top:6px;
}