/* ==================================================================
   Anmeldung / Registrierung (Split-Layout)
   ================================================================== */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-form-side { display: flex; flex-direction: column; padding: 40px clamp(24px, 6vw, 96px); }
.auth-form-wrap { flex: 1; max-width: 420px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.auth-form-wrap .logo { margin-bottom: 40px; }

.auth-head h1 { font-size: 2rem; }
.auth-sub { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.5; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--border); border-radius: 11px; padding: 4px; margin: 26px 0 20px; }
.auth-tabs a { text-align: center; padding: 11px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.auth-tabs a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.input-affix { position: relative; }
.input-affix .input { padding-right: 96px; }
.affix-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted-2); font-weight: 600; font-size: 13px; padding: 8px; }
.affix-btn:hover { color: var(--ink); }

.pw-meter { margin-top: 10px; }
.pw-bar { height: 6px; border-radius: 4px; background: rgba(23,20,15,0.08); overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s ease, background .2s ease; }
.pw-label { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }

.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-legal-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 13px; padding-top: 20px; }
.auth-legal-foot a:hover { color: var(--ink); }

/* Marketing-Panel rechts */
.auth-brand-side { background: var(--green); color: var(--ink); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-brand-side::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,255,255,0.16); top: -120px; right: -120px; }
.auth-brand-side::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(0,0,0,0.05); bottom: -100px; right: 40px; }
.auth-brand-side > * { position: relative; z-index: 1; }
.auth-brand-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 3.5vw, 3rem); line-height: 1.04; margin: 22px 0 20px; color: #111; letter-spacing: -0.035em; }
.auth-brand-text { font-size: 1.1rem; line-height: 1.5; color: rgba(0,0,0,0.68); max-width: 30ch; }

/* Badge „Über 1.400 Maklerbüros …" – nur Inhaltsbreite (nicht über das Panel strecken) */
.auth-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; background: rgba(0,0,0,0.09); color: #111; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: var(--r-pill); }
.auth-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #111; }

/* Mock-Dokumentkarte */
.auth-mock { background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.35); padding: 24px 26px; margin: 40px 0; max-width: 440px; position: relative; }
.auth-mock-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1.5px solid #17140f; }
.auth-mock-head strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #17140f; }
.auth-mock-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--green); flex: none; }
.auth-mock-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #17140f; margin: 18px 0 16px; }
.auth-mock-line { height: 9px; border-radius: 5px; background: rgba(23,20,15,0.10); margin-bottom: 10px; }
.auth-mock-line.w80 { width: 80%; }
.auth-mock-line.w60 { width: 60%; }
.auth-mock-pills { display: flex; gap: 10px; margin: 16px 0; }
.auth-mock-pill { font-family: var(--font-mono); font-size: 12px; background: #d6f5df; color: #0c6b2b; padding: 6px 12px; border-radius: 8px; }
.auth-mock-badge { position: absolute; right: 22px; bottom: -16px; display: inline-flex; align-items: center; gap: 7px; background: #17140f; color: #fff; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 20px -8px rgba(0,0,0,0.4); }

.auth-stats { display: flex; gap: 36px; margin-top: 26px; }
.auth-stats b { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; display: block; color: #111; letter-spacing: -0.02em; }
.auth-stats span { font-size: 13.5px; color: rgba(0,0,0,0.62); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand-side { display: none; }
  .auth-form-side { min-height: 100vh; }
}

/* ---------- Zentrierte Auth-Karte (Passwort vergessen/zurücksetzen) ---------- */
.auth-centered { min-height: 100vh; background: var(--paper); display: flex; flex-direction: column; }
.auth-centered-top { padding: 24px 0; }
.auth-centered-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 20px 90px; }
.auth-centered-card { width: 100%; max-width: 400px; padding: 34px; text-align: center; }
.auth-centered-card h1 { font-size: 1.7rem; margin-top: 4px; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green-700); margin-bottom: 18px; }
.auth-centered .auth-foot { margin-top: 22px; }

/* Logo auf zentrierten Auth-Karten (Passwort vergessen/zurücksetzen) mittig */
.auth-centered-top .auth-centered-logo { display: flex; justify-content: center; }

/* Vorname/Nachname & Formularreihen: Desktop 50/50, mobil 100% */
.auth-form-side .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .auth-form-side .form-row { grid-template-columns: 1fr; gap: 0; } }

/* „Angemeldet bleiben" – Toggle-Schalter */
.toggle-row { display: flex; align-items: center; gap: 11px; margin-top: 16px; cursor: pointer; user-select: none; }
.toggle { position: relative; display: inline-flex; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle-track { width: 42px; height: 24px; border-radius: 100px; background: rgba(0,0,0,0.18); transition: background .18s ease; display: inline-flex; align-items: center; padding: 3px; }
.toggle-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform .18s ease; }
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--green-ring); outline-offset: 2px; }
.toggle-label { font-size: 14px; color: var(--muted); }
