/* Authentication screens only; no authenticated widget queries or external fonts. */
.studio-auth-body{min-height:100dvh;display:flex;flex-direction:column}
.studio-auth-body button{font:inherit;border:0;background:transparent;cursor:pointer}
.studio-auth-main :is(h1,h2,p){margin:0}
.studio-auth-header{display:flex;align-items:center;justify-content:space-between;padding:24px clamp(20px,5vw,72px);gap:16px}
.studio-auth-header .studio-logo{width:150px}
.studio-auth-main{display:grid;grid-template-columns:minmax(0,460px);justify-content:center;align-items:center;width:100%;margin:auto;padding:40px 20px 64px}
.studio-auth-card{background:var(--surface);border:1px solid var(--border);border-block-start:3px solid var(--accent);border-radius:12px;padding:clamp(24px,3vw,40px);min-width:0}
.studio-auth-card h1{font-size:28px;font-weight:650;line-height:1.35}
.studio-auth-intro{font-size:13px;line-height:1.8;color:var(--muted);margin-block:12px 24px}
.studio-auth-form{display:grid;gap:20px;margin-block-start:24px}
.studio-auth-form label{display:block;color:var(--ink);font-size:13px;font-weight:600;margin-block-end:8px}
.studio-auth-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-auth-label label{margin:0}
.studio-auth-form input:not([type=hidden]){width:100%;min-width:0;min-height:48px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);padding:12px 14px;font:inherit;font-size:15px}
.studio-auth-form #cin{text-transform:uppercase;direction:ltr;text-align:start}
.studio-auth-form .sa-button{width:100%;justify-content:space-between;min-height:48px;font-size:14px}
.studio-auth-password-toggle{min-height:44px;color:var(--action);font-size:12px;font-weight:600;text-align:start}
.studio-auth-support{border-block-start:1px solid var(--border);padding-block-start:20px;margin-block-start:24px;font-size:12px;display:flex;flex-wrap:wrap;gap:4px 16px}
.studio-auth-support p{width:100%;color:var(--muted)}.studio-auth-support a{color:var(--action);display:inline-flex;align-items:center;min-height:44px}
.studio-auth-support a:hover{text-decoration:underline;text-underline-offset:4px}
.studio-auth-card .studio-flash-error{margin-block:16px;font-size:13px}
.studio-auth-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-block-start:1px solid var(--border);padding:20px clamp(20px,5vw,72px);font-size:11px;color:var(--muted)}
@media(max-width:639px){.studio-auth-header{padding:18px 20px}.studio-auth-header .studio-logo{width:114px}.studio-auth-main{padding:24px 20px 32px}.studio-auth-card{padding:24px}.studio-auth-card h1{font-size:25px}.studio-auth-footer{padding:16px 20px}}

/* Compact workspace sheet, with the existing centred authentication flow. */
html[data-studio] .studio-auth-body .studio-auth-main{grid-template-columns:minmax(0,410px);padding-block:28px 40px}
html[data-studio] .studio-auth-body .studio-auth-card{padding:30px;border:1px solid var(--border)!important;border-radius:10px!important;box-shadow:0 4px 18px #00000004}
html[data-studio] .studio-auth-body .studio-auth-card .sa-eyebrow{font-size:10px;letter-spacing:.08em;margin-block-end:12px}
html[data-studio] .studio-auth-body .studio-auth-card h1{font-size:26px;line-height:1.35;margin:0}
html[data-studio] .studio-auth-body .studio-auth-intro{font-size:12px;margin-block:10px 22px;line-height:1.7}
html[data-studio] .studio-auth-body .studio-auth-form{gap:18px;margin-block-start:24px}
html[data-studio] .studio-auth-body .studio-auth-form :is(input:not([type=hidden]),.sa-button){min-height:44px;border-radius:7px!important;font-size:13px}
html[data-studio] .studio-auth-body .studio-auth-form label{font-size:12px}
html[data-studio] .studio-auth-body .studio-auth-form .sa-button{font-weight:600;justify-content:space-between}
html[data-studio] .studio-auth-body .studio-auth-support{padding-block-start:16px;margin-block-start:20px;gap:4px 14px}
html[data-studio] .studio-auth-body .studio-auth-support a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-size:11px}
@media(max-width:639px){html[data-studio] .studio-auth-body .studio-auth-main{padding:20px 16px 28px}html[data-studio] .studio-auth-body .studio-auth-card{padding:24px}html[data-studio] .studio-auth-body .studio-auth-form :is(input:not([type=hidden]),.sa-button){font-size:16px}html[data-studio] .studio-auth-body .studio-auth-card h1{font-size:25px}}

/* Busy authentication actions form one stable group in either writing direction. */
html[data-studio] .studio-auth-body .studio-auth-form .sa-button.is-busy{justify-content:center;gap:10px;flex-wrap:nowrap}
/* Auth does not load Tailwind's sr-only utility. Keep the live announcement
   accessible without adding a second visible progress line or a grid row. */
.studio-auth-form>[data-submit-status].sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* Recovery uses the same sheet and loading group as login, in either locale. */
.studio-recovery-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--action);text-decoration:underline;text-underline-offset:3px;margin-block-start:10px}
.studio-recovery-hint,.studio-recovery-details p{font-size:12px;line-height:1.8;color:var(--muted);margin-block-start:8px!important}
.studio-recovery-note{padding:14px;border:1px solid var(--border);border-radius:7px;background:var(--soft);font-size:13px;line-height:1.8}
.studio-recovery-details{margin-block-start:20px;font-size:12px;line-height:1.8}
.studio-recovery-details summary{cursor:pointer;min-height:44px;display:list-item;padding-block:10px;color:var(--ink)}
.studio-recovery-details a{display:inline-flex;align-items:center;min-height:44px;color:var(--action);text-decoration:underline;text-underline-offset:3px}
.studio-auth-form #recovery-code{letter-spacing:.25em;font-variant-numeric:tabular-nums;text-align:center}
.studio-auth-form #recovery-phone{text-align:start}
.studio-recovery-form button[type=submit]{white-space:normal;overflow-wrap:normal;text-align:center;justify-content:center!important}
