/* ============================================================
   FLECIBLE AUTH SYSTEM — auth.css
   Shared stylesheet for:
     • signup.html
     • login.html  
     • forgot-password.html
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --auth-navy:        #001A72;
  --auth-navy-mid:    #002299;
  --auth-teal:        #00AF66;
  --auth-teal-lite:   rgba(0,175,102,.12);
  --auth-teal-border: rgba(0,175,102,.3);

  /* UI */
  --auth-white:       #ffffff;
  --auth-bg:          #f4f7fb;
  --auth-text:        #0d1117;
  --auth-muted:       #6B7280;
  --auth-faint:       #9ca3af;
  --auth-border:      #e5e9f0;
  --auth-input-bg:    #f8fafc;
  --auth-error:       #ef4444;
  --auth-success:     #00AF66;

  /* Motion */
  --auth-ease:        cubic-bezier(0.16, 1, 0.3, 1);
}


.logo {
    height: 50px;
    width: 140px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   3. LAYOUT SHELL  —  two columns, full viewport
───────────────────────────────────────────────────────────── */
.auth-shell {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   4. LEFT VISUAL PANEL  —  3D card + testimonial
───────────────────────────────────────────────────────────── */
.auth-left {
  width: 600px;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(0,175,102,.15) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(0,40,200,.20) 0%, transparent 60%),
    linear-gradient(160deg, #020c24 0%, #001A72 45%, #011845 75%, #010d1f 100%);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* dot-grid texture */
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* ── logo ── */
.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; position: relative; z-index: 5;
}
.auth-logo__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo__mark i { font-size: 18px; color: var(--auth-teal); }
.auth-logo__name {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 800;
  color: #fff; letter-spacing: -.3px;
}

/* ── card scene ── */
.auth-card-scene {
  position: relative; z-index: 4; flex: 1;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}

.auth-card-scene__glow {
  position: absolute;
  width: 340px; height: 80px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,175,102,.55) 0%, rgba(0,60,200,.3) 50%, transparent 75%);
  filter: blur(28px);
  bottom: 14%; left: 50%; transform: translateX(-50%);
  animation: auth-glow-breathe 4s ease-in-out infinite;
}

@keyframes auth-glow-breathe {
  0%,100% { opacity: .75; transform: translateX(-50%) scaleX(1);    }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.12); }
}

/* ── 3D card ── */
.auth-card-3d {
  width: 360px; height: 226px;
  transform-style: preserve-3d;
  animation: auth-card-spin 12s linear infinite;
  position: relative;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.5));
}

@keyframes auth-card-spin {
  0%   { transform: rotateY(0deg)   rotateX(8deg); }
  25%  { transform: rotateY(90deg)  rotateX(5deg); }
  50%  { transform: rotateY(180deg) rotateX(8deg); }
  75%  { transform: rotateY(270deg) rotateX(5deg); }
  100% { transform: rotateY(360deg) rotateX(8deg); }
}

.auth-card-face {
  position: absolute; inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
}

.auth-card-face--front {
  background: linear-gradient(135deg, #1a4fd6 0%, #1030a8 25%, #0a1f80 50%, #061560 75%, #030c45 100%);
  overflow: hidden;
}

.auth-card-face--back {
  background: linear-gradient(135deg, #030c45 0%, #051a60 30%, #0a2080 60%, #0c2a9a 100%);
  transform: rotateY(180deg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.auth-card-face--back::before {
  content: '';
  position: absolute; top: 30%; left: 0; right: 0; height: 44px;
  background: linear-gradient(180deg, #111 0%, #1a1a1a 50%, #111 100%);
}
.auth-card-face--back::after {
  content: '';
  position: absolute; top: calc(30% + 58px); left: 10%; right: 10%; height: 32px;
  background: rgba(255,255,255,.07); border-radius: 4px;
}

/* card decorative layers */
.auth-cf-orb-1 {
  position: absolute; top: -80px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(100,160,255,.28) 0%, transparent 65%);
  pointer-events: none;
}
.auth-cf-orb-2 {
  position: absolute; bottom: -70px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,175,102,.18) 0%, transparent 65%);
  pointer-events: none;
}
.auth-cf-ring {
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07); pointer-events: none;
}
.auth-cf-edge {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6) 40%, rgba(255,255,255,.7) 60%, transparent);
  pointer-events: none;
}
.auth-cf-noise {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px; pointer-events: none;
}
.auth-cf-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(108deg, transparent 28%, rgba(255,255,255,.08) 50%, transparent 72%);
  animation: auth-cf-sweep 6s 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes auth-cf-sweep {
  0%   { transform: translateX(-130%) skewX(-10deg); }
  55%  { transform: translateX(240%)  skewX(-10deg); }
  100% { transform: translateX(240%)  skewX(-10deg); }
}

/* card content layout */
.auth-cf-content {
  position: absolute; inset: 0;
  padding: 24px 26px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.auth-cf-top { display: flex; align-items: flex-start; justify-content: space-between; }
.auth-cf-brand {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px;
}
.auth-cf-brand-dot { color: rgba(255,255,255,.35); font-weight: 300; }
.auth-cf-tier {
  font-size: 8px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-top: 3px;
}
.auth-cf-nfc svg { display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }
.auth-cf-chip-row { display: flex; align-items: center; gap: 12px; }
.auth-cf-chip {
  width: 44px; height: 34px; border-radius: 6px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.28);
  background: linear-gradient(148deg, #f5c842 0%, #e8a800 18%, #ffd84d 36%, #c8880a 54%, #f0c040 70%, #d09000 86%, #ffe066 100%);
  flex-shrink: 0;
}
.auth-cf-chip::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(0,0,0,.18); border-radius: 3px;
}
.auth-cf-chip::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(transparent 44%, rgba(0,0,0,.17) 44%, rgba(0,0,0,.17) 56%, transparent 56%),
    linear-gradient(90deg, transparent 44%, rgba(0,0,0,.14) 44%, rgba(0,0,0,.14) 56%, transparent 56%);
}
.auth-cf-number {
  font-size: 13px; font-weight: 400;
  letter-spacing: 2.5px; color: rgba(255,255,255,.65);
  font-variant-numeric: tabular-nums;
}
.auth-cf-dots {
  font-size: 15px; letter-spacing: 3px;
  vertical-align: -2px; color: rgba(255,255,255,.35);
}
.auth-cf-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.auth-cf-info-pair { display: flex; gap: 22px; }
.auth-cf-info { display: flex; flex-direction: column; gap: 2px; }
.auth-cf-lbl {
  font-size: 7px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
.auth-cf-val {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.auth-cf-mc { position: relative; width: 44px; height: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.auth-cf-mc-c { position: absolute; width: 28px; height: 28px; border-radius: 50%; }
.auth-cf-mc-red    { background: #eb001b; left: 0; }
.auth-cf-mc-orange { background: #f79e1b; left: 16px; opacity: .93; }
.auth-cf-mc-blend  {
  position: absolute; left: 13px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ff5f00; opacity: .5; mix-blend-mode: multiply;
}

/* ── floating stat pills ── */
.auth-stat-pill {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  font-family: 'Sora', sans-serif;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  animation: auth-pill-float 6s ease-in-out infinite;
}
.auth-stat-pill__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,175,102,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-stat-pill__icon i { font-size: 14px; color: var(--auth-teal); }
.auth-stat-pill__num   { font-size: 14px; font-weight: 800; letter-spacing: -.3px; line-height: 1; }
.auth-stat-pill__label { font-size: 10px; color: rgba(255,255,255,.45); font-weight: 500; margin-top: 1px; font-family: 'DM Sans', sans-serif; }

.auth-pill-1 { top: 12%; left: -5%;  animation-delay: 0s;   }
.auth-pill-2 { top: 18%; right: -2%; animation-delay: 1.2s; }
.auth-pill-3 { bottom: 22%; left: -4%;  animation-delay: 2.4s; }
.auth-pill-4 { bottom: 15%; right: -3%; animation-delay: 0.8s; }

@keyframes auth-pill-float {
  0%,100% { transform: translateY(0);    }
  50%      { transform: translateY(-8px); }
}

/* ── testimonial ── */
.auth-testimonial { position: relative; z-index: 5; }
.auth-quote {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 600; line-height: 1.45;
  color: rgba(255,255,255,.9); margin-bottom: 20px;
  letter-spacing: -.2px; max-width: 340px;
  transition: opacity .4s, transform .4s;
}
.auth-testimonial-user { display: flex; align-items: center; justify-content: space-between; }
.auth-testimonial-user-left { display: flex; align-items: center; gap: 12px; }
.auth-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-teal), #007a4a);
  border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: #fff;
  transition: opacity .4s, transform .4s;
}
.auth-user-name {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: #fff;
  transition: opacity .4s, transform .4s;
}
.auth-user-role {
  font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px;
  transition: opacity .4s, transform .4s;
}
.auth-stars { color: #fbbf24; font-size: 13px; display: flex; gap: 2px; }
.auth-arrows { display: flex; gap: 10px; }
.auth-arrow-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.7); font-size: 15px;
  transition: border-color .18s, background .18s, color .18s;
}
.auth-arrow-btn:hover {
  border-color: var(--auth-teal);
  background: rgba(0,175,102,.15);
  color: var(--auth-teal);
}

/* ─────────────────────────────────────────────────────────────
   5. RIGHT PANEL  —  scrollable form area
───────────────────────────────────────────────────────────── */
.auth-right {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 40px;
  position: relative;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: var(--auth-border) transparent;
}

/* dot-grid on right panel */
.auth-right::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5; pointer-events: none;
}

.auth-form-wrap {
  width: 100%; max-width: 480px;
  position: relative; z-index: 2;
}

/* ── step indicator ── */
.auth-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 36px;
}
.auth-step {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--auth-faint);
}
.auth-step--active { color: var(--auth-navy); }
.auth-step--done   { color: var(--auth-teal); }
.auth-step__num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--auth-bg); border: 1.5px solid var(--auth-border);
  color: var(--auth-faint); flex-shrink: 0; transition: all .2s;
}
.auth-step--active .auth-step__num { background: var(--auth-navy); border-color: var(--auth-navy); color: #fff; }
.auth-step--done   .auth-step__num { background: var(--auth-teal); border-color: var(--auth-teal); color: #fff; }
.auth-step-line { flex: 1; height: 1.5px; background: var(--auth-border); margin: 0 8px; }
.auth-step-line--done { background: var(--auth-teal); }

/* ── form heading ── */
.auth-icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--auth-input-bg); border: 1px solid var(--auth-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; color: var(--auth-muted); font-size: 22px;
}
.auth-heading {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  letter-spacing: -.6px; color: var(--auth-navy); margin-bottom: 6px;
}
.auth-subheading {
  font-size: 14.5px; color: var(--auth-muted); margin-bottom: 32px; line-height: 1.6;
}
.auth-subheading strong { color: var(--auth-navy); font-weight: 700; }
.auth-text-center { text-align: center; }

/* ── back link ── */
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--auth-muted); background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; text-decoration: none;
  transition: color .18s, background .18s; margin-bottom: 28px;
}
.auth-back:hover { color: var(--auth-navy); background: #eef2f9; }
.auth-back i { font-size: 16px; }

/* ── oauth buttons ── */
.auth-oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 1.5px solid var(--auth-border);
  background: #fff; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500;
  color: var(--auth-text); cursor: pointer; text-decoration: none;
  transition: border-color .18s, background .18s;
}
.auth-oauth-btn:hover { border-color: var(--auth-navy); background: #fafbff; }
.auth-oauth-btn img { width: 18px; height: 18px; }

/* ── OR divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.auth-divider-line { flex: 1; height: 1px; background: var(--auth-border); }
.auth-divider-text { font-size: 12px; color: var(--auth-faint); white-space: nowrap; }

/* ── input fields ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--auth-navy); letter-spacing: .2px;
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; left: 14px; font-size: 16px;
  color: var(--auth-faint); pointer-events: none; z-index: 1;
  transition: color .18s;
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-navy); }
.auth-input {
  width: 100%; height: 47px; padding: 0 42px;
  border: 1.5px solid var(--auth-border);
  background: var(--auth-input-bg);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--auth-text); outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.auth-input:focus {
  border-color: var(--auth-navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,26,114,.07);
}
.auth-input::placeholder { color: #bcc5d6; }
.auth-input--error   { border-color: var(--auth-error)   !important; }
.auth-input--success { border-color: var(--auth-success) !important; }
.auth-input-toggle {
  position: absolute; right: 14px; font-size: 16px;
  color: var(--auth-faint); cursor: pointer; z-index: 1; transition: color .18s;
}
.auth-input-toggle:hover { color: var(--auth-navy); }

/* phone row */
.auth-phone-row { display: flex; gap: 10px; }
.auth-phone-code { width: 120px; flex-shrink: 0; }
.auth-phone-code .auth-input { padding: 0 12px; }
.auth-phone-code select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* select */
.auth-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* hint text */
.auth-hint { font-size: 12px; color: var(--auth-faint); }
.auth-hint--error   { color: var(--auth-error);   }
.auth-hint--success { color: var(--auth-success);  }

/* ── password strength meter ── */
.auth-strength { margin-top: 4px; }
.auth-strength-bars { display: flex; gap: 4px; margin-bottom: 5px; }
.auth-sbar {
  height: 3px; flex: 1; border-radius: 2px;
  background: var(--auth-border); transition: background .25s;
}
.auth-strength-label { font-size: 11.5px; font-weight: 600; color: var(--auth-faint); }

/* ── password requirements ── */
.auth-pw-reqs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  padding: 14px 16px;
  background: var(--auth-bg); border: 1px solid var(--auth-border);
  border-radius: 12px;
}
.auth-pw-req {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--auth-faint); transition: color .2s;
}
.auth-pw-req i { font-size: 13px; }
.auth-pw-req--pass { color: var(--auth-teal); }

/* ── terms checkbox ── */
.auth-terms {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--auth-bg); border: 1px solid var(--auth-border);
  border-radius: 12px;
  font-size: 12.5px; color: var(--auth-muted);
}
.auth-checkbox {
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid var(--auth-border); background: #fff;
  cursor: pointer; appearance: none; flex-shrink: 0; margin-top: 1px;
  transition: border-color .18s, background .18s;
}
.auth-checkbox:checked {
  background: var(--auth-navy); border-color: var(--auth-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.auth-terms a { color: var(--auth-navy); font-weight: 600; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* ── remember row ── */
.auth-remember-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.auth-remember { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-remember-label { font-size: 13px; color: var(--auth-muted); }
.auth-forgot-link {
  font-size: 13px; font-weight: 600; color: var(--auth-navy); text-decoration: none;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* ── submit button ── */
.auth-submit {
  height: 50px; width: 100%;
  background: var(--auth-navy); color: #fff;
  border: none; border-radius: 12px;
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .2s var(--auth-ease), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,26,114,.22);
  text-decoration: none;
}
.auth-submit:hover {
  opacity: .92; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,26,114,.3);
}
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── switch link ── */
.auth-switch { text-align: center; font-size: 13.5px; color: var(--auth-muted); margin-top: 18px; }
.auth-switch a { color: var(--auth-navy); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── security badge ── */
.auth-security {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 22px; font-size: 12px; color: var(--auth-faint);
}
.auth-security i { font-size: 13px; color: var(--auth-teal); }

/* ── info box ── */
.auth-info-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 12px; font-size: 13px; color: #0369a1;
  line-height: 1.55; margin-bottom: 20px;
}
.auth-info-box i { font-size: 16px; color: #0ea5e9; flex-shrink: 0; margin-top: 1px; }

/* ── error alert ── */
.auth-error-alert {
  display: none; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #fff5f5; border: 1px solid #fecaca;
  border-radius: 10px; font-size: 13px; color: #b91c1c;
  margin-bottom: 16px;
}
.auth-error-alert i { font-size: 16px; color: var(--auth-error); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   6. OTP INPUT (shared: signup verify, login 2FA, forgot verify)
───────────────────────────────────────────────────────────── */
.auth-otp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.auth-otp-digit {
  width: 56px; height: 64px;
  border: 2px solid var(--auth-border);
  border-radius: 14px; background: var(--auth-input-bg);
  text-align: center;
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--auth-navy); outline: none; caret-color: var(--auth-teal);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-otp-digit:focus {
  border-color: var(--auth-navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,26,114,.08);
}
.auth-otp-digit--filled { border-color: var(--auth-teal); background: rgba(0,175,102,.04); }
.auth-otp-digit--error  { border-color: var(--auth-error) !important; background: #fff5f5 !important; animation: auth-shake .35s ease; }
.auth-otp-sep { font-size: 20px; color: var(--auth-faint); flex-shrink: 0; margin: 0 2px; }

@keyframes auth-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

.auth-otp-error {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--auth-error); margin-bottom: 16px;
}
.auth-otp-error i { font-size: 15px; }
.auth-otp-resend { font-size: 13.5px; color: var(--auth-muted); margin-top: 18px; text-align: center; }
.auth-otp-resend-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 700;
  color: var(--auth-navy); padding: 0; transition: color .18s;
}
.auth-otp-resend-btn:hover { color: var(--auth-teal); }
.auth-otp-timer { font-size: 12px; color: var(--auth-faint); margin-top: 8px; text-align: center; }
.auth-otp-timer strong { color: var(--auth-muted); }

/* ─────────────────────────────────────────────────────────────
   7. OTP OVERLAY (signup verify + login 2FA panel)
───────────────────────────────────────────────────────────── */
.auth-otp-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
.auth-otp-overlay--visible { opacity: 1; pointer-events: all; }
.auth-otp-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .35s ease;
}
.auth-otp-overlay--visible::before { opacity: 1; }

.auth-otp-panel {
  position: relative; z-index: 2;
  width: calc(100% - 440px); max-width: 100%; height: 100vh;
  background: #fff; overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 40px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}
.auth-otp-overlay--visible .auth-otp-panel { transform: translateX(0); }

.auth-panel-back {
  position: absolute; top: 28px; left: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--auth-muted); background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; transition: color .18s, background .18s;
}
.auth-panel-back:hover { color: var(--auth-navy); background: var(--auth-bg); }
.auth-panel-back i { font-size: 16px; }

/* ─────────────────────────────────────────────────────────────
   8. ICON RING + STEP BADGE (shared across overlays/panels)
───────────────────────────────────────────────────────────── */
.auth-icon-ring {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(0,26,114,.06); border: 1.5px solid rgba(0,26,114,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.auth-icon-ring i { font-size: 28px; color: var(--auth-navy); }
.auth-step-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--auth-teal); background: rgba(0,175,102,.1);
  border: 1px solid rgba(0,175,102,.22);
  padding: 4px 13px; border-radius: 100px; margin-bottom: 20px;
}
.auth-panel-heading {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  letter-spacing: -.6px; color: var(--auth-navy);
  margin-bottom: 10px; text-align: center;
}
.auth-panel-sub {
  font-size: 14.5px; color: var(--auth-muted);
  text-align: center; line-height: 1.6; margin-bottom: 28px;
}
.auth-panel-sub strong { color: var(--auth-navy); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   9. 2FA METHOD CARDS (login)
───────────────────────────────────────────────────────────── */
.auth-method-grid { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 400px; }
.auth-method-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: #fff; border: 1.5px solid var(--auth-border);
  border-radius: 16px; cursor: pointer; width: 100%; text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.auth-method-card:hover { border-color: var(--auth-navy); background: #fafbff; transform: translateY(-2px); }
.auth-method-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.auth-method-card__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.auth-method-card__title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--auth-navy); }
.auth-method-card__desc  { font-size: 12.5px; color: var(--auth-muted); }
.auth-method-card__arrow { font-size: 20px; color: var(--auth-faint); flex-shrink: 0; }
.auth-switch-method {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--auth-faint); margin-top: 16px; padding: 6px 10px;
  border-radius: 8px; transition: color .18s, background .18s;
}
.auth-switch-method:hover { color: var(--auth-navy); background: var(--auth-bg); }

/* ─────────────────────────────────────────────────────────────
   10. DEVICE VERIFICATION (login)
───────────────────────────────────────────────────────────── */
.auth-device-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 12px; margin-bottom: 24px;
  font-size: 13.5px; color: #92400e; font-weight: 500;
  width: 100%; max-width: 340px; justify-content: center;
}
.auth-device-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f59e0b; flex-shrink: 0;
  animation: auth-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes auth-pulse-dot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .5; }
}

/* ─────────────────────────────────────────────────────────────
   11. FORGOT PASSWORD  —  recovery steps sidebar
───────────────────────────────────────────────────────────── */
.auth-rsteps { display: flex; flex-direction: column; gap: 0; }
.auth-rstep { display: flex; align-items: flex-start; gap: 0; position: relative; padding-bottom: 20px; }
.auth-rstep:last-child { padding-bottom: 0; }
.auth-rstep__line-wrap { display: flex; flex-direction: column; align-items: center; margin-right: 14px; flex-shrink: 0; }
.auth-rstep__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4); flex-shrink: 0; transition: all .3s;
}
.auth-rstep--active .auth-rstep__num { background: var(--auth-teal); border-color: var(--auth-teal); color: var(--auth-navy); }
.auth-rstep--done   .auth-rstep__num { background: rgba(0,175,102,.2); border-color: rgba(0,175,102,.4); color: var(--auth-teal); }
.auth-rstep__connector { width: 1.5px; flex: 1; min-height: 16px; background: rgba(255,255,255,.1); margin-top: 4px; transition: background .3s; }
.auth-rstep--done .auth-rstep__connector { background: rgba(0,175,102,.35); }
.auth-rstep__text { padding-top: 3px; }
.auth-rstep__title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 2px; transition: color .3s; }
.auth-rstep--active .auth-rstep__title { color: #fff; }
.auth-rstep--done   .auth-rstep__title { color: rgba(255,255,255,.7); }
.auth-rstep__desc { font-size: 11.5px; color: rgba(255,255,255,.3); line-height: 1.45; }

/* ─────────────────────────────────────────────────────────────
   12. SUCCESS MODAL (shared: signup, login, forgot)
───────────────────────────────────────────────────────────── */
.auth-success-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.auth-success-modal--visible { opacity: 1; pointer-events: all; }
.auth-success-card {
  background: #fff; border-radius: 28px; padding: 52px 48px 44px;
  max-width: 480px; width: 90%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden;
  transform: scale(.92) translateY(20px);
  transition: transform .45s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
}
.auth-success-modal--visible .auth-success-card { transform: scale(1) translateY(0); }

.auth-success-ring { position: relative; width: 80px; height: 80px; margin-bottom: 20px; }
.auth-success-ring svg { width: 80px; height: 80px; }
.auth-success-ring__fill { transition: stroke-dashoffset 1s cubic-bezier(0.16,1,0.3,1) .2s; }
.auth-success-modal--visible .auth-success-ring__fill { stroke-dashoffset: 0; }
.auth-success-ring__icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  font-size: 30px; color: var(--auth-teal);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1) .9s;
}
.auth-success-modal--visible .auth-success-ring__icon { transform: translate(-50%,-50%) scale(1); }

.auth-confetti-box { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-confetti-dot { position: absolute; border-radius: 50%; animation: auth-cfall linear forwards; }
@keyframes auth-cfall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

.auth-success-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--auth-teal); background: rgba(0,175,102,.1);
  border: 1px solid rgba(0,175,102,.22);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 18px;
}
.auth-success-headline {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  letter-spacing: -1px; color: var(--auth-navy); margin-bottom: 10px; line-height: 1.1;
}
.auth-success-dot { color: var(--auth-teal); }
.auth-success-sub { font-size: 15px; color: var(--auth-muted); line-height: 1.6; margin-bottom: 22px; }
.auth-success-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.auth-success-feat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--auth-navy);
  background: var(--auth-bg); border: 1px solid var(--auth-border);
  padding: 5px 13px; border-radius: 100px;
}
.auth-success-feat i { font-size: 13px; color: var(--auth-teal); }
.auth-success-bar-wrap { width: 100%; height: 3px; background: var(--auth-border); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.auth-success-bar { height: 100%; background: var(--auth-teal); width: 0%; border-radius: 2px; transition: width linear; }
.auth-success-redirect { font-size: 12px; color: var(--auth-faint); margin-bottom: 20px; }
.auth-success-cta { max-width: 280px; width: 100%; }

/* ─────────────────────────────────────────────────────────────
   13. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-left { display: none !important; }
  .auth-right { padding: 48px 6%; }
}

@media (max-width: 640px) {
  .auth-right { padding: 36px 5%; }
  .auth-row-2 { grid-template-columns: 1fr; }
  .auth-oauth { grid-template-columns: 1fr; }
  .auth-phone-row { flex-direction: column; }
  .auth-phone-code { width: 100%; }
  .auth-otp-digit { width: 44px; height: 56px; font-size: 20px; border-radius: 12px; }
  .auth-otp-row { gap: 7px; }
  .auth-success-card { padding: 40px 24px 36px; }
  .auth-otp-panel { width: 100%; padding: 48px 24px; }
  .auth-pw-reqs { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   14. SHARED UTILITIES
───────────────────────────────────────────────────────────── */
@keyframes auth-spin { to { transform: rotate(360deg); } }
