/* ============================================================
   Anmeldeseite — nur das Gerüst.
   Design-Tokens und Grundformen kommen aus `/style.css`, hier steht
   ausschließlich, was diese eine Seite braucht. Keine zweite Quelle für
   Farben oder Abstände.
   ============================================================ */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  /* Kein `min-height`-Trick: `html, body { height: 100% }` steht schon in
     `style.css`, `align-items: center` richtet die Karte darin mittig aus. */
}

.login-karte {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.login-marke {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.login-marke-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-titel {
  margin: 0 0 var(--space-2);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-hinweis {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.login-hinweis strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-knopf {
  width: 100%;
  margin-top: var(--space-2);
}

/* Fehlerbereich: dieselbe Form wie im Haus üblich — getönter Grund, kräftige
   Kante, dunklere Schrift als die Markenfarbe (siehe Tokens: „Fehler" ist
   bewusst dunkler als der Markenknopf, sonst verliert die Warnung ihre Wirkung). */
.login-fehler {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid transparent;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
}

/* Ein laufender Anmeldeversuch geht an eine fremde Gegenstelle. Der Knopf zeigt
   das an, damit niemand zweimal klickt und sich die Ratenbremse selbst auslöst. */
.login-knopf[data-laeuft="1"] {
  opacity: 0.7;
}

.login-fuss {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
