/* ============================================================================
   login.css — the SorareTerminal front door (login / landing).
   Self-contained on PURPOSE: the login page must never depend on the big
   dashboard.css to render (front-door isolation). The Aurora tokens + primitives
   below MIRROR dashboard.css :root (1234-1296) / .au-* — keep them in sync.
   Look: dark Aurora bg, violet→teal wordmark shimmer, indigo/violet primary CTA.
   ============================================================================ */

:root {
  --au-bg: #07080d;
  --au-bg-2: #0a0c14;
  --au-panel-solid: #11131c;
  --au-border: rgba(120, 130, 160, 0.10);
  --au-border-strong: rgba(140, 150, 180, 0.20);
  --au-text: #e8e9f0;
  --au-text-2: #c4c6d2;
  --au-muted: #aab0c2;
  --au-muted-2: #4d5163;
  --au-aurora-1: #6b7cff;   /* indigo */
  --au-aurora-2: #a78bfa;   /* violet */
  --au-aurora-3: #2dd4bf;   /* teal   */
  --au-red: #fb7185;
}

* { box-sizing: border-box; }
/* KEIN height:100% auf body: das fixierte body auf Viewporthöhe und verschluckte
   bei mobilem Overflow (Pitch-Sektion) das untere 24px-Padding — min-height
   nutzt vh/dvh, eine %-Kette braucht niemand (Verify Paket E). */
html, body { margin: 0; padding: 0; }
html { font-size: 17px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--au-bg);
  color: var(--au-text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11", "tnum";
  /* Zentrierung via margin:auto AUF .lg-shell (nicht align-items:center):
     Container-Zentrierung clippt bei Content > Viewport die Oberkante
     unerreichbar (trat mit der LAND-01-Pitch-Sektion mobil auf); auto-Margins
     kollabieren bei Overflow zu 0 → Seite startet oben und scrollt normal. */
  display: flex;
  /* iOS Safari counts the toolbar in 100vh → clip risk. dvh tracks the visible
     viewport; 100vh is the fallback. (Kept from the old login page, A62-F5.) */
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* Background stack — fixed, behind everything (mirror dashboard.css). */
.au-bg-ambient, .au-bg-grid, .au-bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.au-bg-ambient {
  background:
    radial-gradient(ellipse 1000px 700px at 18% 0%, rgba(107, 124, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 800px 500px at 85% 10%, rgba(167, 139, 250, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(45, 212, 191, 0.04) 0%, transparent 55%);
}
.au-bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.au-bg-vignette {
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

/* Skip-to-content (a11y). */
.skip-link {
  position: absolute; left: 8px; top: -44px; z-index: 100000;
  background: var(--au-text); color: var(--au-bg);
  padding: 8px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--au-aurora-2); }

/* LAND-01 (UX-Audit 2026-07-24): Zweispalt-Shell — mobil Spalte (Karte oben,
   Value-Prop darunter), ab 1024px Karte links + Value-Prop rechts. */
.lg-shell {
  position: relative; z-index: 1;
  margin: auto;   /* zentriert in beiden Achsen, overflow-sicher (s. body) */
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
@media (min-width: 1024px) {
  .lg-shell {
    max-width: 980px;
    flex-direction: row; align-items: center; justify-content: center; gap: 60px;
  }
  .lg-card { flex: 0 0 420px; }
  /* flex-basis 440; das zugehörige max-width:440-Override steht im Media-Block
     am DATEI-ENDE — die Basis-Regel .lg-pitch (max-width:420) kommt im File
     erst später und würde ein hiesiges Override per Quellreihenfolge schlagen
     (gleiche Spezifität; Verify Paket E). */
  .lg-pitch { flex: 0 1 440px; }
}

/* Glass card (mirror .au-glass). */
.lg-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.70) 0%, rgba(9, 11, 18, 0.64) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--au-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 40px -16px rgba(0,0,0,0.6),
    0 0 60px -30px rgba(107, 124, 255, 0.35);
  padding: 34px 30px 24px;
  text-align: center;
}

/* Language switch (top-right of the card; JS-free, server-driven via /set-lang). */
.lg-langswitch {
  position: absolute; top: 14px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em;
}
.lg-lang {
  color: var(--au-muted); text-decoration: none;
  padding: 2px 4px; border-radius: 4px;
  transition: color 0.15s ease;
}
.lg-lang:hover { color: var(--au-text-2); }
.lg-lang.is-active { color: var(--au-aurora-3); font-weight: 600; }
.lg-lang:focus-visible { outline: 2px solid var(--au-aurora-2); outline-offset: 1px; }
.lg-lang-sep { color: var(--au-muted-2); }

/* Logo (mirror .au-logo-*). */
.lg-logo { margin-bottom: 22px; }
.au-logo-wordmark {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 24px;
  letter-spacing: 0.04em;
  background: linear-gradient(95deg, #b9c6ff 0%, #d6c2ff 35%, #95f6e3 75%, #b9c6ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase;
  animation: au-shimmer 6s ease-in-out infinite;
}
@keyframes au-shimmer { 50% { background-position: 100% 0; } }
.au-logo-cursor {
  display: inline-block; width: 0.42em; height: 1em;
  background: var(--au-aurora-3); margin-left: 0.18em; vertical-align: text-bottom;
  border-radius: 1.5px; animation: au-blink 1.4s steps(2, jump-none) infinite;
  box-shadow: 0 0 10px var(--au-aurora-3);
}
@keyframes au-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
.au-logo-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: var(--au-text-2);
  letter-spacing: 0.18em; margin-top: 6px; text-transform: uppercase;
}
.au-logo-made {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 8px; color: var(--au-muted);
  letter-spacing: 0.16em; margin-top: 2px; text-transform: uppercase; opacity: 0.65;
}

/* Open-Beta-Preisanker (nur gerendert wenn BETA_FREE_UNTIL gesetzt). Teal-Akzent
   statt Rot/Gelb — informativ, nicht alarmierend. */
.lg-free-notice {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.32);
  text-align: left;
}
.lg-free-title {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; color: #5eead4;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lg-free-body {
  display: block; margin-top: 4px;
  font-size: 12px; line-height: 1.45; color: var(--au-text-2);
}
/* LOG-01: das Beta-Datum bricht nie als Orphan um. */
.lg-nowrap { white-space: nowrap; }

/* Alert (OAuth/invite errors). */
.lg-alert {
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: 12px; line-height: 1.45;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.10);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fda4b0;
  text-align: left;
}

/* Form. */
.lg-form { display: block; }
.lg-field { text-align: left; margin-bottom: 14px; }
.lg-field label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--au-muted);
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 7px;
}
.lg-input {
  width: 100%; height: 40px;
  background: rgba(15, 18, 28, 0.55);
  border: 1px solid var(--au-border-strong);
  color: var(--au-text);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px;
  padding: 0 13px; border-radius: 10px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lg-input::placeholder { color: var(--au-muted-2); }
.lg-input:focus {
  border-color: rgba(107, 124, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(107, 124, 255, 0.12);
}

/* „Angemeldet bleiben"-Checkbox-Zeile (Opt-in). Native Checkbox, aurora-getönt. */
.lg-check {
  display: flex; align-items: center; gap: 9px;
  text-align: left; margin-bottom: 16px; cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--au-muted); letter-spacing: 0.02em;
  user-select: none;
}
.lg-check input {
  width: 15px; height: 15px; flex-shrink: 0;
  accent-color: var(--au-aurora-1);
  cursor: pointer;
}
.lg-check:hover { color: var(--au-text-2); }
.lg-check input:focus-visible { outline: 2px solid var(--au-aurora-2); outline-offset: 2px; }

/* Primary CTA (mirror .au-btn + .au-btn-primary), full-width. */
.lg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 46px; padding: 0 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--au-text);
  background: linear-gradient(135deg, rgba(107, 124, 255, 0.22) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(107, 124, 255, 0.35);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px -8px rgba(107, 124, 255, 0.4);
  cursor: pointer; transition: all 0.15s ease; text-decoration: none;
}
.lg-cta:hover {
  background: linear-gradient(135deg, rgba(107, 124, 255, 0.32) 0%, rgba(167, 139, 250, 0.26) 100%);
  border-color: rgba(107, 124, 255, 0.5);
}
.lg-cta:focus-visible { outline: 2px solid var(--au-aurora-2); outline-offset: 2px; }
.lg-cta .lg-cta-mark { display: inline-flex; color: var(--au-aurora-3); }
.lg-cta .lg-cta-mark svg { width: 16px; height: 16px; }

.lg-help {
  margin: 14px 0 0;
  font-size: 11px; line-height: 1.5; color: var(--au-muted);
}
/* Trust-Zeile (LAND-01): Read-only-OAuth-Versprechen direkt unterm CTA/Helper. */
.lg-trust {
  margin: 12px 0 0;
  display: flex; align-items: flex-start; justify-content: center; gap: 7px;
  font-size: 10.5px; line-height: 1.5; color: var(--au-muted);
  text-align: left;
}
.lg-trust svg { width: 13px; height: 13px; flex-shrink: 0; color: #5eead4; margin-top: 2px; }
/* Returning-user escape hatch under the helper (front-door invite gate). */
.lg-returning { margin-top: 6px; }
.lg-returning a {
  color: var(--au-text-2); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, 0.25);
}
.lg-returning a:hover { color: var(--au-aurora-3); }

.lg-unavailable {
  margin: 8px 0;
  font-size: 13px; color: var(--au-text-2);
}

/* Footer. */
.lg-footer {
  margin-top: 26px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--au-muted); letter-spacing: 0.10em;
}
.lg-footer .lg-legal { margin-top: 9px; }
.lg-footer a { color: var(--au-text-2); text-decoration: none; margin: 0 4px; }
.lg-footer a:hover { color: var(--au-aurora-3); }

/* ── Value-Prop (LAND-01) ─────────────────────────────────────────────────
   3 Feature-Bullets + Headline; Icon-Akzente = Logo-Gradient (Indigo/Violett/
   Türkis). Mobil unterhalb der Karte, linksbündig, gleiche Maximalbreite. */
.lg-pitch { width: 100%; max-width: 420px; text-align: left; }
.lg-pitch-headline {
  margin: 0 0 22px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1.18; letter-spacing: -0.01em;
  color: var(--au-text);
}
.lg-pitch-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.lg-pitch-item { display: flex; align-items: flex-start; gap: 14px; }
.lg-pitch-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.lg-pitch-icon svg { width: 18px; height: 18px; }
.lg-pi-1 .lg-pitch-icon {
  color: #9daaff;
  background: rgba(107, 124, 255, 0.10); border: 1px solid rgba(107, 124, 255, 0.28);
}
.lg-pi-2 .lg-pitch-icon {
  color: var(--au-aurora-2);
  background: rgba(167, 139, 250, 0.10); border: 1px solid rgba(167, 139, 250, 0.28);
}
.lg-pi-3 .lg-pitch-icon {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.10); border: 1px solid rgba(45, 212, 191, 0.28);
}
.lg-pitch-item b {
  display: block;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--au-text);
}
.lg-pitch-item div > span {
  display: block; margin-top: 3px;
  font-size: 12.5px; line-height: 1.5; color: var(--au-muted);
}
@media (min-width: 1024px) {
  .lg-pitch-headline { font-size: 30px; }
  /* NACH der .lg-pitch-Basis-Regel (Quellreihenfolge!) — gibt der Pitch-Spalte
     desktop die vollen 440px aus der flex-basis oben. */
  .lg-pitch { max-width: 440px; }
}
