/* login.css — seitenspezifische Styles der Login-Seite (Pre-Auth).
   Theme-Variablen, Settings-Panel, Modal und Basis-Buttons kommen aus
   page-shell.css. Diese Datei wird NACH page-shell.css eingebunden und
   gewinnt daher bei den Overrides (body-Zentrierung, .card, .btn). */

/* Login zentriert die Karte mittig im Viewport. */
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
}
.logo { font-size: 1.2rem; font-weight: 700; color: #ffffff; margin-bottom: 28px; text-align: center; }

/* Login-Buttons immer volle Breite, Text zentriert. */
.btn { width: 100%; justify-content: center; padding: 11px; }

.divider { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 28px 0 8px; }
.error { color: #ef4444; font-size: 0.85rem; margin-top: 10px; min-height: 20px; }
.warn  { color: #d97706; font-size: 0.82rem; margin-top: 6px; min-height: 18px; line-height: 1.35; }
.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 18px; text-align: center; }

.step { display: none; }
.step.active { display: block; }

.captcha-wrap { margin: 12px 0 4px; display: none; }
.captcha-wrap.visible { display: block; }

.lock-box {
  border: 1.5px solid #ef4444; background: rgba(239,68,68,0.07);
  border-radius: 7px; padding: 10px 12px; margin-top: 12px;
  color: #b91c1c; font-size: 0.87rem; display: none;
}
[data-theme="dark"] .lock-box { color: #fecaca; background: rgba(239,68,68,0.12); }
.lock-box.visible { display: block; }
.lock-box strong { display: block; margin-bottom: 2px; }
.lock-countdown { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }

/* Während einer aktiven Konto-Sperre alle Formular-Elemente im Login-Step
   ausblenden — nur die rote .lock-box mit Countdown bleibt sichtbar.
   JS (showLockBox) setzt die Klasse, clearLockBox entfernt sie nach Ablauf. */
#step-main.locked > *:not(#lockBox) { display: none !important; }

/* Settings-Panel schwebt oben rechts — es gibt auf der Login-Seite keine .tab-bar. */
.settings-wrap { position: fixed; top: 16px; right: 16px; z-index: 200; }

/* App-Store-Links im 2FA-Hinweis-Modal */
.app-links { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px; flex-wrap: wrap; }
.app-link { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 14px; text-decoration: none; color: var(--text); transition: border-color 0.15s, color 0.15s, transform 0.15s; cursor: pointer; }
.app-link:hover, .app-link:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); outline: none; }
.app-icon { font-size: 1.5rem; line-height: 1; }
.app-text { display: flex; flex-direction: column; line-height: 1.15; }
.app-small { font-size: 0.7rem; color: var(--text-muted); }
.app-link:hover .app-small, .app-link:focus-visible .app-small { color: var(--accent); }
.app-big { font-size: 0.92rem; font-weight: 700; }
.steps-title { font-weight: 600; margin-top: 4px; margin-bottom: 6px !important; color: var(--text); }
.steps-list { padding-left: 22px; font-size: 0.86rem; color: var(--text); line-height: 1.55; margin-bottom: 8px; }
.steps-list li { margin-bottom: 4px; }
