:root{
  --font:"Source Han Sans SC","Microsoft YaHei UI","PingFang SC",sans-serif;
  --font-mono:"Cascadia Code","SFMono-Regular",Consolas,monospace;
  --login-blue:#1559c7;
  --login-ink:#123251;
  --login-muted:#688198;
  --login-line:#d8e4ef;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--font);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
[hidden]{display:none!important}
body.pharmacy-mode{min-height:100vh;color:var(--login-ink);overflow-x:hidden}
body.auth-locked{overflow:hidden}

.login-view{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;min-height:100vh;overflow:auto;background:#f4f8fc;color:var(--login-ink)}
.login-grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(46,91,135,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(46,91,135,.045) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to right,#000 0,rgba(0,0,0,.25) 58%,transparent 88%)}
.login-view::before{content:"";position:absolute;width:760px;height:760px;left:-270px;bottom:-420px;border:1px solid rgba(37,99,235,.13);border-radius:50%;box-shadow:0 0 0 78px rgba(37,99,235,.025),0 0 0 156px rgba(37,99,235,.018);pointer-events:none}
.login-view::after{content:"";position:absolute;width:48vw;height:100%;right:0;top:0;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(235,244,252,.76));clip-path:polygon(17% 0,100% 0,100% 100%,0 100%);pointer-events:none}

.login-brandbar{height:82px;display:flex;align-items:center;gap:14px;padding:0 clamp(24px,4vw,72px);border-bottom:1px solid rgba(189,207,223,.72);position:relative;z-index:2}
.brand-mark{width:42px;height:42px;position:relative;border-radius:13px;background:linear-gradient(145deg,#1f6ee7,#124aa9);box-shadow:0 9px 24px rgba(21,89,199,.22);overflow:hidden;flex:none}
.brand-mark span{position:absolute;width:24px;height:8px;left:9px;top:11px;border-radius:8px 8px 2px 2px;background:#fff;transform:rotate(-34deg);transform-origin:center}
.brand-mark i{position:absolute;width:24px;height:8px;left:9px;bottom:11px;border-radius:2px 2px 8px 8px;background:#7dd9ed;transform:rotate(-34deg);transform-origin:center}
.brand-mark.small{width:36px;height:36px;border-radius:10px}.brand-mark.small span,.brand-mark.small i{width:20px;left:8px}.brand-mark.small span{top:10px}.brand-mark.small i{bottom:10px}
.brand-name{display:flex;flex-direction:column}.brand-name strong{font-size:18px;letter-spacing:.04em}.brand-name small{font-size:11px;color:#7890a6;margin-top:2px}
.environment-badge{margin-left:auto;display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #c8e8df;border-radius:20px;background:rgba(240,252,248,.82);color:#27806c;font-size:11px}.environment-badge i,.system-state i{width:6px;height:6px;border-radius:50%;background:#20aa85;box-shadow:0 0 0 4px rgba(32,170,133,.09)}

.login-stage{position:relative;z-index:2;flex:1;width:min(1380px,100%);margin:0 auto;padding:clamp(42px,7vh,88px) clamp(26px,6vw,92px);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.62fr);align-items:center;gap:clamp(60px,9vw,150px)}
.login-story{max-width:720px;animation:story-enter .7s cubic-bezier(.2,.78,.2,1) both}
.story-index{display:inline-flex;align-items:center;gap:12px;color:#2a68c5;font:600 11px var(--font-mono);letter-spacing:.16em}.story-index::before{content:"";width:36px;height:2px;background:#2f71d5}
.login-story h1{font-size:clamp(42px,5vw,72px);line-height:1.15;letter-spacing:-.045em;margin:24px 0 22px;font-weight:700;color:#143654}.login-story h1 em{font-style:normal;color:#1d64d2;position:relative}.login-story h1 em::after{content:"";position:absolute;left:2px;right:-5px;bottom:-8px;height:9px;background:linear-gradient(90deg,rgba(52,126,225,.22),rgba(69,184,218,.04));transform:skewX(-18deg)}
.login-story>p{max-width:620px;font-size:16px;line-height:1.9;color:#667f96;letter-spacing:.015em}
.story-metrics{display:flex;gap:0;margin-top:44px;border-top:1px solid #d2e0ec;border-bottom:1px solid #d2e0ec;max-width:620px}.story-metrics div{min-width:150px;padding:20px 28px 20px 0;margin-right:28px;border-right:1px solid #d2e0ec;display:flex;flex-direction:column}.story-metrics div:last-child{border-right:0}.story-metrics strong{font:700 30px/1 var(--font-mono);color:#174775}.story-metrics span{font-size:11px;color:#7890a5;margin-top:9px}
.story-rule{display:flex;align-items:center;gap:10px;margin-top:18px;color:#7c92a5}.story-rule span{width:7px;height:7px;border:2px solid #36a4bc;border-radius:50%}.story-rule small{font-size:11px}

.login-card{position:relative;max-width:470px;width:100%;justify-self:end;padding:42px 42px 34px;border:1px solid rgba(194,212,228,.92);border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 28px 70px rgba(31,70,108,.14);backdrop-filter:blur(16px);animation:card-enter .72s .1s cubic-bezier(.2,.78,.2,1) both}
.login-card::before{content:"";position:absolute;left:-1px;top:44px;width:4px;height:58px;border-radius:0 4px 4px 0;background:linear-gradient(#2563eb,#43aec6)}
.card-seal{position:absolute;right:34px;top:34px;width:48px;height:48px;display:grid;place-items:center;border:1px solid #d7e4ef;border-radius:15px;background:#f5f9fd;color:#2c6bd0;font-size:20px;font-weight:700}
.login-card-head>span{font:600 10px var(--font-mono);letter-spacing:.16em;color:#3f78c8}.login-card-head h2{font-size:27px;margin:12px 0 7px;color:#153957;letter-spacing:-.02em}.login-card-head p{margin:0 0 30px;color:#7a90a4;font-size:13px}
.auth-field{display:block;margin-top:19px}.auth-field>span{display:block;margin-bottom:8px;font-size:12px;font-weight:650;color:#44617b}.auth-control{height:52px;display:flex;align-items:center;border:1px solid #cfdeea;border-radius:10px;background:#f9fbfd;transition:.18s ease}.auth-control:focus-within{border-color:#4e84dd;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.auth-control>i{width:46px;text-align:center;color:#9aafc1;font:600 10px var(--font-mono);font-style:normal;border-right:1px solid #dce7f0}.auth-control input{min-width:0;flex:1;height:100%;padding:0 14px;border:0;outline:0;background:transparent;color:#183c5c;font-size:14px}.auth-control input::placeholder{color:#a0b1c0}.password-toggle{height:32px;margin-right:8px;padding:0 8px;border:0;background:transparent;color:#4775b9;font-size:11px;cursor:pointer;border-radius:6px}.password-toggle:hover{background:#eaf2ff}
.login-meta{min-height:22px;margin-top:10px;display:flex;justify-content:space-between;gap:10px;color:#879aaa;font-size:10px}.login-meta #capsHint{color:#bf7a29}.login-error{min-height:22px;margin:3px 0 7px;color:#ce4d5d;font-size:12px}.login-submit{width:100%;height:52px;border:0;border-radius:10px;background:linear-gradient(120deg,#1d62d2,#1452ba);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;cursor:pointer;font-weight:650;box-shadow:0 12px 26px rgba(31,96,203,.25);transition:.18s ease}.login-submit:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(31,96,203,.3)}.login-submit:active{transform:none}.login-submit:disabled{opacity:.72;cursor:wait;transform:none}.login-submit i{font-style:normal;font-size:20px}.login-card footer{display:flex;align-items:flex-start;gap:8px;margin-top:24px;padding-top:19px;border-top:1px solid #e1e9f0;color:#8b9dac;font-size:10px;line-height:1.6}.login-card footer i{width:5px;height:5px;margin-top:5px;border-radius:50%;background:#59a7ba;flex:none}
.login-card.shake{animation:login-shake .34s ease}
.login-footer{position:relative;z-index:2;display:flex;justify-content:space-between;padding:0 clamp(24px,4vw,72px) 24px;color:#8ca0b1;font:500 9px var(--font-mono);letter-spacing:.12em}

.workspace-bar{height:64px;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #d7e3ed;background:rgba(255,255,255,.94);box-shadow:0 3px 16px rgba(39,73,107,.06);backdrop-filter:blur(14px)}
.workspace-brand,.workspace-user{display:flex;align-items:center}.workspace-brand{gap:11px}.workspace-brand>div:last-child{display:flex;flex-direction:column}.workspace-brand strong{font-size:16px;color:#173957}.workspace-brand small{font:600 8px var(--font-mono);letter-spacing:.13em;color:#8195a8;margin-top:2px}
.workspace-user{gap:10px}.system-state{display:flex;align-items:center;gap:8px;margin-right:14px;padding-right:20px;border-right:1px solid #dce6ef;color:#5d768c;font-size:11px}.user-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e9f1ff;color:#245fc5;font-weight:700}.user-copy{display:flex;flex-direction:column;min-width:75px}.user-copy strong{font-size:11px}.user-copy small{font-size:9px;color:#8194a5;margin-top:1px}.workspace-user button{border:1px solid #d5e1eb;border-radius:8px;background:#fff;color:#647d93;padding:7px 10px;font-size:11px;cursor:pointer}.workspace-user button:hover{border-color:#9eb9d3;color:#245fc5;background:#f4f8fd}
.app-root .ops-page{min-height:calc(100vh - 64px)}

@keyframes story-enter{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@keyframes card-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes login-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}

@media(max-width:900px){
  body.auth-locked{overflow:auto}.login-view{position:absolute}
  .login-stage{grid-template-columns:1fr;gap:38px;padding-top:38px}.login-story{max-width:620px}.login-story h1{font-size:42px}.login-card{justify-self:start;max-width:560px}.login-view::after{display:none}
  .workspace-user .system-state,.user-copy{display:none}.workspace-bar{padding:0 14px}
}
@media(max-width:560px){
  .login-brandbar{height:70px;padding:0 18px}.brand-name strong{font-size:15px}.brand-name small,.environment-badge{display:none}.login-stage{padding:30px 18px 42px}.story-index{font-size:9px}.login-story h1{font-size:35px;margin-top:18px}.login-story>p{font-size:13px}.story-metrics{margin-top:28px}.story-metrics div{min-width:0;flex:1;margin-right:12px;padding:16px 12px 16px 0}.story-metrics strong{font-size:24px}.story-metrics span{font-size:9px}.login-card{padding:32px 24px 27px}.card-seal{right:22px;top:25px;width:42px;height:42px}.login-card-head h2{font-size:23px}.login-footer{padding:0 18px 18px}.login-footer span:first-child{display:none}.workspace-brand small{display:none}.workspace-user{gap:7px}.workspace-user button{padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){.login-story,.login-card,.login-submit{animation:none!important;transition:none!important}}
