body.cfa-auth-pending{overflow:hidden}
body.cfa-auth-pending>*:not(.auth-panel-backdrop){display:none!important}
.auth-panel-backdrop{position:fixed;inset:0;background:linear-gradient(135deg,#f4f0f5 0%,#eef2ff 48%,#f8fafc 100%);display:flex;align-items:center;justify-content:center;z-index:9999;padding:24px}
.auth-panel-backdrop.hidden{display:none}
.auth-card{width:min(486px,100%);background:#fff;border:1px solid rgba(226,232,240,.95);border-radius:28px;box-shadow:0 28px 75px rgba(15,23,42,.14);padding:34px 44px 30px;color:#111827;display:flex;flex-direction:column;gap:18px}
.auth-brand{display:flex;justify-content:center;margin-bottom:6px}
.auth-brand-badge{width:192px;height:192px;border-radius:28px;background:#fff;display:grid;place-items:center;box-shadow:0 14px 34px rgba(15,23,42,.08);border:1px solid #eef2f7;padding:6px;position:relative;overflow:hidden}
.auth-brand-logo-fallback{position:absolute;inset:18px;display:grid;place-items:center;border-radius:22px;background:#d90429;color:#fff;font-weight:900;font-size:42px;letter-spacing:.04em;box-shadow:inset 0 0 0 6px #fff}
.auth-brand-logo{width:172px;height:172px;object-fit:contain;image-rendering:auto;position:relative;z-index:1;opacity:0;transition:opacity .12s ease}
.auth-brand-logo.loaded{opacity:1}.auth-brand-badge.logo-loaded .auth-brand-logo-fallback{display:none}.auth-brand-badge.logo-fallback-only .auth-brand-logo{display:none}
.auth-card h2{margin:0;font-size:27px;line-height:1.15;font-weight:800;letter-spacing:-.02em;text-align:center;color:#0f172a}
.auth-subtitle{margin:-4px 0 6px;color:#64748b;line-height:1.55;font-size:16px;text-align:center}
.auth-form{display:grid;gap:16px}
.auth-field{display:grid;gap:8px}
.auth-field-label{font-size:14px;font-weight:700;color:#0f172a}
.auth-form input{width:100%;box-sizing:border-box;border:1px solid #d8dee8;border-radius:16px;padding:14px 16px;font-size:16px;color:#0f172a;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.auth-form input::placeholder{color:#94a3b8}
.auth-form input:focus{outline:none;border-color:#c8102e;box-shadow:0 0 0 4px rgba(200,16,46,.12);background:#fff}
.auth-actions{display:flex;align-items:center;margin-top:6px}
.auth-actions .btn,.auth-submit-btn{width:100%;display:inline-flex;justify-content:center;align-items:center;min-height:48px;border:none;border-radius:16px;background:#c8102e;color:#fff;font-weight:800;font-size:16px;letter-spacing:.01em;box-shadow:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
.auth-actions .btn:hover,.auth-submit-btn:hover{background:#ad0e28;box-shadow:0 10px 24px rgba(200,16,46,.22)}
.auth-actions .btn:active,.auth-submit-btn:active{transform:translateY(1px)}
.auth-error{color:#b91c1c;font-size:13px;min-height:18px;margin-top:-4px}
.auth-session-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #d1d5db;border-radius:999px;padding:7px 12px;background:#fff;font-weight:700;color:#111827}
.auth-session-chip.secure{border-color:#16a34a;color:#166534;background:#f0fdf4}
.auth-session-chip.local{border-color:#f59e0b;color:#92400e;background:#fffbeb}.auth-session-chip:disabled{opacity:.72;cursor:progress}
.auth-card small{display:block;color:#6b7280;line-height:1.45;margin-top:2px;text-align:center}
.auth-secondary-link{border:none;background:transparent;color:#2563eb;font-weight:700;cursor:pointer;padding:0}
.auth-secondary-link:hover{text-decoration:underline}
@media (max-width:640px){.auth-panel-backdrop{padding:16px}.auth-card{padding:28px 22px 24px;border-radius:24px;width:min(100%,420px)}.auth-brand-badge{width:146px;height:146px}.auth-brand-logo{width:130px;height:130px}.auth-brand-logo-fallback{inset:14px;font-size:31px;border-radius:18px}.auth-card h2{font-size:24px}.auth-subtitle{font-size:15px}.auth-form input{padding:13px 14px;font-size:15px}}
.auth-forgot-link{justify-self:center;margin-top:-4px;color:#475569;font-size:14px;text-align:center}.auth-forgot-link:hover{color:#c8102e}
