/* ==========================================================================
   auth.css - Anmeldeseiten von social-dent.de (Login, Registrierung)

   Gleiche Farbwelt und Typografie wie die neue Startseite, aber eine eigene,
   schlanke Datei: die Regeln aus onepager.css sind auf lange Inhaltsabschnitte
   ausgelegt (grosszuegige section-Abstaende, breite Typografie) und wuerden die
   Formularkarte auseinanderziehen.

   Wie dort gilt: alles ist auf "body.auth-neu" begrenzt. Der Mitgliederbereich
   und die uebrigen Seiten teilen sich mit diesen Seiten css/main.css und
   benutzen dieselben Klassen (.btn, .input-group, .error-msg, .status) - ohne
   die Begrenzung wuerde diese Datei ins Dashboard durchschlagen.

   Am Markup von tpl/include_login.tpl.htm wurde NICHTS Funktionales geaendert:
   Feld-Namen, ids und die versteckten aktuelle_action-Felder sind unveraendert,
   damit die vorhandene Anmeldelogik weiterlaeuft.
   ========================================================================== */

body.auth-neu {
  --petrol: #0d5c63;
  --petrol-deep: #0c3a3f;
  --petrol-tint: #e3eeee;
  --cta: #bf4d16;
  --cta-dark: #9e3f11;
  --ink: #1e2a29;
  --ink-muted: #4d5f5d;
  --bg: #f8f5ef;
  --border: #e3ddd0;
  --radius: 12px;

  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Karte mittig, mit Luft nach oben - vorher stand sie in einem sehr grossen
   leeren Bereich, weil main.css der Section eine feste Mindesthoehe gibt. */
body.auth-neu main { padding-top: 0; }
body.auth-neu .section-auth {
  min-height: 0;
  padding: 40px 20px 64px;
  display: flex;
  justify-content: center;
}

body.auth-neu .auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -30px rgba(12, 58, 63, 0.45);
  padding: 34px 32px 30px;
}

body.auth-neu .auth-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  color: var(--petrol-deep);
  margin: 0 0 6px;
  text-align: center;
}

/* Trenner zwischen den beiden Anmeldewegen */
body.auth-neu .divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
  color: var(--ink-muted); font-size: 0.85rem;
}
body.auth-neu .divider::before,
body.auth-neu .divider::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--border);
}

body.auth-neu .input-group { margin-bottom: 16px; }
body.auth-neu .input-group label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
body.auth-neu .input-group input,
body.auth-neu .password-wrapper input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
body.auth-neu .input-group input:focus-visible,
body.auth-neu .password-wrapper input:focus-visible,
body.auth-neu button:focus-visible,
body.auth-neu a:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

body.auth-neu .password-wrapper { position: relative; }
body.auth-neu .toggle-password {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 1.05rem; line-height: 1;
}

/* Fehlermeldungen blendet das Skript per style.display ein - hier nur die Optik. */
body.auth-neu .error-msg {
  display: none;
  margin-top: 6px;
  color: #b3261e;
  font-size: 0.85rem;
}
body.auth-neu .status:not(:empty) {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--petrol-tint);
  color: var(--petrol-deep);
  font-size: 0.92rem;
}

/* Bewusst auf .auth-card begrenzt: .btn und .btn-outline stecken auch im
   Kopfbereich (Login / Gratis testen). Ohne die Einschraenkung faerbt diese
   Regel die Kopf-Buttons mit und der Header saehe hier anders aus als auf
   allen anderen Seiten. */
body.auth-neu .auth-card .btn,
body.auth-neu .auth-card .btn-login-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border: 0; border-radius: 8px;
  font-weight: 700; font-size: 0.97rem;
  cursor: pointer; text-decoration: none;
  background: var(--cta); color: #fff;
}
body.auth-neu .auth-card .btn:hover,
body.auth-neu .auth-card .btn-login-submit:hover { background: var(--cta-dark); color: #fff; }
body.auth-neu .auth-card .btn--full { width: 100%; }

/* Der zweite Weg (E-Mail + Passwort) ist die Nebenoption - ruhiger gestaltet,
   damit der Login-Link per E-Mail der naheliegende Weg bleibt. */
body.auth-neu #regForm .btn-login-submit {
  background: #fff;
  color: var(--petrol-deep);
  border: 1px solid var(--petrol);
}
body.auth-neu #regForm .btn-login-submit:hover {
  background: var(--petrol-tint);
  color: var(--petrol-deep);
}

body.auth-neu .auth-card p {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}
body.auth-neu .auth-card a { color: var(--petrol); font-weight: 600; }

@media (max-width: 560px) {
  body.auth-neu .section-auth { padding: 32px 16px 48px; }
  body.auth-neu .auth-card { padding: 26px 20px 24px; }
}
