/* Auth reception owns these selectors. The old styles/nightshift auth rules
   are retired; form fields, submit logic, token handling and scene stay native. */
.auth-shell {
 --ink:#f6ead0;--muted:#d1c0a0;--edge:#9a8054;--accent:#ddc07c;
 position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
 width:min(1080px,calc(100% - 192px));margin:clamp(1.5rem,5vh,4rem) auto 3rem;
 min-width:0;border:2px solid #8b7049;border-radius:5px;overflow:clip;
 background:#27281d;color:var(--ink);color-scheme:dark;
 box-shadow:inset 0 1px #c7a66777,0 3px 0 #21180e,0 18px 70px #0007;
}
.auth-shell .auth-scene {
 position:relative;min-width:0;min-height:620px;display:flex;flex-direction:column;justify-content:flex-end;
 padding:2.25rem;isolation:isolate;background-color:#131d16;
 background-image:linear-gradient(#0c171222,#0c1712cf),var(--world);background-position:center;background-size:cover;
 border-inline-end:1px solid #8b7049;
}
.auth-shell .auth-scene > .brand {
 position:absolute;inset:1.25rem auto auto 1.25rem;width:190px;height:190px;max-width:calc(100% - 2.5rem);
 object-fit:contain;margin:0;filter:drop-shadow(0 3px 8px #0005);
}
.auth-shell .auth-scene .eyebrow { color:#f4dab0;font-size:max(14px, .78rem);letter-spacing:.13em;line-height:1.5;margin:0 0 .8rem; }
.auth-shell .auth-scene h1 { max-width:12ch;font-size:clamp(2rem,3.2vw,3rem);line-height:1.16;color:#fff0d3;margin:0;text-shadow:0 2px 7px #000b; }
.auth-shell .auth-form {
 min-width:0;align-self:center;padding:clamp(1.5rem,3vw,2.8rem);background:transparent;
 font-family:var(--font);font-size:1rem;line-height:1.6;
}
.auth-shell .auth-form > .eyebrow { margin:0 0 1rem;color:#ddc07c;font-size:max(14px, .7rem);line-height:1.5;letter-spacing:.13em; }
.auth-shell .auth-form h1 { font-size:clamp(1.7rem,2.6vw,2.25rem);line-height:1.2;color:#f8edcf;margin:0 0 .75rem; }
.auth-shell .auth-form > .muted { color:#d1c0a0;margin:0 0 1.5rem;max-width:45ch; }
.auth-shell .auth-form form { display:grid;gap:1.15rem;min-width:0;margin:0;padding:0; }
.auth-shell .field { margin:0;min-width:0;gap:.45rem;font-size:max(14px, .92rem); }
.auth-shell .field > span { color:#e7d5ae;font-weight:650;line-height:1.5; }
.auth-shell :is(input,button) { min-width:0;min-height:44px;font-size:max(16px, 1rem); }
.auth-shell input {
 width:100%;padding:.75rem .8rem;border:1px solid #a48c61;border-radius:3px;
 background:#fff7e5;color:#332b1f;color-scheme:light;box-shadow:inset 0 2px 3px #432f181a;
 font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.4;
}
.auth-shell input::placeholder { color:#79694d; }
.auth-shell input[aria-invalid=true] { border-color:#e7a680;box-shadow:inset 3px 0 #a7482d; }
.auth-shell .button {
 width:100%;margin:0;padding:.8rem 1rem;border:1px solid #c1a267;border-radius:3px;
 background:linear-gradient(#d5b776,#bea060);color:#30261a;font-size:1rem;font-weight:750;
 box-shadow:inset 0 1px #fff0c466,0 2px 0 #17190d;text-shadow:none;white-space:normal;
}
.auth-shell .button::before,.auth-shell .button::after { content:none; }
.auth-shell :is(input,button,a,select):focus-visible { outline:3px solid #f9dc92;outline-offset:4px; }
.auth-shell form[aria-busy=true] { cursor:progress; }
.auth-shell .button:disabled { background:#726c54;color:#e0d4b8;border-color:#9d9575;opacity:1;box-shadow:none;cursor:progress; }
.auth-shell .help { color:#d1c0a0;font-size:max(14px, .85rem);line-height:1.65;margin:0;max-width:52ch; }
.auth-shell .auth-form > .help { margin-top:1.75rem;padding-top:1rem;border-top:1px solid #746346; }
.auth-shell .error-box { margin:0;border:1px solid #c79172;border-inline-start:4px solid #e4a97a;border-radius:3px;padding:.8rem 1rem;background:#41281f;color:#ffddc7;font-size:.95rem;line-height:1.6;overflow-wrap:anywhere;scroll-margin-block:2rem; }
.auth-shell .error-box:empty { display:block;position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.auth-shell:has(form[data-action=activate]) .auth-form h1 { border-inline-start:3px solid #ddc07c;padding-inline-start:.9rem; }
/* Physical pillars are 126/94/54/14px at these exact scaffold breakpoints. */
@media(min-width:1280px) {
 .auth-shell { width:min(1080px,calc(100% - 260px)); }
}
@media(max-width:1059px) {
 .auth-shell { width:min(936px,calc(100% - 124px)); }
 .auth-shell .auth-scene { min-height:580px;padding:1.75rem; }
 .auth-shell .auth-scene > .brand { width:160px;height:160px; }
}
@media(max-width:767px) {
 .auth-shell { grid-template-columns:1fr;width:min(580px,calc(100% - 124px));margin:1.25rem auto 2rem; }
 .auth-shell .auth-scene { min-height:195px;padding:1.4rem;justify-content:flex-end;border-inline-end:0;border-bottom:1px solid #8b7049; }
 .auth-shell .auth-scene > .brand { inset:.65rem .75rem auto auto;width:125px;height:125px;max-width:35%; }
 .auth-shell .auth-scene h1 { max-width:11ch;font-size:1.9rem; }
 .auth-shell .auth-scene .eyebrow { max-width:60%;font-size:max(14px, .68rem);letter-spacing:.08em;margin-bottom:.5rem; }
 .auth-shell .auth-form { padding:1.5rem; }
}
@media(max-width:640px) {
 .auth-shell { width:calc(100% - 36px); }
}
/* A low viewport/soft keyboard uses page scroll, no fixed title or footer. */
@media(max-height:520px) {
 .auth-shell { margin-block:1rem; }
 .auth-shell .auth-scene { min-height:400px; }
}
@media(max-height:520px) and (max-width:767px) {
 .auth-shell .auth-scene { min-height:150px; }
 .auth-shell .auth-scene > .brand { width:100px;height:100px; }
 .auth-shell .auth-scene h1 { font-size:1.65rem; }
}
@media(forced-colors:active) {
 .auth-shell,.auth-shell :is(.auth-scene,.auth-form,input,button,.error-box) { color:CanvasText;background:Canvas;border-color:CanvasText;box-shadow:none;text-shadow:none; }
 .auth-shell :is(h1,h2,.eyebrow,.help,.muted,.field>span) { color:CanvasText;text-shadow:none; }
 .auth-shell :focus-visible { outline-color:Highlight; }
 .auth-shell .button:disabled { color:GrayText; }
}
