/* KapaGrid Planning — Anmeldeseite (ADR 0020). Klein, ohne Brett-Stile,
   ohne fremde Ressourcen. Farben angelehnt an css/tokens.css (dunkel als
   Vorgabe wie das Brett, hell bei entsprechender Systemeinstellung). */
:root {
  --anm-grund: #0f1115;
  --anm-flaeche: #171a21;
  --anm-rand: #2a2f3a;
  --anm-text: #e6e8ec;
  --anm-leise: #9aa3b2;
  --anm-akzent: #3d8bfd;
  --anm-akzent-text: #ffffff;
  --anm-fehler: #ff6b7a;
  --anm-fokus: #8ab8ff;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --anm-grund: #f4f5f7;
    --anm-flaeche: #ffffff;
    --anm-rand: #d8dce3;
    --anm-text: #1b1f27;
    --anm-leise: #5b6475;
    --anm-akzent: #1f6feb;
    --anm-fehler: #c62839;
    --anm-fokus: #1f6feb;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--anm-grund);
  color: var(--anm-text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.anm-karte {
  width: 100%;
  max-width: 420px;
  background: var(--anm-flaeche);
  border: 1px solid var(--anm-rand);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.anm-marke {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--anm-leise);
}
h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}
.anm-instanz {
  margin: -6px 0 16px;
  color: var(--anm-leise);
}
.anm-meldung { margin: 0 0 8px; }
.anm-meldung.anm-fehler { color: var(--anm-fehler); font-weight: 600; }
.anm-hinweis { margin: 0 0 16px; color: var(--anm-leise); }
.anm-aktionen { margin-top: 16px; }
.anm-aktionen button {
  font: inherit;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--anm-akzent);
  background: var(--anm-akzent);
  color: var(--anm-akzent-text);
  cursor: pointer;
}
.anm-aktionen button:disabled { opacity: .6; cursor: default; }
.anm-aktionen button:focus-visible { outline: 2px solid var(--anm-fokus); outline-offset: 2px; }
/* Betriebsart "eigen" (ADR 0022): Kennung und Passwort, „Mit Microsoft anmelden" */
.anm-form { margin-top: 8px; }
.anm-form label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.anm-form input {
  display: block;
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--anm-rand);
  background: var(--anm-grund);
  color: var(--anm-text);
}
.anm-form input:focus-visible { outline: 2px solid var(--anm-fokus); outline-offset: 1px; border-color: var(--anm-fokus); }
.anm-form .anm-aktionen button { width: 100%; }
.anm-oder {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--anm-leise);
  font-size: 13px;
}
.anm-oder::before, .anm-oder::after { content: ""; flex: 1; border-top: 1px solid var(--anm-rand); }
.anm-oder[hidden] { display: none; }
.anm-aktionen button.anm-zweit {
  width: 100%;
  background: transparent;
  color: var(--anm-text);
  border-color: var(--anm-rand);
}
.anm-aktionen button[hidden] { display: none; }
.anm-aktionen:has(> button[hidden]:only-child) { display: none; }
.anm-form[hidden] { display: none; }
/* 0.0.4: eigenes Passwort festlegen / Passwort ändern. Das Kennungsfeld
   fuer Passwortverwalter bleibt unsichtbar (display:block oben ueberstimmt
   sonst das hidden-Attribut). */
.anm-form input[hidden] { display: none; }
.anm-regel { margin: 6px 0 0; font-size: 13px; color: var(--anm-leise); }
.anm-zurueck { margin: 18px 0 0; font-size: 14px; }
.anm-zurueck a { color: var(--anm-akzent); }
.anm-zurueck a:focus-visible { outline: 2px solid var(--anm-fokus); outline-offset: 2px; }
@media (max-width: 480px) {
  body { padding: 12px; }
  .anm-karte { padding: 20px; }
}
