/* PeakPerformanceCoach - Anmeldung und Passwort setzen.
   Eigene Datei statt Ergaenzung von app.css: die Fingerprinting-Maschinerie
   (static_fingerprints / static_url) erfasst jede Datei in static/ automatisch,
   und app.css bleibt unberuehrt - eine Datei weniger, um die sich parallele
   Feature-Branches streiten. Alle Farben kommen aus den Tokens von app.css,
   also gilt Light/Dark hier ohne eigene Regel. */

.auth {
  max-width: 26rem;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

.auth__title {
  font-size: 1.5rem;
  margin: 0 0 16px;
  text-align: center;
}

.auth__card {
  /* Die Karte traegt Rahmen, Radius und Schatten schon aus app.css. */
  padding: 18px 18px 20px;
}

.auth__intro {
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* Fehlermeldung: Flaeche in dem Rot, das genug Kontrast fuer weisse Schrift hat,
   und immer mit Text - nie Farbe allein als Information. */
.auth__error {
  background: var(--status-critical-solid);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 14px;
  font-weight: 600;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.auth__input {
  font: inherit;
  /* 16 px verhindert, dass iOS beim Fokus in das Feld hineinzoomt. */
  font-size: 16px;
  color: var(--text-primary);
  background: var(--plane);
  border: 1px solid var(--axis);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.auth__input:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 1px;
}

.auth__button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--series-1);
  border: 1px solid var(--series-1);
  border-radius: 6px;
  /* 44 px hoch: die kleinste Flaeche, die ein Finger zuverlaessig trifft. */
  min-height: 44px;
  margin-top: 18px;
  cursor: pointer;
}

/* Derselbe Knopf als Link auf der Startseite: kein <form>, also kein <button>. */
.auth__button--link {
  display: inline-block;
  text-decoration: none;
  padding: 10px 28px;
  margin-top: 0;
}

.auth__button:hover {
  filter: brightness(0.94);
}

.auth__button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.auth__note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 14px 0 0;
  text-align: center;
}

.auth__note code {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.95em;
  /* Der Befehl darf umbrechen statt die Seite breiter zu machen. */
  overflow-wrap: anywhere;
}

/* Rechtsseiten (05.10.2026, /privacy): derselbe Rahmen wie die Anmeldung, nur breiter,
   und die Karten aus app.css - "wenigstens das gleiche design wie fuer den coach". */
.auth--wide {
  max-width: 44rem;
}

.legal__card {
  padding: 16px 18px 18px;
  margin-bottom: 14px;
}

.legal__card p,
.legal__list {
  margin: 0;
  line-height: 1.55;
}

.legal__list {
  padding-left: 1.2rem;
}

.legal__list li + li {
  margin-top: 6px;
}

/* Turnstile-Widget im Anmelde- und Reset-Formular (06.10.2026). */
.auth__captcha {
  margin-top: 12px;
}

/* Zweiter Faktor (06.10.2026): der Satz des Tors, QR-Code, Schluessel, Recovery-Codes. */
.auth__gate {
  font-weight: 600;
  margin: 0 0 10px;
}

.auth__qr {
  display: block;
  margin: 4px auto 12px;
  background: #fff;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

.auth__secret code,
.auth__codes code {
  font-size: 1rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.auth__codes {
  columns: 2;
  margin: 0 0 14px;
  padding-left: 1.6em;
}
