/* ============================================================
   Basis-Styles: Auth-Seiten (Login/Registrierung/Passwort) +
   global geteilte Bausteine (Cookie-Banner).
   Markenfarben aus dem deisterworx-Logo (Markenrot #b32122).
   ============================================================ */

:root {
  /* Zentrale Design-Tokens (gilt für alle Seiten, da style.css überall zuerst lädt).
     Grundierung = dunkles Navy, Interaktion/Akzent = deisterworx Markenrot. */
  --brand: #b32122;          /* deisterworx Markenrot */
  --brand-hover: #c93435;
  --brand-dark: #8e1a1b;
  --bg: #0b1220;             /* Seitenhintergrund */
  --surface: #141e30;        /* Karten */
  --surface-2: #1c283d;      /* Eingaben, schwebende Elemente */
  --border: #27344a;
  --text: #e6ebf3;
  --text-dim: #93a1b8;
  /* Abwärtskompatibilität: alte Blau-Akzente werden auf Markenfarbe gemappt */
  --accent: var(--brand);
}

/* Tastaturfokus überall sichtbar (Barrierefreiheit, Bedienbarkeit am PC) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nutzer mit vestibulären Störungen: Bewegungen abschalten */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e6ebf3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}

/* Auth-Karte: zentriert, mit Logo oben */
.card {
  background: #141e30;
  padding: 2.4rem 2.2rem 1.8rem;
  border-radius: 14px;
  border: 1px solid #27344a;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.card .auth-logo {
  display: block;
  margin: 0 auto 1.1rem;
  height: 52px;
  width: auto;
}

.card h1 {
  font-size: 1.15rem;
  margin: 0 0 1.3rem;
  text-align: center;
  color: #e6ebf3;
  font-weight: 600;
}

.card label {
  display: block;
  font-size: 0.82rem;
  margin: 0.75rem 0 0.25rem;
  color: #93a1b8;
  text-align: left;
}

.card input,
.card select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #27344a;
  background: #0b1220;
  color: #e6ebf3;
  font-size: 0.95rem;
}

.card input:focus,
.card select:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  border-color: var(--brand);
}

.card form button {
  width: 100%;
  margin-top: 1.4rem;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.card form button:hover { background: var(--brand-hover); }
.card form button:disabled { background: #475569; cursor: not-allowed; }

.msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: 8px;
  display: none;
}
.msg.error { background: #7f1d1d; color: #fecaca; display: block; }
.msg.success { background: #14532d; color: #bbf7d0; display: block; }

.links {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}
.links a { color: #93a1b8; text-decoration: none; }
.links a:hover { color: #e6ebf3; text-decoration: underline; }
.links a.scan-link { color: #e8a33d; }

.cookie-consent-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 200; padding: 1.5rem;
}
.cookie-consent-box {
  background: #141e30; border: 1px solid #27344a; border-radius: 12px;
  padding: 1.5rem; max-width: 560px; width: 100%;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.cookie-consent-box h2 { font-size: 1.05rem; margin: 0 0 0.8rem; color: #e6ebf3; }
.cookie-consent-text p { font-size: 0.83rem; color: #93a1b8; line-height: 1.5; margin: 0 0 0.7rem; }
.cookie-consent-text a { color: #d9534f; }
.cookie-consent-box button {
  width: 100%; margin-top: 0.5rem; padding: 0.65rem; background: var(--brand);
  border: none; border-radius: 8px; color: white; font-size: 0.9rem; cursor: pointer;
}
.cookie-consent-box button:hover { background: var(--brand-hover); }
