/* Login's light-loom world is isolated from workspace and admin themes. */
@font-face{font-family:"Tiandi Display";src:url('./assets/fonts/tiandi-display-black.woff') format('woff');font-weight:900;font-style:normal;font-display:swap}
.auth-premium.auth-layout{--auth-night:#070c1c;--auth-light:#eaf2ff;--auth-blue:#a2c5f8;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(400px,.8fr);min-height:100svh;background:var(--auth-night);isolation:isolate}
.auth-premium .auth-story{--ink:#eaf2ff;--accent:#b5dfff;--muted:#adbfde;min-height:100svh;padding:38px clamp(32px,4.3vw,90px);background:radial-gradient(ellipse at 100% 15%,#152a50 0,transparent 57%),var(--auth-night);border:0;color:var(--auth-light)}
.auth-premium .auth-story:before{inset:0;background:linear-gradient(90deg,#070c1cf5 0%,#070c1ce0 30%,#070c1c4d 66%,transparent 100%);z-index:1;pointer-events:none}
.auth-premium .auth-story:after{content:'';position:absolute;width:55%;height:42%;inset:28% -10% auto auto;background:radial-gradient(ellipse,#3460aa32,transparent 68%);pointer-events:none;filter:blur(28px)}
.auth-light-field{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.auth-story-top{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:2}
.auth-premium .auth-story .brand{color:var(--auth-light);padding:0;min-width:0}.auth-premium .auth-story .brand small{color:var(--auth-blue)}
.auth-motion-control{display:flex;align-items:center;justify-content:center;gap:7px;background:#17243b99;border:1px solid #7386aa55;border-radius:8px;min-height:44px;padding:8px 12px;color:#c4d5f2;font-size:11px;white-space:nowrap;transition:background .18s}
.auth-motion-control:hover:not(:disabled){background:#273c5e}.auth-motion-control:focus-visible{outline:2px solid #a2dfff;outline-offset:4px}
.auth-premium .auth-copy{display:block;margin:auto 0;padding:64px 0 70px;width:100%;max-width:850px;position:relative;z-index:2;animation:auth-focus-arrival .5s cubic-bezier(.16,1,.3,1) both}
.auth-premium .auth-copy h1{font-family:"Tiandi Display","Noto Sans CJK SC",sans-serif;font-size:clamp(64px,6.6vw,96px);font-weight:900;line-height:1.08;letter-spacing:-.025em;color:var(--auth-light);margin:0 0 26px;text-wrap:balance;font-synthesis:none}
.auth-headline-first{font-size:.6em;line-height:1.5}.auth-headline-launch{display:block;font-size:.64em;line-height:1.35;margin-top:12px;color:#b5dfff}.auth-premium .auth-copy h1 .auth-headline-main{color:var(--auth-light)}
.auth-premium .auth-copy .auth-promise{font-size:clamp(15px,1.15vw,19px);font-weight:600;line-height:1.5;letter-spacing:.015em;color:#d4e3fc;margin:24px 0 0}.auth-promise>span{display:inline-block;color:#eaf2ff;font-size:1.4em;font-weight:650;margin-top:8px;letter-spacing:.025em}
.auth-premium .auth-copy .auth-description{font-size:clamp(14px,1.1vw,18px);line-height:1.8;color:#adbfde;letter-spacing:.01em;margin:0}
.auth-context{display:flex;align-items:flex-start;gap:18px;margin-top:32px;padding-top:22px;border-top:1px solid #94aed533;max-width:480px}
.auth-context-symbol{width:43px;flex:0 0 43px;color:#b2def5;padding-top:3px}.auth-context-symbol svg{width:43px;height:24px}
.auth-context strong{font-size:15px;font-weight:600;color:#e2edff;letter-spacing:.03em}.auth-context p{margin:8px 0 0;font-size:12px;line-height:1.8;color:#adbfde}
.auth-premium .auth-story>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#9bafce;font-size:11px;line-height:1.6;letter-spacing:.04em;position:relative;z-index:2}.auth-footer-line{height:1px;flex:1;max-width:180px;background:linear-gradient(90deg,#668db770,transparent)}
.auth-premium .auth-panel{--ink:#15223b;--muted:#55637c;--line:#ccd5e480;--line-strong:#a6b4cc;--surface:#f9fbff;--hover:#e6edf7;--accent:#174995;--teal:#174995;--danger:#a72041;display:flex;align-items:center;justify-content:center;padding:64px clamp(34px,4vw,74px);background:linear-gradient(155deg,#eff6ffff,#e3ecfaf5);position:relative;min-height:100svh;color:var(--ink)}
.auth-premium .auth-panel:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 95% 5%,#abc4fa55,transparent 52%),radial-gradient(ellipse at 10% 98%,#aecde630,transparent 50%)}
.auth-premium .auth-form-wrap{max-width:416px;width:100%;position:relative;padding:36px 30px 26px;background:#ffffff80;border:1px solid #ffffffd6;border-radius:16px;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.auth-premium .auth-form-wrap>.theme-control,.auth-premium .auth-form-wrap>.theme-switcher{position:relative;display:flex;justify-content:flex-end;margin-bottom:32px;top:auto;right:auto}
.auth-premium .auth-form-wrap h2{font-size:31px;font-weight:650;letter-spacing:-.02em;margin:0 0 9px;color:var(--ink)}.auth-premium .auth-form-wrap>.muted{font-size:13px;line-height:1.8;margin-bottom:29px;color:var(--muted)}
.auth-methods{display:flex;background:#d6e1f15c;padding:4px;border-radius:10px;margin:0 0 25px;gap:3px}.auth-methods button{flex:1;min-width:0;min-height:44px;padding:8px 4px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:1.4;cursor:pointer;border-radius:7px;transition:background .15s,color .15s}
.auth-methods button.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #1c396410;font-weight:600}.auth-methods button:disabled{opacity:.5;cursor:not-allowed}.auth-methods button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.auth-premium .field{margin-bottom:21px;gap:9px}.auth-premium .field>span{font-size:12px;color:var(--muted);font-weight:600}.auth-premium .field input{background:#ffffff91;border:1px solid #acbad0;border-radius:9px;color:var(--ink);min-height:48px;font-size:14px;padding:12px 14px;caret-color:var(--accent)}
.auth-premium .field input::placeholder{color:var(--muted)}.auth-premium .field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4e80bf20}
.auth-premium .primary{background:#18385f;border-color:transparent;color:#f5f9ff;border-radius:9px;min-height:48px;font-size:13px;box-shadow:0 5px 16px #16325114;transition:background .15s}.auth-premium .primary:hover:not(:disabled){background:#214b7d}.auth-premium .secondary{background:var(--surface);color:var(--ink)}
.auth-premium .text-btn{color:var(--accent);min-height:36px}.auth-premium .auth-switch{font-size:12px;color:var(--muted);margin:24px 0 0}.auth-premium .auth-switch button{font-size:12px}.auth-premium .auth-foot{font-size:10px;line-height:1.7;margin:22px 0 0;border-top:1px solid var(--line);padding-top:19px;color:var(--muted)}
.auth-service-note{font-size:11px;color:var(--muted);margin:-10px 0 19px}.auth-premium .verification-input{display:flex;gap:8px}.auth-premium .verification-input input{min-width:0;flex:1}.auth-premium .verification-input button{flex-shrink:0;font-size:11px;padding-inline:10px;min-height:44px}
.auth-premium .password-input{display:flex;align-items:center;position:relative}.auth-premium .password-input input{width:100%;min-width:0;padding-inline-end:64px}.auth-premium .password-input button{position:absolute;inset-inline-end:4px;min-height:44px;min-width:52px;font-size:12px}
.auth-code-status{min-height:1.5em;overflow-wrap:anywhere;line-height:1.6;color:var(--muted);font-size:12px}.auth-premium .notice-bar.error{color:var(--danger);background:#ffedf1;border:1px solid #edbec9;font-size:12px;line-height:1.7}
.auth-premium .auth-panel :focus-visible{outline-color:var(--accent)}.auth-premium ::selection{color:#fff;background:#3266a8}.auth-premium .auth-story ::selection{background:#aacdff;color:#070c1c}.auth-premium .auth-panel{scrollbar-color:#a6b4cc transparent;scrollbar-width:thin}
html[data-theme="dark"] .auth-premium .auth-panel{--ink:#e4edfc;--muted:#acbbd4;--line:#63779940;--line-strong:#637799;--surface:#1e2c45;--hover:#23304b;--accent:#b4d8ff;--teal:#b4d8ff;--danger:#ffb2c3;background:linear-gradient(155deg,#121c32,#172641)}
html[data-theme="dark"] .auth-premium .auth-panel:before{background:radial-gradient(ellipse at 100% 0,#33598850,transparent 52%),radial-gradient(ellipse at 0 100%,#32428130,transparent 60%)}html[data-theme="dark"] .auth-premium .auth-form-wrap{background:#1e2c4570;border-color:#8299bd33}html[data-theme="dark"] .auth-methods{background:#070e224d}html[data-theme="dark"] .auth-methods button.active{background:#34445f;box-shadow:none}
html[data-theme="dark"] .auth-premium .field input{background:#0e1b30a6;border-color:#637799}html[data-theme="dark"] .auth-premium .primary{background:#bfdcff;color:#12213b;box-shadow:0 5px 16px #05091333}html[data-theme="dark"] .auth-premium .primary:hover:not(:disabled){background:#d3e7ff}html[data-theme="dark"] .auth-premium .notice-bar.error{background:#441e30;color:var(--danger);border-color:#95536b}
@keyframes auth-focus-arrival{from{filter:blur(5px);transform:translateY(16px)}to{filter:blur(0);transform:translateY(0)}}
@media(min-width:1800px){.auth-premium .auth-copy{padding-block:80px}.auth-premium .auth-form-wrap{max-width:458px;padding:42px 38px 32px}}
@media(max-width:1100px){.auth-premium.auth-layout{grid-template-columns:minmax(0,1fr) minmax(385px,1fr)}.auth-premium .auth-story{padding:32px}.auth-premium .auth-copy h1{font-size:64px}.auth-premium .auth-panel{padding:42px 28px}.auth-premium .auth-form-wrap{padding:28px 23px}.auth-motion-control span{display:none}.auth-motion-control{min-width:44px}.auth-footer-line{display:none}}
@media(max-width:850px){.auth-premium.auth-layout{display:block}.auth-premium .auth-story{min-height:0;padding:23px 25px 26px}.auth-premium .auth-copy{padding:24px 0 0;margin:0;max-width:none}.auth-premium .auth-copy h1{font-size:46px;margin:0 0 14px;line-height:1.13}.auth-premium .auth-copy h1 br{display:initial}.auth-headline-first{font-size:.6em;line-height:1.5}.auth-headline-launch{display:block;font-size:.64em;line-height:1.35;margin-top:12px;color:#b5dfff}.auth-premium .auth-copy .auth-promise{font-size:13px;margin:15px 0 0}.auth-premium .auth-copy .auth-description{display:block;font-size:13px;line-height:1.7}.auth-headline-launch{font-size:.65em;margin-top:6px}.auth-promise>span{font-size:18px;margin-top:5px}.auth-context{margin-top:14px;padding-top:12px;gap:12px;max-width:none}.auth-context strong{font-size:13px}.auth-context p{font-size:11px;margin-top:4px;line-height:1.7}.auth-context p br{display:none}.auth-context-symbol,.auth-context-symbol svg{width:35px}.auth-context-symbol{flex-basis:35px}.auth-premium .auth-story>footer{display:none}.auth-premium .auth-panel{padding:30px 22px 40px;min-height:0}.auth-premium .auth-form-wrap{max-width:440px;padding:26px 22px 22px}.auth-premium .auth-form-wrap>.theme-control,.auth-premium .auth-form-wrap>.theme-switcher{margin-bottom:18px}.auth-premium .auth-form-wrap h2{font-size:26px}.auth-premium .field input{font-size:16px}.auth-methods button{font-size:11px;min-height:44px}.auth-premium .auth-form-wrap>.muted{margin-bottom:23px}}
@media(max-width:360px){.auth-premium .auth-story{padding-inline:20px}.auth-premium .auth-copy h1{font-size:36px}.auth-premium .auth-panel{padding:24px 14px 32px}.auth-premium .auth-form-wrap{padding:23px 17px 20px}.auth-methods{gap:1px}.auth-methods button{padding-inline:2px}}
@media(max-width:600px){.auth-premium .auth-copy{padding-top:20px}.auth-premium .auth-copy h1 .auth-headline-launch{display:inline-block;font-size:.49em;margin:0 0 0 10px;vertical-align:baseline}.auth-premium .auth-copy .auth-promise{margin-top:12px}.auth-premium .auth-copy .auth-promise>span{font-size:17px}.auth-premium .auth-context{margin-top:12px;padding-top:11px}.auth-premium .auth-context p{max-width:30ch}}
@media(prefers-reduced-motion:reduce){.auth-premium .auth-copy{animation:none}.auth-premium *{scroll-behavior:auto}.auth-premium .auth-story:after{filter:none}}

/* Login skip target must not inherit workspace viewport height. */
.auth-premium #main.auth-panel{min-height:100svh}
@media(max-width:850px){.auth-premium #main.auth-panel{min-height:0}}

/* The showcase and the authentication form keep independent theme scopes. */
body.auth-landing-active{overflow:hidden;background:#0a0812}
.auth-landing-shell{position:fixed;inset:0;width:100%;height:100dvh;background:#0a0812}
.auth-landing-frame{display:block;width:100%;height:100%;border:0;background:#0a0812;color-scheme:dark}
.auth-entry-dialog{border:0;padding:0;width:min(460px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;border-radius:20px;overflow:auto;background:var(--paper);color:var(--ink)}
.auth-entry-dialog::backdrop{background:rgb(5 3 14 / .72);backdrop-filter:blur(12px)}
.auth-entry-close{position:absolute;top:16px;right:16px;z-index:5;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:rgb(127 127 127 / .12);color:var(--ink);font:28px/1 sans-serif;cursor:pointer}
.auth-entry-close:hover{background:rgb(127 127 127 / .22)}
.auth-entry-host .auth-story{display:none}
.auth-entry-host .auth-layout{display:block;min-height:0;background:transparent}
.auth-entry-host .auth-panel{min-height:0;padding:0;border-radius:20px}
.auth-entry-host .auth-form-wrap{max-width:none;padding:38px 32px 28px;border:0;border-radius:20px}
.auth-entry-host .auth-form-wrap>.theme-switcher{margin-right:34px;margin-bottom:24px}
.auth-entry-host .auth-form-wrap h2{font-size:30px}
.auth-entry-host .auth-panel:before{border-radius:inherit}
.auth-landing-fallback{display:grid;place-items:center}
@media(max-width:600px){.auth-entry-host .auth-form-wrap{padding:30px 23px 24px}.auth-entry-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}}

.auth-entry-dialog .auth-premium .auth-panel{--ink:#211b2b;--muted:#756b80;--line:#e8e2ee;--surface:#f4f0f8;--hover:#eee7f5;--accent:#79522d;background:#fcfaff}
.auth-entry-dialog .auth-premium .auth-panel:before{display:none}
.auth-entry-dialog .auth-premium .auth-form-wrap{background:transparent}
.auth-entry-dialog .auth-premium .auth-methods{background:#eee9f2}
.auth-entry-dialog .auth-premium .auth-methods button.active{background:#fff;color:#211b2b}
.auth-entry-dialog .auth-premium .field input{background:#f3eef8;border-color:transparent}
.auth-entry-dialog .auth-premium .primary{background:#231b30;color:#fff;box-shadow:none}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .auth-panel{--ink:#f3f0f7;--muted:#b6acbf;--line:#3b3249;--surface:#231c30;--hover:#2b2239;--accent:#f2c397;background:#15111d}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .auth-methods{background:#241d31}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .auth-methods button.active{background:#3a2f4b;color:#f3f0f7}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .field input{background:#231c30;border-color:transparent}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .primary{background:#f3f0f7;color:#15111d}

/* Keep the entry form inside the landing page's own palette. */
.auth-entry-dialog{--ink:#211b2b;--muted:#756b80;--line:#e8e2ee;--surface:#f4f0f8;--paper:#fcfaff;--hover:#eee7f5;--accent:#79522d;--line-strong:#b8a9c6;--danger:#ad284e;--ui-field:#f3eef8;--ui-field-hover:#eee7f5;background:var(--paper)}
html[data-theme="dark"] .auth-entry-dialog{--ink:#f3f0f7;--muted:#b6acbf;--line:#3b3249;--surface:#231c30;--paper:#15111d;--hover:#2b2239;--accent:#f2c397;--line-strong:#6b5a7c;--danger:#ffb2c3;--ui-field:#231c30;--ui-field-hover:#2b2239}
html[data-theme] .auth-entry-dialog .auth-premium .auth-form-wrap{background:transparent}
.auth-entry-close{color:var(--ink);padding:0}
.auth-entry-close:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.auth-landing-retry{padding:14px 24px;border:0;border-radius:999px;background:#f3f0f7;color:#15111d;font:600 16px/1.5 inherit;cursor:pointer}
@media(pointer:coarse){.auth-entry-close{width:44px;height:44px;top:12px;right:12px}}

.auth-entry-dialog .auth-premium .primary:hover:not(:disabled){background:#34283f}
html[data-theme="dark"] .auth-entry-dialog .auth-premium .primary:hover:not(:disabled){background:#ffffff}
.auth-entry-dialog .auth-premium ::selection{background:#79522d;color:#ffffff}
html[data-theme="dark"] .auth-entry-dialog .auth-premium ::selection{background:#f2c397;color:#15111d}
