/* Gemeinsame Grundlage für Registrierseite, Startseite und Rechtstexte (#47). Farben aus
   tokens.css (#49), die jede Seite vorher per <link> lädt (wie die App); Schrift und
   Bausteine nur hier. */
@font-face {
  font-family: "Alfa Slab One";
  src: url("/fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-display: swap;
}
:root {
  --font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bausteine, die Registrierseite und Startseite teilen: Karte und Akzentknopf. */
.surface { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.btn-accent {
  background: var(--accent); color: var(--deep); border: 1px solid var(--accent);
  border-radius: var(--radius); font-weight: 600; cursor: pointer;
}
.btn-accent:hover:not(:disabled) { filter: brightness(1.05); }
.btn-accent:disabled { opacity: .6; cursor: default; }

/* Formular für Anmelden (Streifen im Kopf, start.css) und Registrieren (#54). */
.auth-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--dim); }
.auth-field input {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; color: var(--fg);
}
.auth-field input:focus { outline: none; border-color: var(--accent); }
/* Ganze Zeile tippbar, mindestens 44 px hoch. */
.auth-check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; color: var(--fg); cursor: pointer;
}
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.auth-error {
  background: color-mix(in srgb, var(--error) 13%, transparent); border: 1px solid var(--error); color: var(--error);
  border-radius: var(--radius); padding: 8px 10px; font-size: 13px; margin: 0;
}
.auth-error.hidden { display: none; }
