/* Anmelden, Registrieren, Passwort vergessen/zuruecksetzen, Download und Wartung.
   Dieselbe Optik wie die oeffentlichen Seiten (landing.css): dunkles Grau, Figtree, keine
   Akzentfarbe - wer von der Startseite zum Login kommt, soll nicht in ein anderes Design
   springen. Eine Fassung, ohne Hell/Dunkel-Umschaltung. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #1e1f22;
  --surface: #2a2b30;
  --input-bg: #1e1f22;
  --border: #3a3b41;
  --text: #ececea;
  --text-muted: #a2a39f;
  /* Kein Farbakzent wie auf der Landing Page: Knoepfe hell auf dunkel. */
  --accent: #ececea;
  --accent-text: #1e1f22;
  --danger: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px 28px 26px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; margin-bottom: 28px; }
.brand svg, .brand img { width: 26px; height: auto; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 22px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
input {
  width: 100%; min-height: 50px; background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  /* 16px verhindert das automatische Hineinzoomen auf iOS. */
  border-radius: 12px; padding: 12px 14px; font-size: 16px; font-family: inherit; margin-bottom: 16px;
  transition: border-color .15s;
}
input:hover { border-color: #4a4b52; }
input:focus { outline: 2px solid var(--text); outline-offset: 1px; border-color: transparent; }
/* Hinweis direkt unter einem Feld. Der Abstand des Feldes nach unten wird dafuer
   zurueckgenommen, damit Feld und Erklaerung als ein Block zusammenbleiben. */
.feld-hinweis { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: -10px 0 16px; }
.feld-hinweis b { color: var(--text); font-weight: 600; }
button {
  width: 100%; min-height: 54px; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 17px;
  font-family: inherit; padding: 13px; border: none; border-radius: 999px; cursor: pointer; margin-top: 4px;
  transition: background-color .15s, transform .1s;
}
button:hover { background: #ffffff; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.error { color: var(--danger); font-size: 14px; margin: -6px 0 14px; min-height: 16px; }
.info { color: var(--text); font-size: 14px; margin: -6px 0 14px; }
/* Nur auf /download - teilt sich diese Datei mit dem Login, weil die Seite dieselbe
   Karten-Optik hat und eine eigene Datei fuer vier Regeln nicht lohnt. */
.download-intro { font-size: 15px; color: var(--text-muted); line-height: 1.55; margin-bottom: 20px; }
.download-btn {
  display: flex; align-items: center; justify-content: center; min-height: 54px; text-align: center;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 17px; padding: 13px;
  border-radius: 999px; text-decoration: none;
}
.download-btn:hover { background: #ffffff; }
.download-meta { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
/* Abgesetzter Kasten statt Fliesstext: Wer die Warnung schon auf dem Schirm hat, soll die
   Anleitung beim Ueberfliegen finden, ohne sie zu suchen. */
.download-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: 12px;
  background: var(--bg);
}
.download-note strong { display: block; font-size: 14px; margin-bottom: 8px; }
.download-note p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; }
.download-note p:last-child { margin-bottom: 0; }
.download-note em { color: var(--text); font-style: normal; font-weight: 600; }

.download-hint {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--border);
}

.register-link { text-align: center; margin-top: 16px; }
.register-link a {
  display: inline-block; padding: 6px 4px; color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.register-link a:hover { color: var(--text); text-decoration-color: currentColor; }
