.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#f5f7fb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033}.auth-card{width:min(440px,100%);background:#fff;border:1px solid #e4e8f0;border-radius:22px;box-shadow:0 20px 60px rgba(22,34,60,.10);padding:28px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.auth-logo{width:44px;height:44px;border-radius:13px;background:#1d4ed8;color:#fff;display:grid;place-items:center;font-weight:800}.auth-title{font-size:24px;font-weight:800;margin:0}.auth-sub{margin:4px 0 0;color:#667085;font-size:14px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f2f4f7;padding:4px;border-radius:12px;margin-bottom:20px}.auth-tab{border:0;background:transparent;border-radius:9px;padding:10px 12px;font-weight:700;color:#667085;cursor:pointer}.auth-tab.active{background:#fff;color:#172033;box-shadow:0 1px 3px rgba(0,0,0,.08)}.auth-form{display:grid;gap:14px}.auth-field{display:grid;gap:6px}.auth-field label{font-size:13px;font-weight:700;color:#344054}.auth-field input{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:11px;padding:12px 13px;font:inherit;outline:none}.auth-field input:focus{border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.10)}.auth-submit{border:0;border-radius:11px;background:#1d4ed8;color:#fff;padding:12px 16px;font-weight:800;cursor:pointer}.auth-message{min-height:20px;font-size:13px;color:#667085;margin-top:12px}.auth-message.error{color:#b42318}.auth-message.ok{color:#067647}.auth-logout{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer;margin-left:10px}.auth-user-email{font-size:12px;color:#667085;margin-left:8px}@media(max-width:640px){.auth-card{padding:22px;border-radius:18px}.auth-shell{padding:16px}.auth-user-email{display:none}}

/* Mobile auth gate hard fix */
[hidden]{display:none!important;}
.auth-gate[hidden], .authGate[hidden], #authGate[hidden]{display:none!important;}

/* ImportDoc auth dark theme v1 */
html[data-theme="dark"] .auth-shell{background:#090d13;color:#f1f5f9}
html[data-theme="dark"] .auth-card{background:#111821;border-color:#273243;box-shadow:0 20px 60px rgba(0,0,0,.38)}
html[data-theme="dark"] .auth-sub,
html[data-theme="dark"] .auth-message,
html[data-theme="dark"] .auth-user-email{color:#9aa7b8}
html[data-theme="dark"] .auth-tabs{background:#0b121b}
html[data-theme="dark"] .auth-tab{color:#9aa7b8}
html[data-theme="dark"] .auth-tab.active{background:#1a2432;color:#f1f5f9;box-shadow:none}
html[data-theme="dark"] .auth-field label{color:#cbd5e1}
html[data-theme="dark"] .auth-field input{background:#0b121b;color:#f1f5f9;border-color:#334155}
html[data-theme="dark"] .auth-field input::placeholder{color:#66758a}
html[data-theme="dark"] .auth-logout{background:#111821;color:#dbe5f1;border-color:#334155}
html[data-theme="dark"] .auth-message.error{color:#ff7b72}
html[data-theme="dark"] .auth-message.ok{color:#3ddc97}

[hidden]{display:none!important;}
.auth-shell[hidden]{display:none!important;}
