:root{color-scheme:dark;--bg:#101110;--panel:#141614;--text:#eeefea;--muted:#8b918b;--line:#2a2e29;--accent:#96b29d}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.login-layout{min-height:100svh;display:grid;grid-template-columns:minmax(380px,36%) 1fr}.brand-panel{background:var(--panel);border-right:1px solid var(--line);padding:42px 48px 32px;display:flex;flex-direction:column;justify-content:space-between;gap:60px;min-height:100svh}.brand{display:inline-flex;align-items:center;gap:13px;align-self:flex-start}.brand img{border-radius:13px}.brand>span{font-size:18px;font-weight:650;letter-spacing:-.4px;line-height:1.2}.brand b{font-weight:550;color:#b9c4b9}.brand small{display:block;color:#767f75;font-size:9px;letter-spacing:2.4px;font-weight:500;margin-top:7px}.brand-story{margin:0 auto;max-width:420px;width:100%;padding:15px 0 28px}.section-label{display:flex;align-items:center;gap:8px;color:#a2b29f;font-size:11px;font-weight:550;letter-spacing:1.6px}.section-label>span{height:5px;width:5px;border-radius:50%;background:#93b69b}.brand-story h1{font-size:clamp(34px,3vw,48px);font-weight:600;letter-spacing:-1.5px;line-height:1.34;margin:26px 0 21px}.brand-description{font-size:15px;line-height:1.85;color:var(--muted);margin:0}.features{list-style:none;padding:0;margin:45px 0 0;display:grid;gap:25px}.features li{display:flex;align-items:center;gap:16px}.feature-icon{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border:1px solid #323930;background:#1c211b;border-radius:11px;color:#a4b59f;flex-shrink:0}.feature-icon svg{width:19px;height:19px}.features h2{font-size:14px;line-height:1.5;margin:0 0 4px;font-weight:550}.features p{font-size:12px;color:#828b81;line-height:1.6;margin:0}.brand-footer{display:flex;justify-content:space-between;gap:20px;color:#687067;font-size:10px;letter-spacing:.5px}.brand-footer>span:first-child{font-size:9px;letter-spacing:1.6px}
.login-panel{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;padding:110px 48px 100px;min-height:100svh}.panel-top{position:absolute;right:42px;top:42px}.access-label{display:flex;align-items:center;gap:7px;color:#878e86;font-size:12px}.access-label svg{width:15px;height:15px}.login-content{width:100%;max-width:400px;margin-top:-2px}.login-heading .section-label{font-size:10px;color:#7e8d7d;letter-spacing:2px}.login-heading h2{font-size:31px;line-height:1.4;letter-spacing:-1px;font-weight:600;margin:13px 0 9px}.login-heading p{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 39px}.field+.field{margin-top:23px}.field label{display:block;font-size:12px;color:#b4bbb1;margin-bottom:10px;font-weight:500}.field input{background:#1b1e1a;border:1px solid #383e35;border-radius:11px;color:var(--text);width:100%;height:53px;padding:0 16px;outline:none;font-size:14px;transition:border-color .15s,box-shadow .15s}.field input::placeholder{color:#626a5f}.field input:focus{border-color:#93aa8b;box-shadow:0 0 0 3px #8eaa8612}.field input[aria-invalid=true]{border-color:#aa6359}.field input:-webkit-autofill{-webkit-box-shadow:0 0 0 100px #1b1e1a inset;-webkit-text-fill-color:var(--text);caret-color:var(--text)}.password-field{position:relative}.password-field input{padding-right:51px}.password-field button{position:absolute;right:7px;top:7px;width:39px;height:39px;border:0;border-radius:8px;background:transparent;color:#87907f;display:grid;place-items:center}.password-field button:hover{background:#293026;color:#d4ded0}.password-field svg{width:19px;height:19px}.login-message{min-height:21px;margin:13px 0 16px;font-size:12px;color:#99b79c;line-height:1.7;overflow-wrap:anywhere}.login-message.error{color:#e9a195}.submit-button{display:flex;align-items:center;justify-content:center;gap:12px;height:53px;width:100%;background:#e4e9dd;border:1px solid #e4e9dd;border-radius:11px;color:#1c251a;font-size:14px;font-weight:650;transition:background .15s,transform .15s}.submit-button:hover{background:#f1f4ec}.submit-button:active{transform:translateY(1px)}.submit-button svg{width:17px;height:17px}.submit-button:disabled{cursor:wait;opacity:.6}.submit-button[aria-busy=true] svg{display:none}.submit-button[aria-busy=true]:after{content:"";width:14px;height:14px;border:2px solid #53664a40;border-top-color:#33472a;border-radius:50%;animation:spin .8s linear infinite}.login-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#717a6c;font-size:11px;margin-top:25px}.login-note>span{width:4px;height:4px;background:#7e9773;border-radius:50%}.panel-footer{position:absolute;bottom:32px;left:24px;right:24px;color:#626a5d;font-size:11px;text-align:center;letter-spacing:.5px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1700px){.brand-panel{padding:48px 60px 36px}.brand-story{max-width:440px}.login-content{max-width:430px}.brand-story h1{font-size:49px}.login-heading h2{font-size:34px}.field input,.submit-button{height:56px}.password-field button{top:8px}}
@media(max-width:1100px){.login-layout{grid-template-columns:minmax(330px,39%) 1fr}.brand-panel{padding:32px}.brand-story h1{font-size:36px}.brand-footer{flex-direction:column;gap:7px}.login-panel{padding-left:38px;padding-right:38px}.features p{font-size:11px}}
@media(max-width:760px){.login-layout{display:block}.brand-panel{min-height:0;padding:27px 25px;border-right:0;background:var(--bg);gap:0}.brand img{width:39px;height:39px}.brand>span{font-size:16px}.brand-story,.brand-footer{display:none}.login-panel{min-height:calc(100svh - 96px);padding:42px 25px 105px;align-items:center}.panel-top{display:none}.login-content{margin-top:-30px;max-width:420px}.login-heading h2{font-size:30px}.login-heading p{font-size:13px;margin-bottom:32px}.field input{font-size:16px;height:54px}.panel-footer{bottom:28px}.login-note{margin-top:24px}}
@media(max-height:650px) and (min-width:761px){.brand-panel{gap:32px;padding-top:28px;padding-bottom:22px}.brand-story{padding:0}.brand-story h1{font-size:32px;margin:17px 0}.features{margin-top:25px;gap:18px}.login-panel{padding-top:80px;padding-bottom:75px}.panel-top{top:27px}.login-heading p{margin-bottom:25px}.panel-footer{bottom:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Shared appearance controls and the existing single login form. */
:root { --surface:var(--bg); --border:var(--line); --focus:var(--accent); }
body { min-height:100svh; }
.topbar { position:absolute; top:24px; right:30px; z-index:2; }
.topbar>.workspace-brand { display:none; }
.topbar-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:12px; }
.theme-button { font:12px/1.5 system-ui,sans-serif; border:1px solid var(--line); border-radius:8px; padding:6px 10px; color:var(--muted); background:var(--bg); }
.theme-button:hover { color:var(--text); }
.login-icon,.page-footer { display:none; }
.login-heading h1 { font-size:31px; line-height:1.4; letter-spacing:-1px; font-weight:600; margin:13px 0 28px; }
.login-note svg { width:13px; height:13px; }
:root[data-theme=light] { color-scheme:light; --bg:#fff; --panel:#f6f8f5; --text:#17211b; --muted:#717b71; --line:#dfe5dd; --accent:#37765f; }
:root[data-theme=light] .brand b { color:#49614d; }
:root[data-theme=light] .feature-icon { border-color:#dbe4d8; background:#eaf0e7; color:#557d58; }
:root[data-theme=light] .features p,:root[data-theme=light] .brand small,:root[data-theme=light] .section-label,:root[data-theme=light] .login-heading .section-label { color:#687f64; }
:root[data-theme=light] .field label { color:#53624f; }
:root[data-theme=light] .field input { color:var(--text); background:#fff; border-color:#cbd5c6; }
:root[data-theme=light] .field input:-webkit-autofill { -webkit-box-shadow:0 0 0 100px #fff inset; }
:root[data-theme=light] .submit-button { color:white; background:#37765f; border-color:#37765f; }
:root[data-theme=light] .submit-button:hover { background:#2c644f; }
:root[data-theme=light] .login-message { color:#37765f; }
:root[data-theme=light] .login-message.error { color:#a73136; }
@media(max-width:760px) {
  .topbar { position:static; padding:14px 20px 0; }
  .topbar .access-label { display:none; }
  .brand-panel { min-height:0; }
}
@media(max-width:360px) { .topbar { padding:12px 16px 0; } .topbar-actions { gap:8px; } }
