/* ════════════════════════════════════════════════════════════════
   LOTUS Auth-Layout (Split-Screen)
   Wird zusätzlich zu design-system.css in allen Auth-Mockups
   eingebunden. Behandelt das Brand-Panel links + Form-Card rechts.
   ════════════════════════════════════════════════════════════════ */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

/* ─── LINKS: Brand-Panel ─── */
.brand-panel {
  position: relative;
  overflow: hidden;
  padding:
    calc(48px + var(--safe-top))
    calc(64px + var(--safe-right))
    48px
    calc(64px + var(--safe-left));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(900px 500px at 80% 120%, rgba(234, 184, 194, 0.55), transparent 55%),
    radial-gradient(700px 400px at 10% 0%, rgba(240, 212, 207, 0.45), transparent 60%),
    linear-gradient(145deg, #f9ebe5 0%, #f2d5d4 55%, #e8c2c8 100%);
}
.brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.12) 25%, transparent 25%);
  background-size: 90px 90px;
  opacity: 0.45;
  pointer-events: none;
}

.auth-brand-header { position: relative; z-index: 2; display: flex; justify-content: center; }
.auth-brand-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-brand-logo svg {
  width: 110px; height: auto;
  filter: drop-shadow(0 2px 8px rgba(212,136,150,0.25));
}
.auth-brand-logo .brand-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(212,136,150,0.25));
}
.auth-brand-logo .wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.32em;
  color: var(--navy);
  margin-top: 4px;
  padding-right: 0.32em;
}
.auth-brand-logo .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}

.brand-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.brand-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.brand-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 22px;
}
.brand-headline em { font-style: italic; color: var(--blush-deep); }
.brand-sub { font-size: 16px; line-height: 1.65; color: #4d4048; max-width: 440px; margin: 0 auto; }

.brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b5660;
}
.brand-footer a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(31,58,95,0.25);
  transition: border-color 0.2s;
}
.brand-footer a:hover { border-bottom-color: var(--navy); }

/* ─── RECHTS: Form-Panel ─── */
.form-panel {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  position: relative;
}
.form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(234,184,194,0.08), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(31,58,95,0.04), transparent 40%);
  pointer-events: none;
}

.form-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.form-header { margin-bottom: 36px; }

.form-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: 14px;
}
.form-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-subtitle { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 28px;
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-footer a { color: var(--navy); font-weight: 500; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
}
.legal-links a { color: var(--ink-soft); }

/* Desktop: legal-links im Form-Footer versteckt (stehen im Brand-Footer) */
.form-footer .legal-links { display: none; }

/* ─── Erfolgs-Status (für Reset-Bestätigung) ─── */
.status-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.status-icon-circle svg { width: 38px; height: 38px; }
.status-icon-circle--warn { background: var(--warn-bg); color: var(--warn); }
.status-icon-circle--mail { background: var(--blush-soft); color: var(--blush-deep); }
.form-card--centered { text-align: center; }
.form-card--centered .form-title { font-size: 32px; }

/* ─── Rollen-Picker (für forgot_password.html) ─── */
.role-grid { display: grid; gap: 12px; margin-top: 4px; }
.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
}
.role-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.role-icon {
  width: 44px; height: 44px;
  background: var(--navy-tint);
  color: var(--navy);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.role-icon svg { width: 22px; height: 22px; }
.role-title { font-weight: 700; color: var(--navy); font-size: 15px; }
.role-desc  { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.role-arrow { margin-left: auto; color: var(--ink-muted); transition: transform 0.2s, color 0.2s; }
.role-card:hover .role-arrow { color: var(--navy); transform: translateX(3px); }

/* ─── Code-Input für Email-Verify ─── */
.code-input-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 20px;
}
.code-input {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31,58,95,0.10);
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH-LOKALE KOMPONENTEN-WRAPPER
   ─────────────────────────────────────────────────────────────────
   Kurze Aliase + spezielle Inline-Callouts, die nur in Auth-Flows
   vorkommen. Nutzen dieselben Tokens wie das Design-System, werden
   aber nicht global gebraucht (keine Navi, kein Data-Table, …).
   ─────────────────────────────────────────────────────────────── */

/* Button-Aliase im Auth-Stil (Fallback auf btn--* Klassen) */
.btn-primary { /* alias für .btn.btn--primary */
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--navy);
}
.btn-block { width: 100%; justify-content: center; }
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-row .btn,
.btn-row a.btn-primary,
.btn-row a.btn-ghost {
  flex: 1 1 160px;
}

/* Einheitliche .btn-Basis, falls .btn aus dem Design-System nicht
   greift (manche Auth-Buttons haben nur .btn-primary ohne .btn). */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Inline-Callout (Icon links + Body rechts) — speziell für
   Form-Hinweise/Warnungen in Auth-Karten. Unterscheidet sich vom
   globalen .info-box durch die Icon-Leiste. */
.alert--info,
.alert--warn {
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Das Grid ist hier richtig - es baut die zwei Spalten (Icon | Text) des
   Callouts auf, und .alert--warn nutzt exakt dasselbe Raster. Falsch war,
   dass `display: grid` frueher unbedingt galt und damit den Schaltvertrag
   von .alert ausgehebelt hat: .alert steht in design-system.css auf
   `display: none` und wird erst mit .show sichtbar. Da beide Regeln die
   gleiche Spezifitaet haben und auth-layout.css spaeter geladen wird, war
   ein .alert.alert--info OHNE .show dauerhaft sichtbar - und MIT .show
   gewann `.alert--info.show { display: flex }` aus design-system.css
   (hoehere Spezifitaet), wodurch ausgerechnet im sichtbaren Zustand die
   Spaltenaufteilung verloren ging. Beide Faelle sind jetzt abgedeckt:
   - ohne .alert (reiner Callout im Markup): greift :not(.alert)
   - mit .alert: erst .show schaltet sichtbar, dann wieder als Grid */
.alert--info:not(.alert),
.alert--warn:not(.alert),
.alert--info.show,
.alert--warn.show {
  display: grid;
}
.alert--info {
  background: var(--info-bg, #e9edf5);
  color: #3a4558;
  border-left: 3px solid var(--navy);
}
.alert--warn {
  background: var(--warn-bg);
  color: #6e4e00;
  border-left: 3px solid var(--warn);
}
.alert-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert--info .alert-icon { background: rgba(31,58,95,0.10); color: var(--navy); }
.alert--warn .alert-icon { background: rgba(205,145,0,0.14); color: #8a6608; }
.alert-body { min-width: 0; }
.alert-body strong { color: inherit; font-weight: 700; }

/* ─── Mobile ─── */
@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
  .brand-panel { padding: 24px 20px 16px; }
  .auth-brand-logo svg { width: 80px; }
  .auth-brand-logo .brand-logo { width: 100px; }
  .auth-brand-logo .wordmark { font-size: 28px; }
  .brand-headline { font-size: 30px; }
  .brand-footer { display: none; }
  .form-footer .legal-links { display: flex; }
  .form-panel { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .brand-panel { padding: 16px 20px; gap: 12px; }
  .brand-hero { display: none; }
  .auth-brand-logo .brand-logo { width: 64px; }
  .auth-brand-logo svg { width: 64px; }
  .form-title { font-size: 30px; }
  .options { flex-direction: column; align-items: flex-start; gap: 14px; }
  .auth-brand-logo .wordmark { font-size: 24px; letter-spacing: 0.28em; }
  .code-input { width: 40px; height: 48px; font-size: 20px; }
}
