:root { color-scheme: dark; --bg:#080b12; --panel:#131925; --line:#2c3545; --text:#f4f7fc; --muted:#a3afc2; --blue:#389fff; --error:#ffabb2; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:280px; background:radial-gradient(ellipse at 15% 12%,#12233e 0,transparent 48%),var(--bg); color:var(--text); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:#81bdff; text-decoration:none; }
a:hover { text-decoration:underline; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.48; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid #92c8ff; outline-offset:4px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.2; overflow-wrap:anywhere; }
h1 { font-size:36px; letter-spacing:-1px; }
h2 { font-size:28px; letter-spacing:-.6px; }
h3 { font-size:20px; }
ul { padding:0; margin:0; list-style:none; }
.auth-header { max-width:1248px; margin:auto; min-height:96px; padding:24px 32px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; color:white; font-size:27px; font-weight:700; letter-spacing:-1px; }
.brand:hover { text-decoration:none; }
.brand-mark { color:#49aaff; font-size:35px; margin-right:1px; font-style:italic; }
.back-link { color:var(--muted); font-size:14px; text-align:right; }
.auth-layout { max-width:1176px; min-height:calc(100vh - 190px); margin:auto; padding:32px 32px 64px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,480px); gap:80px; align-items:center; }
.auth-intro { max-width:480px; }
.eyebrow { color:#81bdff; font-size:11px; letter-spacing:2px; font-weight:700; }
.auth-intro h1 { margin-top:22px; font-size:clamp(40px,5vw,64px); line-height:1.07; letter-spacing:-2.3px; }
.auth-intro h1 span { color:#65b3ff; }
.auth-intro > p { margin-top:26px; font-size:18px; color:var(--muted); max-width:370px; }
.intro-points { margin-top:36px; display:grid; gap:14px; color:#d4ddec; font-size:14px; }
.intro-points li { display:flex; align-items:center; gap:12px; }
.intro-points li::before { content:"✓"; color:#70baff; width:22px; height:22px; background:#173053; border-radius:50%; text-align:center; font-weight:700; flex-shrink:0; }
.auth-card { min-width:0; width:100%; padding:32px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,#171f2d,#101621); box-shadow:0 24px 64px #0003; }
.card-heading { margin-bottom:26px; }
.card-heading h2 { margin-top:10px; }
.muted { color:var(--muted); font-size:14px; line-height:1.6; }
.card-heading .muted,.auth-card > .muted { margin-top:10px; }
.auth-tabs { display:flex; gap:4px; max-width:100%; overflow-x:auto; margin:0 -4px 26px; padding:4px 4px 10px; scrollbar-width:thin; }
.auth-tabs button { border:0; border-radius:8px; padding:9px 12px; min-height:44px; background:transparent; color:#b3c0d3; white-space:nowrap; font-size:13px; font-weight:600; flex-shrink:0; }
.auth-tabs button[aria-selected="true"] { background:#253b58; color:#c0e1ff; }
.auth-tabs button:hover:not(:disabled) { background:#223148; }
.field { margin:0 0 20px; }
.field label,.field-label { display:block; color:#dbe4f1; font-size:13px; font-weight:600; margin-bottom:8px; }
input { display:block; width:100%; min-width:0; background:#0d1320; border:1px solid #354259; border-radius:9px; padding:12px 14px; color:var(--text); min-height:48px; }
input:hover { border-color:#587295; }
input[aria-invalid="true"] { border-color:#e57f8a; }
input[readonly] { color:#bac9dc; }
.button { border:1px solid transparent; border-radius:10px; min-height:48px; padding:11px 18px; display:inline-flex; align-items:center; justify-content:center; gap:12px; font-size:14px; font-weight:650; line-height:1.4; text-align:center; transition:background .15s,border-color .15s; white-space:normal; }
a.button:hover { text-decoration:none; }
.button-primary { background:linear-gradient(110deg,#2799ff,#1573df); color:white; box-shadow:0 8px 22px #007eff22; }
.button-primary:hover:not(:disabled) { background:#389fff; }
.button-secondary { background:#202d40; border-color:#3a4b64; color:#d9e9fc; }
.button-secondary:hover:not(:disabled) { background:#2b3d56; }
.full-width { width:100%; }
.text-button { background:none; border:0; color:#81bdff; padding:6px 0; min-height:36px; font-size:13px; text-align:left; }
.text-button:hover:not(:disabled) { text-decoration:underline; }
.form-footnote { margin-top:22px; font-size:13px; color:var(--muted); text-align:center; }
.form-footnote a { font-weight:600; }
.field-hint { color:#9aaac1; font-size:12px; margin-top:8px; }
.form-errors,.field-errors { color:var(--error); font-size:13px; overflow-wrap:anywhere; }
.form-errors { padding:12px 14px; border:1px solid #673542; background:#41212b55; border-radius:9px; margin-bottom:20px; }
.field-errors { margin-top:8px; }
.errorlist { list-style:none; margin:0; padding:0; }
.captcha-media { width:100%; max-width:320px; aspect-ratio:8/3; display:flex; align-items:center; justify-content:center; background:#e9edf2; color:#3c4a5f; border:1px solid #516078; border-radius:9px; overflow:hidden; margin:0 0 10px; }
.captcha-media img { width:100%; height:auto; display:block; }
.captcha-media span { font-size:12px; padding:12px; text-align:center; }
.captcha-refresh { margin-top:4px; }
.captcha-answer-row { display:flex; align-items:stretch; gap:8px; width:100%; max-width:320px; }
.captcha-answer-row input { flex:1 1 0; min-width:0; }
input[name="captcha_answer"] { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:600; letter-spacing:.16em; }
.captcha-answer-row .captcha-refresh { display:inline-flex; flex:0 0 44px; align-items:center; justify-content:center; min-height:44px; margin:0; padding:0; border:1px solid #354259; border-radius:9px; background:#202d40; color:#a6d4ff; }
.captcha-answer-row .captcha-refresh:hover:not(:disabled) { background:#2b3d56; border-color:#587295; }
.qr-frame { width:244px; max-width:100%; min-height:120px; margin:22px auto; border-radius:14px; background:#fff; color:#324159; padding:12px; display:flex; align-items:center; justify-content:center; }
.qr-frame img { display:block; width:100%; height:auto; }
.qr-frame span { font-size:13px; text-align:center; }
.provider-actions { margin-top:20px; }
.copy-row { display:flex; gap:8px; align-items:stretch; }
.copy-row input { font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
.copy-row .button { padding:10px; font-size:12px; flex-shrink:0; }
.flow-status { font-size:13px; color:#a6caef; margin:18px 0; overflow-wrap:anywhere; }
.flow-status.is-error { color:var(--error); }
[data-auth-panel] > .muted { margin-top:10px; }
.account-layout { max-width:1080px; min-height:calc(100vh - 190px); padding:28px 32px 64px; margin:auto; }
.account-heading { margin-bottom:32px; max-width:680px; }
.account-heading h1 { margin:12px 0; }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.identity-list { margin-top:22px; }
.identity-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid #2c3545; }
.identity-row > div { min-width:0; }
.identity-row strong { font-size:14px; }
.identity-name { overflow-wrap:anywhere; }
.identity-row form { flex-shrink:0; }
.danger-text { color:#edabb4; }
.section-heading { margin:30px 0 16px; }
.provider-options { display:flex; flex-wrap:wrap; gap:8px; }
.provider-options .button { flex:1 1 100px; }
.account-provider-panel:has([data-auth-panel]:not([hidden])) { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.account-grid .auth-card > form { margin-top:24px; }
.single-layout { max-width:504px; padding:50px 24px 80px; margin:auto; min-height:calc(100vh - 190px); }
.single-layout h1 { font-size:28px; margin-top:10px; }
.single-layout form { margin-top:28px; }
.messages { max-width:1016px; margin:16px auto 0; padding:0 32px; }
.message { padding:14px 18px; border:1px solid #2c685a; background:#14332e; color:#a5ead5; border-radius:10px; font-size:14px; margin-bottom:10px; }
.message.error { background:#41212b; border-color:#673542; color:var(--error); }
.auth-footer { text-align:center; padding:12px 24px 28px; color:#8593a8; font-size:12px; }
.auth-footer span { margin:0 8px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; top:8px; left:8px; transform:translateY(-160%); background:#12365f; color:white; padding:10px 16px; border-radius:6px; z-index:2; }
.skip-link:focus { transform:none; }

/* Entry forms fit the viewport; short wide screens use a wider card. */
.auth-entry-page {
    height:100vh;
    height:100dvh;
    min-height:0;
    display:grid;
    grid-template-rows:64px minmax(0,1fr) 24px;
    overflow:hidden;
    background:radial-gradient(ellipse at 50% 35%,#142843 0,transparent 62%),var(--bg);
}
.auth-entry-page .auth-header { width:100%; max-width:1120px; min-height:0; margin:0 auto; padding:12px 28px; }
.auth-entry-page .brand { font-size:24px; line-height:1; }
.auth-entry-page .brand-mark { font-size:32px; line-height:1; }
.auth-entry-page .auth-footer { padding:4px 16px; font-size:11px; line-height:16px; }
.entry-layout { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; padding:12px 16px; overflow:hidden; }
.auth-entry-page .entry-card { display:flex; flex-direction:column; width:min(460px,100%); height:min(580px,100%); min-height:0; padding:22px; border-radius:18px; }
.entry-card .card-heading { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.entry-card .card-heading h1 { font-size:26px; line-height:32px; letter-spacing:-.6px; }
.entry-card .entry-title-site { display:none; }
.entry-switch { flex:none; display:inline-flex; align-items:center; min-height:44px; font-size:12px; font-weight:600; }
.entry-card .auth-tabs { display:grid; grid-template-columns:1fr 1.25fr .75fr 1fr 1fr; flex:none; gap:2px; margin:0 0 18px; padding:3px; border:1px solid #29364a; border-radius:11px; background:#0c1421; overflow:visible; }
.entry-card .auth-tabs button { min-width:0; min-height:44px; padding:8px 0; font-size:12px; }
.entry-card .auth-tabs button[aria-selected="true"] { background:#1f4166; color:#e0f0ff; box-shadow:inset 0 0 0 1px #42658b; }
.entry-panels { display:flex; flex:1 1 0; flex-direction:column; min-height:0; overflow:visible; }
.entry-panels > [data-auth-panel] { flex:1 1 0; min-width:0; min-height:0; padding:2px; overflow:visible; }
.entry-panels > [data-auth-panel]:focus-visible { outline:2px solid #92c8ff; outline-offset:2px; border-radius:4px; }
.entry-card [data-manual-form] { display:flex; flex-direction:column; justify-content:center; height:100%; min-height:0; }
.entry-card .entry-form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:none; gap:14px 12px; padding:2px; overflow:visible; }
.entry-card .entry-form-fields > .field { min-width:0; grid-column:1 / -1; margin:0; }
.entry-card .entry-form-fields > .field-password1,.entry-card .entry-form-fields > .field-password2 { grid-column:auto; }
.entry-card .entry-form-fields > .form-errors { grid-column:1 / -1; margin:0; }
.entry-card [data-manual-form] > .button { flex:none; margin-top:18px; }
.entry-card .field label,.entry-card .field-label { font-size:12px; line-height:18px; margin-bottom:4px; }
.entry-card input { min-height:44px; padding:9px 10px; font-size:16px; line-height:24px; }
.entry-card input:focus-visible { border-color:#78baff; background:#101d30; outline:2px solid #78baff; outline-offset:-2px; }
.entry-card .button { min-height:44px; padding:10px 12px; }
.entry-card .captcha-challenge { display:grid; grid-template-columns:minmax(0,256px) minmax(88px,1fr); align-items:center; gap:12px; }
.entry-card .captcha-media { width:100%; max-width:none; margin:0; border:0; }
.entry-card .captcha-answer-row { flex-direction:column; width:100%; max-width:none; gap:6px; }
.entry-card .captcha-answer-row input { flex:none; padding-inline:7px; letter-spacing:.12em; }
.entry-card .captcha-answer-row .captcha-refresh { flex:none; width:100%; min-height:44px; margin:0; padding:0; }
.entry-card .form-errors { margin-bottom:10px; padding:8px 10px; font-size:12px; line-height:18px; }
.entry-card .field-errors { margin-top:4px; font-size:11px; line-height:15px; }
.entry-card .qr-frame { width:176px; aspect-ratio:1; min-height:0; margin:12px auto; padding:8px; }
.entry-card .qr-frame img { object-fit:contain; }
.entry-card [data-auth-panel] > .muted,.entry-card .provider-instructions { font-size:12px; line-height:18px; margin-top:8px; }
.entry-card [data-auth-panel] > h3 { font-size:18px; line-height:24px; }
.entry-card .provider-actions { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:start; gap:8px 12px; margin-top:8px; }
.entry-card .provider-actions .provider-instructions { grid-column:1 / -1; margin:0 0 2px; }
.entry-card .provider-actions .qr-frame { grid-column:1; grid-row:2 / 4; width:128px; margin:0; }
.entry-card .provider-launch { grid-column:2; grid-row:2; font-size:12px; padding:8px; }
.entry-card .provider-safety { grid-column:2; grid-row:3; font-size:11px; line-height:16px; margin:0; }
.entry-card .provider-code-label { grid-column:1 / -1; margin:2px 0 0; }
.entry-card .provider-actions .copy-row { grid-column:1 / -1; gap:8px; flex-wrap:nowrap; }
.entry-card .provider-actions .copy-row input { font-size:16px; padding:9px 8px; }
.entry-card .provider-actions .copy-row .button { width:auto; padding:10px; }
.entry-card .flow-status { margin:10px 0 0; font-size:12px; line-height:18px; }
.entry-card [data-provider-restart],.entry-card [data-device-restart] { margin-top:10px; }
.entry-card [data-provider-register-form] { margin-top:12px; }
.entry-card [data-provider-register-form] > .muted { font-size:12px; line-height:18px; margin-bottom:12px; }
.entry-card [data-provider-register-form] .field { margin-bottom:12px; }
.entry-card .entry-messages { flex:none; width:100%; margin:0 0 10px; padding:0; }
.entry-card .entry-messages .message { padding:7px 10px; margin-bottom:4px; font-size:12px; line-height:18px; }
/* Exceptionally long validation messages remain reachable without clipping. */
.auth-entry-page:has(.form-errors,.field-errors) .entry-layout { overflow-y:auto; align-items:flex-start; }
.entry-card:has(.form-errors,.field-errors) { height:auto; min-height:100%; }
.entry-card:has(.form-errors,.field-errors) .entry-panels,.entry-card:has(.form-errors,.field-errors) .entry-panels > [data-auth-panel] { flex:none; }
.entry-card:has(.form-errors,.field-errors) [data-manual-form] { height:auto; justify-content:flex-start; }

@media(max-width:520px) {
    .auth-entry-page { grid-template-rows:52px minmax(0,1fr) 24px; }
    .auth-entry-page .auth-header { padding:10px 16px; gap:14px; }
    .auth-entry-page .brand { font-size:22px; }
    .auth-entry-page .brand-mark { font-size:29px; }
    .auth-entry-page .back-link { font-size:12px; }
    .entry-layout { padding:8px 12px; }
    .auth-entry-page .entry-card { padding:16px 12px; border-radius:16px; }
    .entry-card .card-heading h1 { font-size:24px; line-height:30px; }
    .entry-card .auth-tabs button { font-size:11px; }
    .entry-card .captcha-challenge { grid-template-columns:minmax(0,256px) minmax(88px,1fr); gap:10px; }
    .entry-card .provider-actions { grid-template-columns:120px minmax(0,1fr); gap:8px 10px; }
    .entry-card .provider-actions .qr-frame { width:120px; }
}
@media(max-height:740px) {
    .auth-entry-page { grid-template-rows:48px minmax(0,1fr) 0; }
    .auth-entry-page .auth-header { padding-block:6px; }
    .auth-entry-page .auth-footer { display:none; }
    .entry-layout { padding-block:8px; }
    .auth-entry-page .entry-card { padding-block:14px; }
    .entry-card .card-heading { margin-bottom:10px; }
    .entry-card .auth-tabs { margin-bottom:14px; }
    .entry-card .entry-form-fields { gap:10px 12px; }
    .entry-card [data-manual-form] > .button { margin-top:14px; }
    .entry-card .qr-frame { width:144px; margin:10px auto; }
}
@media(min-width:460px) and (max-height:600px) and (min-aspect-ratio:4/3) {
    .auth-entry-page { grid-template-rows:40px minmax(0,1fr) 0; }
    .auth-entry-page .brand { font-size:21px; }
    .auth-entry-page .brand-mark { font-size:27px; }
    .auth-entry-page .entry-card { display:grid; grid-template-columns:160px minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:22px; width:min(860px,100%); padding:14px; }
    .entry-card .card-heading { grid-column:1; grid-row:1; flex-direction:column; align-items:flex-start; gap:0; margin-bottom:12px; }
    .entry-card .card-heading h1 { font-size:24px; }
    .entry-card .entry-switch { min-height:36px; }
    .entry-card .auth-tabs { grid-column:1; grid-row:2; grid-template-columns:repeat(2,minmax(0,1fr)); align-self:start; margin:0; }
    .entry-card .auth-tabs button:first-child { grid-column:1 / -1; }
    .entry-card .auth-tabs button { min-height:40px; }
    .entry-panels { grid-column:2; grid-row:1 / 3; padding-left:20px; border-left:1px solid #29364a; }
    .entry-card .entry-form-fields > .field { grid-column:auto; }
    .entry-card .entry-form-fields > .captcha-field { grid-column:1 / -1; }
    .entry-register .entry-form-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .entry-card .captcha-challenge { grid-template-columns:minmax(0,240px) minmax(88px,1fr); }
    .entry-card .provider-actions { grid-template-columns:112px minmax(0,1fr); gap:6px 12px; }
    .entry-card .provider-actions .qr-frame { width:112px; }
    .entry-card .provider-actions .provider-instructions { grid-column:1 / -1; grid-row:1; font-size:11px; line-height:16px; }
    .entry-card .provider-actions .qr-frame { grid-row:2 / 6; }
    .entry-card .provider-launch { grid-column:2; grid-row:2; }
    .entry-card .provider-code-label { grid-column:2; grid-row:3; }
    .entry-card .provider-actions .copy-row { grid-column:2; grid-row:4; }
    .entry-card .provider-safety { grid-column:2; grid-row:5; }
    .entry-card .provider-actions .copy-row input { font-size:16px; }
    .entry-card .provider-actions .copy-row .button { padding:8px; font-size:11px; }
    .entry-card .flow-status { font-size:11px; line-height:16px; margin-top:8px; }
    .entry-card [data-auth-panel="device"] { display:grid; grid-template-columns:144px minmax(0,1fr); grid-template-rows:auto auto 1fr; column-gap:16px; align-content:center; }
    .entry-card [data-auth-panel="device"] h3 { grid-column:2; grid-row:1; }
    .entry-card [data-auth-panel="device"] > .muted { grid-column:2; grid-row:2; }
    .entry-card [data-auth-panel="device"] .qr-frame { grid-column:1; grid-row:1 / 4; margin:0; }
    .entry-card [data-device-status],.entry-card [data-device-restart] { grid-column:2; }
}
@media(min-width:460px) and (max-height:360px) and (min-aspect-ratio:4/3) {
    .auth-entry-page { grid-template-rows:36px minmax(0,1fr) 0; }
    .auth-entry-page .auth-header { padding-block:4px; }
    .entry-layout { padding-block:4px; }
    .auth-entry-page .entry-card { grid-template-columns:128px minmax(0,1fr); column-gap:14px; padding:10px; }
    .entry-card .card-heading { margin-bottom:10px; }
    .entry-card .card-heading h1 { font-size:20px; line-height:26px; }
    .entry-card .entry-switch { min-height:32px; }
    .entry-card .auth-tabs button { min-height:36px; font-size:11px; }
    .entry-panels { padding-left:12px; }
    .entry-card .entry-form-fields { gap:8px 10px; }
    .entry-card .field label,.entry-card .field-label { font-size:11px; line-height:16px; margin-bottom:3px; }
    .entry-card input { min-height:40px; padding-block:7px; }
    .entry-card .button { min-height:40px; padding-block:8px; }
    .entry-card [data-manual-form] > .button { margin-top:10px; }
    .entry-card .captcha-challenge { grid-template-columns:minmax(0,224px) minmax(88px,1fr); gap:10px; }
    .entry-card .captcha-answer-row { gap:4px; }
    .entry-card .captcha-answer-row .captcha-refresh { min-height:40px; }
    .entry-card [data-auth-panel] > h3 { font-size:16px; line-height:20px; }
    .entry-card .provider-actions { gap:4px 10px; }
    .entry-card .provider-actions .provider-instructions { line-height:15px; }
    .entry-card .flow-status { line-height:15px; margin-top:6px; }
}
@media(max-width:459px) and (min-height:460px) and (max-height:560px) {
    .auth-entry-page { grid-template-rows:36px minmax(0,1fr) 0; }
    .auth-entry-page .auth-header { padding:4px 12px; }
    .auth-entry-page .brand { font-size:20px; }
    .auth-entry-page .brand-mark { font-size:26px; }
    .entry-layout { padding:4px 8px; }
    .auth-entry-page .entry-card { padding-block:10px; }
    .entry-card .card-heading { margin-bottom:8px; }
    .entry-card .card-heading h1 { font-size:22px; line-height:28px; }
    .entry-card .entry-switch { min-height:36px; font-size:11px; }
    .entry-card .auth-tabs { margin-bottom:10px; }
    .entry-card .auth-tabs button { min-height:40px; padding-block:6px; }
    .entry-card .entry-form-fields { gap:8px 12px; padding-block:1px; }
    .entry-card .field label,.entry-card .field-label { font-size:11px; line-height:16px; margin-bottom:3px; }
    .entry-card input { min-height:40px; padding-block:7px; }
    .entry-card .button { min-height:40px; padding-block:8px; }
    .entry-card [data-manual-form] > .button { margin-top:10px; }
    .entry-card .captcha-answer-row { gap:4px; }
    .entry-card .captcha-answer-row .captcha-refresh { min-height:40px; }
    .entry-card [data-auth-panel] > h3 { font-size:16px; line-height:20px; }
    .entry-card [data-auth-panel] > .muted { font-size:11px; line-height:16px; }
    .entry-card .provider-actions { grid-template-columns:104px minmax(0,1fr); gap:6px 10px; }
    .entry-card .provider-actions .qr-frame { width:104px; }
    .entry-card .provider-instructions { font-size:11px; line-height:16px; }
    .entry-card .provider-launch { padding:6px; }
    .entry-card .provider-code-label { margin:0; }
    .entry-card .qr-frame { width:112px; margin:6px auto; }
    .entry-card .flow-status { font-size:11px; line-height:16px; margin-top:6px; }
    .entry-card [data-provider-restart],.entry-card [data-device-restart] { margin-top:6px; }
}
@media(max-height:740px) {
    .entry-card:has(.form-errors,.field-errors) .entry-form-fields { gap:8px 12px; }
    .entry-card:has(.form-errors,.field-errors) .field label { font-size:11px; line-height:16px; margin-bottom:3px; }
    .entry-card:has(.form-errors,.field-errors) input { min-height:40px; padding-block:7px; }
    .entry-card:has(.form-errors,.field-errors) .captcha-answer-row { gap:4px; }
    .entry-card:has(.form-errors,.field-errors) .captcha-refresh { min-height:40px; }
    .entry-card:has(.form-errors,.field-errors) [data-manual-form] > .button { min-height:40px; padding-block:8px; margin-top:10px; }
    .entry-card:has(.form-errors,.field-errors) .form-errors { padding:6px 8px; font-size:12px; line-height:16px; }
}
/* Very small visual viewports (keyboard or high zoom) retain reachable controls. */
@media(max-height:459px) and (max-aspect-ratio:4/3), (max-height:300px) {
    .entry-layout { overflow:auto; align-items:flex-start; }
    .auth-entry-page .entry-card { height:auto; min-height:100%; flex:none; }
    .entry-panels { flex:none; }
    .entry-panels > [data-auth-panel] { flex:none; }
    .entry-card [data-manual-form] { height:auto; }
}

@media(max-width:960px) { .auth-layout { gap:36px; } .auth-intro h1 { font-size:48px; } .auth-card { padding:26px; } }
@media(max-width:760px) { .auth-layout { display:block; max-width:520px; padding-top:20px; } .auth-intro { margin-bottom:30px; } .auth-intro h1 { font-size:38px; margin-top:14px; } .auth-intro h1 br { display:none; } .auth-intro > p { margin-top:14px; font-size:15px; } .intro-points { display:none; } .auth-header { min-height:80px; padding:18px 24px; } .account-grid { grid-template-columns:minmax(0,1fr); } .account-heading h1 { font-size:30px; } .auth-layout,.account-layout { padding-left:24px; padding-right:24px; } }
@media(max-width:760px) { .auth-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; } .auth-tabs button { min-width:0; padding-left:6px; padding-right:6px; font-size:12px; } }
@media(max-width:420px) { .auth-header { padding:16px 18px; gap:16px; } .brand { font-size:23px; } .brand-mark { font-size:30px; } .back-link { font-size:12px; } .auth-layout,.account-layout { padding:16px 16px 40px; } .auth-intro h1 { font-size:32px; } .auth-card { padding:22px 18px; border-radius:16px; } h2 { font-size:25px; } .copy-row { flex-wrap:wrap; } .copy-row .button { width:100%; } .identity-row { gap:12px; } .messages { padding:0 16px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
