/* ============================================================
   domoXio – auth.css
   Login, Passwort-Reset, OTP, TOTP-Setup.
   Zentriertes Single-Column-Layout, kein Header/Nav.
   Setzt base.css voraus.
   ============================================================ */

/* ── 1. SEITEN-LAYOUT ─────────────────────────────────────── */
/* Entscheidung: Auth-Seiten haben kein Header/Nav.
   Alles ist zentriert in einer schmalen Spalte.
   .wrap begrenzt die Breite, body gibt den Hintergrund. */

body {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(0,119,182,0.16), rgba(0,119,182,0) 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(91,184,245,0.16), rgba(91,184,245,0) 60%),
    radial-gradient(900px 500px at 55% 95%, rgba(35,45,56,0.10), rgba(35,45,56,0) 60%),
    #f4f6f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
  width: 100%;
  flex: 1;
}

/* ── 2. LOGO-BEREICH ──────────────────────────────────────── */

.logo {
  text-align: center;
  margin-bottom: 28px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── 3. AUTH-CARD ─────────────────────────────────────────── */
/* Gleiche Card-Optik wie im Portal aber ohne margin-bottom
   da es nur eine Card pro Seite gibt. */

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(35,45,56,0.10);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background-image:
    linear-gradient(
      to bottom,
      transparent 0px,
      transparent 4px,
      white 4px
    ),
    linear-gradient(
      to right,
      rgba(0,119,182,0.5) 0%,
      rgba(74,124,89,0.4) 100%
    );
  background-size: 100% 100%, 100% 4px;
  background-repeat: no-repeat;
  background-position: top, top;
}

.card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--anthrazit);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 4. SUBTITLE ──────────────────────────────────────────── */

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── 5. FOOTER ────────────────────────────────────────────── */

.footer {
  background: #f0f2f4;
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  width: 100%;
}

.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer strong { color: var(--text); }

/* ── 6. OTP-INPUT ─────────────────────────────────────────── */
/* Grosses zentriertes Eingabefeld für 6-stellige TOTP-Codes. */

.otp-input {
  font-size: 2em;
  letter-spacing: 0.5em;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-weight: 600;
}

/* ── 7. QR-CODE (TOTP Setup) ──────────────────────────────── */

.qr-wrap { text-align: center; margin: 16px 0; }
.qr-wrap img {
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── 8. PASSWORT-TOGGLE ───────────────────────────────────── */

.pw-wrap { position: relative; margin-bottom: 4px; }
.pw-wrap input { margin-bottom: 0; padding-right: 40px; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 0;
  line-height: 1;
}
.pw-toggle:hover { color: var(--blue); }

/* ── 9. REGELN-LISTE (Passwort-Anforderungen) ─────────────── */

.rules {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.rules ul { padding-left: 16px; margin-top: 4px; }

/* ── 10. STRENGTH BAR ─────────────────────────────────────── */

.strength-wrap { margin-bottom: 14px; }

.strength-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 4px;
  margin-bottom: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.strength-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* "oder"-Trennlinie mit Linien links/rechts */
.oder-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.oder-divider::before,
.oder-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  background: transparent;
}

.btn-grey-cancel:hover {
  background: var(--error);
  opacity: 1;
}

.btn-jetzt-starten:hover {
  background: var(--success);
  opacity: 1;
}
