/* V39.0 common responsive account screens; aligns with Classic / Community themes */
:root{--cfm-accent:#12614c;--cfm-bg:#f4f8f5;--cfm-fg:#173c34;--cfm-line:#d2e0d8}
html[data-theme="classic"]{--cfm-accent:#245c8c;--cfm-bg:#f4f7fa;--cfm-fg:#20394f;--cfm-line:#d6e1eb}
html[data-theme="community2"]{--cfm-accent:#a80f58;--cfm-bg:#f4f7f7;--cfm-fg:#173640;--cfm-line:#d9e3e5}
*{box-sizing:border-box}body.cfm-auth{min-height:100vh;margin:0;padding:18px;display:grid;place-items:center;font-family:Inter,system-ui,Arial,sans-serif;background:var(--cfm-bg);color:var(--cfm-fg)}.cfm-card{width:100%;max-width:560px;padding:clamp(20px,4vw,34px);background:#fff;border:1px solid var(--cfm-line);border-radius:16px;box-shadow:0 8px 32px #0000000c}.cfm-card h1{font-size:clamp(1.5rem,4vw,2rem);margin-top:0}.cfm-stack{display:grid;gap:14px;margin:16px 0}.cfm-stack label{display:grid;gap:6px;font-weight:600}.cfm-stack input:not([type=checkbox]),.cfm-stack select,.cfm-stack textarea{width:100%;padding:10px 12px;border:1px solid var(--cfm-line);border-radius:8px;background:#fff;font:inherit;min-height:42px}.cfm-stack textarea{min-height:85px}.cfm-stack input[type=checkbox]{margin-right:7px}.cfm-button{border:0;border-radius:9px;background:var(--cfm-accent);color:#fff;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}.cfm-card a{color:var(--cfm-accent)}.cfm-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.cfm-actions{display:flex;flex-wrap:wrap;gap:10px}.cfm-test-form{padding-top:18px;border-top:1px solid var(--cfm-line)}.cfm-alert{padding:12px;margin:12px 0;border:1px solid #dcaa8d;background:#fff2e9;color:#844621;border-radius:10px}.cfm-preview{overflow-wrap:anywhere;white-space:pre-wrap;padding:15px;border:1px solid var(--cfm-line);border-radius:10px;background:#f6f8f6;font:inherit}.cfm-lucide{vertical-align:-.1em}@media(max-width:640px){.cfm-cols{grid-template-columns:1fr}.cfm-card{border-radius:12px}}

[hidden]{display:none!important}

/* V39.0 TEST1.3: SMTP-Schalter direkt und barrierearm am Label ausrichten.
   Die allgemeine Grid-Regel fuer Formularfelder bleibt unveraendert. */
.cfm-toggle-group{display:grid;gap:9px;margin:2px 0}
.cfm-stack label.cfm-toggle-row{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:44px;padding:9px 12px;border:1px solid var(--cfm-line);border-radius:9px;background:#f8faf8;cursor:pointer;line-height:1.4}
.cfm-stack label.cfm-toggle-row input[type="checkbox"]{display:block;flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--cfm-accent);cursor:pointer}
.cfm-stack label.cfm-toggle-row span{flex:1;min-width:0}
.cfm-stack label.cfm-toggle-row:focus-within{outline:2px solid var(--cfm-accent);outline-offset:2px}
@media(max-width:640px){.cfm-stack label.cfm-toggle-row{padding:11px 12px}}

/* V39.0 TEST1.3: SMTP-Zeilen oben buendig halten.
   Das Passwortfeld besitzt eine zusaetzliche Statuszeile; ohne align-self:start
   streckt CSS Grid das benachbarte Absendername-Label ueber die gesamte Hoehe
   und verschiebt dessen Eingabefeld nach unten. */
.cfm-cols > label{align-self:start;align-content:start}

/* V39.0 TEST1.4: Fehlerhinweise sind keine positiven Bestaetigungen.
   Als zusaetzliche Klasse zur bestehenden Admin-Meldung, begrenzt auf die E-Mail-Seite. */
.message.cfm-message-error{background:#fff0f0;border:1px solid #deabab;color:#842525}

/* V39.0 TEST1.7: Eindeutige Beschriftung der Schalter und einheitliche
   Warnmeldungen auf den oeffentlichen Reset-Seiten. */
.cfm-toggle-text small{display:block;margin-top:4px;color:#465c56;font-size:.88em;line-height:1.45;font-weight:400}
.cfm-card [role="alert"]{padding:12px 14px;background:#fff0f0;border:1px solid #deabab;border-radius:9px;color:#842525;line-height:1.5}

/* V39.0 TEST1.8: Direkter Rueckweg zur Anmeldung in jedem Reset-Status. */
.cfm-login-back{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--cfm-line)}

/* V39.1 TEST1.1: Sichtbare Schrift auf den neuen Login-Weg-Auswahlbuttons.
   Die allgemeine Regel ".cfm-card a" hatte die weisse Buttonschrift
   mit der gruenen Linkfarbe ueberschrieben. */
.cfm-card a.cfm-button{color:#fff}
