/* Login branding only. Keep the authenticated workbench's existing theme. */
#login-shell {
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  overflow-y:auto; padding:32px 20px;
  font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  color:#f2f6fa;
  background:radial-gradient(ellipse at 17% 13%,#2a475e 0%,#182d3e 32%,#0f1e29 62%,#09131b 100%);
}
#login-shell[hidden] { display:none !important; }
#login-shell .login-card {
  flex-shrink:0; width:min(464px,100%); margin:auto; padding:40px 38px 36px;
  border:1px solid #3b5263; border-radius:20px; color:#f2f6fa;
  background:linear-gradient(150deg,rgba(18,35,48,.98),rgba(13,26,36,.99));
  box-shadow:0 26px 85px #0005;
}
#login-shell .login-identity { display:flex; align-items:center; justify-content:center; gap:22px; }
#login-shell .login-logo { display:block; flex:0 0 78px; width:78px; height:82px; object-fit:contain; }
#login-shell .login-logo svg { display:block; width:100%; height:100%; overflow:visible; }
#login-shell #login-title {
  margin:0; color:#fbfcfe; font-size:40px; font-weight:750; letter-spacing:3px;
  line-height:1.35; white-space:nowrap;
}
#login-shell .login-system-name {
  margin:4px 0 0; color:#dce7ef; font-size:24px; font-weight:550;
  line-height:1.5; letter-spacing:1px; white-space:nowrap;
}
#login-shell .login-station {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px;
  margin:23px 0 30px; color:#9cb0c0; font-size:12px; line-height:1.7;
}
#login-shell .login-station-name { color:#bdcbd5; font-weight:500; overflow-wrap:anywhere; }
#login-shell .login-station-dot { flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:#ffb928; margin-right:1px; }
#login-shell .login-station-code { font-variant-numeric:tabular-nums; letter-spacing:.15px; overflow-wrap:anywhere; }
#login-shell .login-divider { height:1px; background:linear-gradient(90deg,#3b526300,#3b5263b3 20%,#3b5263b3 80%,#3b526300); margin-bottom:29px; }
#login-shell .login-form { display:grid; gap:23px; }
#login-shell .login-form .field { display:block; margin:0; }
#login-shell .login-form label { display:block; margin:0 0 9px; color:#bdcbd6; font-size:13px; letter-spacing:.5px; }
#login-shell .login-input-wrap { position:relative; }
#login-shell .login-form .input {
  display:block; width:100%; height:46px; padding:0 14px; border:1px solid #3c5365;
  border-radius:7px; background:#0b1924; color:#f2f6fa;
  font:14px "Microsoft YaHei",sans-serif; outline:none;
  transition:border-color .15s,box-shadow .15s;
}
#login-shell .login-form .input::placeholder { color:#748a9c; }
#login-shell .login-form .input:focus { border-color:#4c9bd0; box-shadow:0 0 0 3px #3286bf1c; }
#login-shell #login-password { padding-right:48px; }
#login-shell .login-password-toggle {
  position:absolute; right:4px; top:3px; display:grid; place-items:center;
  width:40px; height:40px; padding:0; border:0; border-radius:6px;
  background:none; color:#8298aa; cursor:pointer;
}
#login-shell .login-password-toggle:hover { color:#c7d9e7; background:#ffffff05; }
#login-shell .login-password-toggle:focus-visible { outline:2px solid #5baee4; }
#login-shell .login-error:empty { display:none; }
#login-shell .login-error { min-height:0; margin:0; font-size:12px; color:#ff8b88; overflow-wrap:anywhere; }
#login-shell #login-submit {
  height:46px; width:100%; margin-top:10px; padding:0 0 0 5px;
  border:1px solid #428fc6; border-radius:7px; background:#2d83be; color:#fff;
  font:600 15px "Microsoft YaHei",sans-serif; letter-spacing:5px; cursor:pointer;
  box-shadow:0 5px 17px #0002;
}
#login-shell #login-submit:hover:not(:disabled) { background:#3692cf; }
#login-shell #login-submit:focus-visible { outline:3px solid #85c8f1; outline-offset:3px; }
#login-shell #login-submit:disabled { opacity:.65; cursor:wait; }
@media(max-width:480px) {
  #login-shell { padding:24px 18px; }
  #login-shell .login-card { padding:32px 25px 30px; border-radius:17px; }
  #login-shell .login-identity { gap:17px; }
  #login-shell .login-logo { flex-basis:65px; width:65px; height:72px; }
  #login-shell #login-title { font-size:33px; letter-spacing:2px; }
  #login-shell .login-system-name { font-size:20px; letter-spacing:.5px; }
  #login-shell .login-station { font-size:11px; gap:6px; margin:21px 0 25px; }
  #login-shell .login-divider { margin-bottom:25px; }
}
@media(max-width:360px) {
  #login-shell .login-card { padding-inline:20px; }
  #login-shell .login-identity { gap:14px; }
  #login-shell .login-logo { flex-basis:58px; width:58px; height:64px; }
  #login-shell #login-title { font-size:30px; }
  #login-shell .login-system-name { font-size:18px; }
}
