/* Login-only surface. Shared OS token values; no impact on reset, Crew or workspace. */
.os-login-body{--ss-ocean-950:#03191f;--ss-magenta-700:#a92fa0;--ss-magenta-600:#c944bd;--ss-magenta-50:#fff4fd;--ss-slate-600:#587078;--font-main:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--auth-ink:#152632;--auth-muted:#556774;--auth-border:#c9d4df;margin:0;min-height:100vh;min-height:100svh;color:var(--auth-ink);font-family:var(--font-main);background:#eef3f8;position:relative;isolation:isolate}
.os-login-body *{box-sizing:border-box}.os-login-body [hidden]{display:none!important}.os-login-body button,.os-login-body input{font:inherit}.os-login-body button,.os-login-body a,.os-login-body summary{-webkit-tap-highlight-color:transparent}.os-login-body svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.65}.os-login-body a{color:var(--ss-magenta-700);text-decoration:none}.os-login-body a:hover{text-decoration:underline}.os-login-body :focus-visible{outline:3px solid var(--ss-magenta-700);outline-offset:4px}
.auth-environment{position:fixed;inset:0;z-index:-2;overflow:hidden;background:#e7eef7}.auth-environment img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 52%;filter:saturate(.45);opacity:.65}.auth-environment:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,249,255,.98) 0%,rgba(243,249,255,.88) 29%,rgba(234,242,250,.35) 64%,rgba(222,237,247,.55)),linear-gradient(0deg,rgba(232,237,248,.96),transparent 25%,transparent 75%,rgba(241,248,255,.76)),radial-gradient(ellipse at 73% 65%,rgba(236,127,218,.16),transparent 58%)}
.auth-header{display:flex;align-items:center;gap:26px;padding:42px clamp(28px,5vw,96px) 0;max-width:1920px;margin:auto}.auth-brand{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:28px;font-weight:750;letter-spacing:-1.1px}.auth-brand img{width:48px;height:48px;object-fit:contain}.auth-brand b{color:var(--ss-magenta-600);font-weight:750}.auth-brand-caption{border-left:1px solid #96a7b5;padding-left:26px;font-size:9px;line-height:2.1;letter-spacing:3.2px;color:#516475}
.auth-composition{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr);align-items:center;gap:clamp(40px,6vw,120px);padding:42px clamp(28px,5vw,96px);min-height:calc(100svh - 162px)}
.auth-story{padding:20px 0 40px;max-width:730px}.auth-eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:650;color:#627783;margin:0 0 24px}.auth-story h1{font-size:clamp(46px,4.5vw,76px);font-weight:420;line-height:1.04;letter-spacing:-3.2px;margin:0;text-wrap:balance}.auth-story em{font-style:normal;color:var(--ss-magenta-700);background:linear-gradient(105deg,#c21e9b,#973cae);background-clip:text;-webkit-text-fill-color:transparent}.auth-intro{font-size:clamp(16px,1.4vw,21px);line-height:1.6;margin:30px 0 0;letter-spacing:-.4px}.auth-intro span{color:var(--auth-muted)}
.auth-modules{display:grid;grid-template-columns:repeat(4,max-content);gap:clamp(18px,2vw,34px);list-style:none;margin:48px 0 0;padding:0}.auth-modules li{display:flex;align-items:flex-start;gap:9px}.auth-modules svg{color:var(--ss-magenta-700);width:22px;height:22px}.auth-modules strong{display:block;font-size:13px;font-weight:650;margin:0 0 9px}.auth-modules span{display:block;font-size:10px;line-height:1.6;color:#536575}
.auth-card{width:100%;max-width:470px;justify-self:end;padding:38px 40px 26px;background:#f8faff;border:1px solid #fff;border-radius:28px;box-shadow:0 24px 80px #24384c1c,0 2px 10px #fff8,inset 0 1px 0 #fff;position:relative;animation:auth-enter .35s ease-out both}.auth-card:before{content:'';position:absolute;inset:-1px;z-index:-1;border-radius:inherit;box-shadow:22px 20px 90px #e366c52b,-12px -15px 70px #d9edf266;pointer-events:none}
@supports(backdrop-filter:blur(20px)){.auth-card{background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(240,246,255,.84));backdrop-filter:blur(24px)}}
.auth-card-brand{justify-content:center;font-size:21px;letter-spacing:-.8px;gap:8px;margin:0 0 32px}.auth-card-brand img{width:36px;height:36px}.auth-heading{margin-bottom:26px}.auth-heading h2{font-size:27px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin:0 0 8px}.auth-heading p{font-size:13px;line-height:1.5;color:var(--auth-muted);margin:0}
.login-form{display:grid;gap:18px;margin:0}.login-form>label,.login-qr-capture>label{display:grid;gap:8px}.login-form>label>span,.login-qr-capture>label>span{font-size:11px;font-weight:600;color:#4c6070}.input-shell{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid var(--auth-border);border-radius:11px;min-height:52px;padding:0 14px;background:#ffffff65;transition:border-color .15s,box-shadow .15s}.input-shell>svg{width:18px;height:18px;color:#627383}.input-shell:hover{border-color:#9faebf}.input-shell:focus-within{border-color:var(--ss-magenta-700);box-shadow:0 0 0 3px #c944bd14;background:#ffffffab}.input-shell input{min-width:0;width:100%;border:0;padding:14px 0;background:transparent;color:var(--auth-ink);font-size:13px;line-height:22px;outline:none!important;box-shadow:none}.input-shell input::placeholder{color:#637383;opacity:1}.input-shell:has(input:not(:placeholder-shown)){background:#ffffffa3}.input-shell:has(input:disabled){opacity:.55}.password-toggle{display:grid;place-items:center;width:32px;min-width:32px;height:36px;padding:0;border:0;color:#506274;background:transparent;cursor:pointer;border-radius:6px}.password-toggle[aria-pressed=true]{color:var(--ss-magenta-700);background:#fbe9f8}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;margin:0 0 2px}.check-row{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:28px}.check-row input{width:17px;height:17px;margin:0;accent-color:var(--ss-magenta-700)}.login-submit{display:flex;align-items:center;justify-content:center;gap:15px;min-height:52px;border:1px solid transparent;border-radius:11px;background:linear-gradient(105deg,#c128af,var(--ss-magenta-700));color:#fff;font-size:14px!important;font-weight:650!important;box-shadow:0 8px 24px #b4279f23;cursor:pointer;transition:transform .15s,box-shadow .15s}.login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 28px #b4279f33}.login-submit:active:not(:disabled){transform:translateY(0);box-shadow:0 3px 10px #b4279f26}.login-submit:disabled{opacity:.7;cursor:wait}.login-submit svg{width:17px;height:17px}
.auth-divider{display:flex;align-items:center;gap:14px;margin:25px 0 20px;font-size:11px;color:#637383}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#cfd9e3;flex:1}
.auth-qr{background:#ffffff70;border:1px solid var(--auth-border);border-radius:12px}.auth-qr summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:13px;padding:16px 12px;cursor:pointer;min-height:72px;border-radius:12px}.auth-qr summary::-webkit-details-marker{display:none}.auth-qr summary>svg{width:14px;height:14px;margin-left:auto;color:#778696}.auth-qr-icon{display:flex;margin-left:auto}.auth-qr-icon svg{width:27px;height:27px}.auth-qr strong{font-size:12px;font-weight:600;display:block}.auth-qr small{font-size:10px;color:#637583;display:block;line-height:1.4;margin-top:4px}.auth-qr[open] summary{border-bottom:1px solid #dce3ed;border-radius:12px 12px 0 0}.auth-qr[open] summary>svg{transform:rotate(180deg)}.login-qr-capture{padding:16px;display:grid;gap:12px}.auth-qr-submit{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;border:1px solid #c9b1ca;border-radius:8px;background:#fff4fd;color:var(--ss-magenta-700);font-size:12px!important;cursor:pointer}.auth-qr-submit:disabled{opacity:.5;cursor:wait}
.auth-trust{display:flex;align-items:center;justify-content:center;gap:9px;margin:26px 0 0;font-size:10px;color:#4d6270;line-height:1.6}.auth-trust svg{width:14px;height:14px}.login-error,.login-success{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border-radius:10px;font-size:12px;line-height:1.6;margin:0 0 20px;overflow-wrap:anywhere}.login-error{color:#8c273f;background:#fff0f3;border:1px solid #e9b6c3}.login-success{background:#eaf9f2;color:#23654e;border:1px solid #b9e4d3}.login-error svg,.login-success svg{width:17px;height:17px;margin-top:2px}.auth-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1920px;margin:auto;padding:0 clamp(28px,5vw,96px) 26px;font-size:9px;letter-spacing:1.7px;color:#586d7b}.auth-footer>span:first-child:before{content:'';width:36px;height:2px;background:var(--ss-magenta-600);display:inline-block;vertical-align:middle;margin-right:14px}
@keyframes auth-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1650px){.auth-composition{gap:110px;grid-template-columns:1.25fr 1fr}.auth-card{max-width:490px;padding:44px 46px 32px}.auth-story h1{font-size:82px}.auth-modules{gap:30px;margin-top:55px}}
@media(max-width:1150px){.auth-composition{gap:28px;padding:36px 36px;grid-template-columns:minmax(0,1fr) minmax(360px,410px)}.auth-header{padding:28px 36px 0}.auth-story h1{font-size:49px;letter-spacing:-2px}.auth-modules{grid-template-columns:repeat(2,1fr);gap:22px;margin-top:32px}.auth-card{padding:30px}.auth-eyebrow{font-size:9px;letter-spacing:1.2px}.auth-intro{font-size:16px}.auth-brand{font-size:24px}.auth-card-brand{font-size:21px}}
@media(max-width:850px){.auth-header{justify-content:center;padding:26px 24px 0}.auth-brand-caption{display:none}.auth-header .auth-brand{font-size:24px}.auth-composition{display:flex;flex-direction:column;padding:26px 24px 32px;min-height:calc(100svh - 136px);gap:0}.auth-story{display:none}.auth-card{max-width:440px;margin:auto;padding:32px}.auth-card-brand{display:none}.auth-heading{text-align:center;margin-bottom:27px}.auth-environment:after{background:linear-gradient(140deg,#f1f6fbdc,#edf3f6aa),linear-gradient(0deg,#f8edf7ba,transparent)}.auth-environment img{object-position:60% center;opacity:.42}.auth-footer{padding:0 24px 22px;justify-content:center}.auth-footer>span:last-child{display:none}}
@media(max-width:480px){.auth-header{padding-top:24px}.auth-header .auth-brand img{width:36px;height:36px}.auth-header .auth-brand{font-size:23px}.auth-composition{padding:22px 16px 26px}.auth-card{padding:28px 22px 24px;border-radius:23px}.auth-heading h2{font-size:25px}.auth-heading p{font-size:12px}.input-shell input{font-size:16px;letter-spacing:-.3px}.input-shell input::placeholder{font-size:12px;letter-spacing:0}.login-options{font-size:11px}.auth-qr small{font-size:9px}.auth-trust{font-size:9px;gap:6px}.auth-footer{font-size:8px}.auth-card{margin:0 auto}}
@media(max-height:760px) and (min-width:851px){.auth-header{padding-top:22px}.auth-composition{padding-top:24px;padding-bottom:24px}.auth-card{padding-top:26px;padding-bottom:23px}.auth-card-brand{margin-bottom:20px}.auth-divider{margin:20px 0 16px}.auth-trust{margin-top:21px}}
@media(prefers-reduced-motion:reduce){.auth-card{animation:none}.os-login-body *{transition:none!important;scroll-behavior:auto!important}.login-submit:hover{transform:none}}

/* Existing OS loading overlay, adapted to the approved light login surface. */
.os-loading-overlay{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:24px;background:rgba(231,239,248,.58);backdrop-filter:blur(7px);opacity:0;pointer-events:none;transition:opacity 160ms ease}
.os-loading-overlay.is-visible{opacity:1;pointer-events:auto}
.os-loading-card{display:grid;justify-items:center;gap:12px;width:min(420px,100%);padding:30px;border:1px solid rgba(255,255,255,.9);border-radius:24px;background:radial-gradient(circle at top,rgba(217,87,204,.1),transparent 60%),rgba(255,255,255,.92);box-shadow:0 24px 70px rgba(49,65,92,.15);color:var(--auth-ink);text-align:center}
.os-loading-card strong{font-size:20px;line-height:1.25}
.os-loading-card small{color:var(--auth-muted);line-height:1.45}
.upload-loading-spinner{width:70px;height:70px;border-radius:50%;border:4px solid rgba(201,68,189,.13);border-top-color:var(--ss-magenta-600);border-right-color:var(--ss-magenta-600);animation:upload-spin 900ms linear infinite}
body.is-os-loading{cursor:progress}
@keyframes upload-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.os-loading-overlay{transition:none}.upload-loading-spinner{animation:none}}
