.customer-auth { margin:0; color:var(--mc-navy); background:#f4f7fa; font-family:var(--mc-font); line-height:1.6; }
.customer-auth * { box-sizing:border-box; }
.customer-auth-shell { width:min(100% - 40px, 480px); margin:clamp(32px, 8vh, 88px) auto; }
.auth-brand { display:block; width:fit-content; margin:0 auto 32px; }
.customer-auth-panel { background:var(--mc-white); padding:32px; border:1px solid #dce4ec; border-radius:16px; }
.customer-auth h1 { font-size:1.75rem; line-height:1.35; letter-spacing:-.02em; margin:0 0 16px; }
.customer-auth p { margin:0 0 24px; overflow-wrap:anywhere; }
.customer-auth label { display:block; margin:16px 0 6px; font-weight:600; }
.customer-auth input:not([type=hidden]), .customer-auth select { width:100%; min-height:46px; border:1px solid #94a5b7; border-radius:8px; padding:10px 12px; font:inherit; color:inherit; background:#fff; }
.customer-auth button { width:100%; min-height:46px; margin-top:24px; border:1px solid var(--mc-blue); border-radius:8px; padding:10px 16px; color:white; background:var(--mc-blue); font:inherit; font-weight:600; cursor:pointer; }
.customer-auth button:hover { background:#1267a7; }
.customer-auth button:disabled { opacity:.6; cursor:wait; }
.customer-auth button.secondary { color:var(--mc-navy); background:white; border-color:#94a5b7; }
.customer-auth button.secondary:hover { background:#edf3f8; }
.customer-auth a { color:#1267a7; text-underline-offset:3px; }
.customer-auth .auth-error { background:#fff1f0; color:#922c25; padding:12px 16px; border-radius:8px; }
.customer-auth .auth-hint { margin:6px 0 0; color:#4d627a; font-size:.875rem; }
.auth-actions { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:24px; }
#link-status:empty { display:none; }
.account-notices { padding-left:20px; margin:16px 0 24px; }
.account-notices li { margin-bottom:12px; }
.auth-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 24px; margin-top:24px; font-size:.875rem; }
#passkey-status:empty { display:none; }
#passkey-status { margin-top:16px; }
@media (max-width:480px) { .customer-auth-panel { padding:24px; } }
.security-shell { max-width:560px; width:min(100% - 40px,560px); }
.security-shell h2 { font-size:1.125rem; line-height:1.4; margin:28px 0 12px; }
.factor-list { padding:0; list-style:none; margin:0 0 24px; }
.factor-list li { padding:12px 0; border-bottom:1px solid #dce4ec; display:flex; flex-wrap:wrap; gap:4px 16px; }
.factor-list span { color:#4d627a; overflow-wrap:anywhere; }
.customer-auth .security-explanation { margin:16px 0 0; }
.setup-secret { overflow-wrap:anywhere; }
.setup-secret span, .setup-secret code { display:block; }
.setup-secret code { margin-top:8px; font-size:1rem; padding:12px; background:#edf3f8; border-radius:8px; user-select:all; }
.recovery-codes pre { font-size:1rem; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; user-select:all; }
.security-back { display:inline-block; margin-top:24px; }
[data-copy-status]:empty { display:none; }
[hidden] { display:none !important; }
.master-recovery-codes { font-size:1rem; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; user-select:all; }
.customer-auth .recovery-confirm { display:flex; align-items:flex-start; gap:10px; font-weight:400; }
.customer-auth .recovery-confirm input { width:20px; height:20px; min-height:20px; margin:3px 0 0; flex-shrink:0; accent-color:var(--mc-blue); }
[data-status]:empty, [data-copy-status]:empty { display:none; }
[data-master-login] h1:focus { outline:none; }

.support-notice { padding:20px; margin-bottom:24px; background:#e7f2fa; border:1px solid #a4cce8; border-radius:12px; }
.customer-auth .support-notice p { margin-bottom:8px; font-size:.875rem; }
.customer-auth .support-notice button { margin-top:8px; font-size:.875rem; }

.customer-auth [role="alert"][hidden], .customer-auth [role="status"]:empty { display:none; }
.customer-auth .auth-actions a { display:inline-flex; align-items:center; min-height:32px; }

.customer-auth #passkey-entry button { display:flex; align-items:center; justify-content:center; gap:8px; margin:12px 0 0; }
.customer-auth #passkey-status { margin:4px 0 12px; }
.customer-auth .auth-account-label { margin:0 0 12px; color:#52657a; }

.customer-auth a.auth-primary-action { display:flex; min-height:46px; align-items:center; justify-content:center; padding:10px 16px; border-radius:8px; background:#1678c2; color:#fff; font-weight:600; text-decoration:none; }
.customer-auth a.auth-primary-action:hover { background:#1f3148; }

.password-field { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.customer-auth .password-field button { width:auto; margin:0; min-width:82px; font-size:.875rem; }
.customer-auth .password-field button[hidden] { display:none; }
.customer-auth .password-field button { min-width:46px; display:grid; place-items:center; }
.password-rules { list-style:none; display:grid; gap:3px 16px; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); padding:0; margin:10px 0 0; font-size:.8125rem; color:#52657a; }
.password-rules li { display:flex; gap:6px; align-items:center; }
.password-rules [data-valid="true"] { color:#21583c; }
.password-rules [data-valid="false"] { color:#922c25; }
.rule-status { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
