/* ===== Entry page: sign in / create account ===== */
.login-page { min-height: 100vh; overflow-x: hidden; background: radial-gradient(ellipse at 70% 40%, #0b1a3a 0%, var(--bg) 60%); }
.lg-globe { position: fixed !important; inset: 0; z-index: 0; } /* globe.gl sets position: relative inline */
.lg-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 6, 12, .92) 0%, rgba(4, 6, 12, .55) 38%, rgba(4, 6, 12, 0) 60%, rgba(4, 6, 12, .35) 100%); }
.lg-wrap { position: relative; z-index: 2; min-height: 100vh; width: min(1240px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; align-content: center; padding: 40px 0; pointer-events: none; }
.lg-wrap > * { pointer-events: auto; }

/* Hero */
.lg-hero { max-width: 560px; animation: lgRise .9s cubic-bezier(.2, .9, .2, 1) both; }
.lg-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; letter-spacing: 5px; font-size: 20px; margin-bottom: 34px; }
.lg-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6.4vw, 88px); line-height: .98; letter-spacing: -1px; }
.lg-hero p { margin-top: 20px; color: #b9c3e0; font-size: 17px; line-height: 1.6; max-width: 480px; }
.lg-stats { display: flex; gap: 28px; margin-top: 30px; }
.lg-stats b { display: block; font-family: var(--font-display); font-size: 28px; }
.lg-stats small { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.lg-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lg-feats span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.lg-feats i { color: var(--gold); font-size: 16px; }

/* Card */
.lg-card { padding: 22px; border-radius: 26px; animation: lgRise .9s .15s cubic-bezier(.2, .9, .2, 1) both;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.lg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); margin-bottom: 18px; }
.lg-tabs button { position: relative; z-index: 1; height: 40px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .25s; }
.lg-tabs button.active { color: #1f1400; }
.lg-glider { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 40px; border-radius: 11px; background: var(--grad); transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.lg-form { display: none; }
.lg-form.active { display: grid; gap: 12px; animation: lgFade .35s both; }
.lg-form #step1, .lg-form #step2 { display: grid; gap: 12px; }
.lg-form [hidden] { display: none !important; }
.lg-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.lg-form input { height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s; }
.lg-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 201, 74, .12); }
.lg-btn { height: 48px; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lg-error { min-height: 16px; color: var(--red); font-size: 12.5px; }
.lg-note { margin-top: 14px; color: var(--muted); font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.lg-steps { display: flex; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; }
.lg-steps span { flex: 1; padding: 6px 0; text-align: center; border-radius: 9px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.lg-steps span.on { background: rgba(255, 201, 74, .14); color: var(--gold); }
.lg-meter { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: -4px; }
.lg-meter div { height: 100%; width: 0; transition: width .3s, background .3s; }
.lg-nations { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 210px; overflow: auto; padding-right: 4px; }
.lg-nations button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-nations button:hover { background: rgba(255, 255, 255, .08); }
.lg-nations button.on { border-color: var(--gold); background: rgba(255, 201, 74, .12); }
.lg-nations img { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.lg-empty { color: var(--muted); font-size: 12.5px; padding: 8px; }
.lg-pick { display: none; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 201, 74, .08); border: 1px solid rgba(255, 201, 74, .3); }
.lg-pick.show { display: flex; animation: lgFade .3s both; }
.lg-pick img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 20px rgba(255, 201, 74, .4); }
.lg-pick b { display: block; font-family: var(--font-display); font-size: 15px; }
.lg-pick small { color: var(--muted); font-size: 11.5px; }
.lg-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.lg-row .btn.ghost { width: auto; padding: 0 14px; height: 48px; }
.shake { animation: lgShake .45s; }
body.leaving .lg-wrap { animation: lgOut .6s forwards; }

@keyframes lgRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes lgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lgShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes lgOut { to { opacity: 0; transform: scale(.96); filter: blur(6px); } }

@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; align-content: start; }
  .lg-hero { max-width: none; }
  .lg-hero p { font-size: 15px; }
  .lg-brand { margin-bottom: 18px; }
  .lg-vignette { background: rgba(4, 6, 12, .6); }
}
@media (max-width: 420px) {
  .lg-stats { gap: 18px; }
  .lg-nations { grid-template-columns: 1fr; }
}

/* The forgotten-password page uses the sign-in card on its own, centred */
.reset-wrap { display: grid; place-items: center; grid-template-columns: min(440px, 100%); }
.reset-wrap h2 { font-family: 'Unbounded', sans-serif; font-size: 22px; margin-bottom: 4px; }
