/* Anmeldeseite (Phase 8b). Nutzt die Farben aus tokens.css; Dunkelmodus folgt dem Gerät (die Seite kennt den Schalter der App nicht). */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0B0F14; --surface-1: #111722; --surface-3: #1b2331; --border: #202a38; --border-strong: #2c3849;
    --text: #F2F3F4; --text-2: #8B8E92; --text-3: #80848a; --gold-text: #F5B800; --gold-on: #0B0F14; --focus-ring: #F5B800;
    --error-surface: #2E1110; --error-fg: #E74C3C; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.rahmen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); padding: var(--space-4); }
.logo { display: block; height: 40px; width: auto; }
.karte { width: 100%; max-width: 400px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
h1 { margin: 0; font-size: 22px; font-weight: 700; }
.sub { margin: 0 0 var(--space-3); color: var(--text-2); font-size: 14px; }
label { font-size: 14px; font-weight: 600; margin-top: var(--space-2); }
input[type="text"], input[type="password"] { width: 100%; height: 48px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-1);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 var(--space-3); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
#zeigen { position: absolute; right: 4px; top: 4px; height: 40px; min-width: 44px; padding: 0 var(--space-3); border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 600; border-radius: var(--r-xs); cursor: pointer; }
.knopf { margin-top: var(--space-4); height: 52px; border: 0; border-radius: var(--r-sm); background: var(--gold); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.knopf:active { filter: brightness(.95); }
.meldung { margin: 0 0 var(--space-2); padding: var(--space-3); border-radius: var(--r-sm); background: var(--error-surface); color: var(--error-fg); font-size: 15px; font-weight: 600; }
.hinweis { margin: var(--space-3) 0 0; color: var(--text-2); font-size: 13px; }
