/* Hell/Dunkel folgt derselben Wahl wie Landing-Page und App (localStorage-Schluessel "theme").
   Hell ist der Standard - man kommt in aller Regel von der Landing-Page hierher, die ebenfalls
   hell startet. Umgeschaltet wird ueber data-theme="dark" am <html>, gesetzt vom Kopf-Skript
   in den Views noch vor dem ersten Paint. Die Farbwerte entsprechen den Themes aus app.css,
   damit der Uebergang vom Login in die App nicht sichtbar springt. */
:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --input-bg: #ffffff;
  --border: #d6d0c6;
  --text: #332f2a;
  --text-muted: #6b655d;
  --accent: #dba13a;
  --accent-text: #1a1704;
  --danger: #c0392b;
}
:root[data-theme="dark"] {
  --bg: #141617;
  --surface: #202325;
  --input-bg: #181a1b;
  --border: #34373a;
  --text: #eeece6;
  --text-muted: #9a9d9f;
  --accent: #f2c230;
  --accent-text: #1a1704;
  --danger: #e0555a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; margin-bottom: 24px; }
.brand svg, .brand img { width: 28px; height: 28px; }
h1 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 11px 12px; font-size: 15px; font-family: inherit; margin-bottom: 16px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  width: 100%; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 15px;
  padding: 13px; border: none; border-radius: 10px; cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }
.error { color: var(--danger); font-size: 13px; margin: -6px 0 14px; min-height: 16px; }
.info { color: var(--accent); font-size: 13px; margin: -6px 0 14px; }
.register-link { text-align: center; margin-top: 18px; }
.register-link a { color: var(--text-muted); font-size: 12.5px; text-decoration: none; }
.register-link a:hover { color: var(--accent); text-decoration: underline; }
