/* ==========================================================================
   Server Console — 统一控制台样式
   设计语言:Apple 风 · 浅色为主 · 跟随系统深色模式
   ========================================================================== */

:root{
  --bg:#f5f5f7;--surface:#fff;--surface2:#f9f9fb;--ink:#1d1d1f;--ink2:#252529;--ink3:#37373b;
  --muted:#86868b;--muted2:#77777c;--muted3:#a0a0a5;--muted4:#96969c;
  --line:#e8e8ed;--line2:#e7e7ec;--line3:#ededf1;--line4:#e5e5eb;
  --blue:#007aff;--green:#34a853;--green2:#eaf7ef;--orange:#f28c28;--red:#e5484d;--red2:#fff0f0;
  --shadow:0 2px 8px #00000008,0 10px 30px #00000005;
  --hover:#f0f0f4;--active-bg:#e9f2ff;--active-fg:#006de5;
  --sym-bg:#edf5ff;--sym-fg:#0878ee;--sym2-bg:#edf8f0;--sym2-fg:#279554;
  --sym3-bg:#f2efff;--sym3-fg:#8167d6;--sym4-bg:#fff3e8;--sym4-fg:#c4752b;
  --chip-bg:#eaeaef;--chip-fg:#707077;--chip-on-bg:#fff;--chip-on-fg:#252529;
  --meter-bg:#f0f0f3;--meter1:#1684ff;--meter2:#8b76e8;--meter3:#35ac77;--meter4:#e8934a;
  --btn-bg:#fff;--btn-fg:#37373b;--btn-bd:#e4e4e9;--btn-hover:#f8f8fa;--btn-hover-bd:#d4d4da;
  --in-bg:#fafafc;--in-bd:#dedee4;--in-fg:#333;
  --err:#d34f54;
  --lat-ok:#338354;--lat-ok-dot:#36a665;--lat-slow:#b57727;--lat-slow-dot:#e49a36;
  --lat-down:#c74e52;--lat-down-dot:#e2555b;--lat-na:#82828a;--lat-na-dot:#bbbcc2;
  --chart-grid:#e6e6eb;--chart-text:#96969c;
  --c-blue:#1684ff;--c-green:#35ac77;--c-purple:#8b76e8;--c-orange:#e8934a;
  --c-cyan:#0f9fd4;--c-rose:#e0576f;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#000;--surface:#1c1c1e;--surface2:#2c2c2e;--ink:#f5f5f7;--ink2:#f2f2f7;--ink3:#e5e5ea;
    --muted:#98989d;--muted2:#8e8e93;--muted3:#636366;--muted4:#8e8e93;
    --line:#2c2c2e;--line2:#38383a;--line3:#2c2c2e;--line4:#38383a;
    --blue:#0a84ff;--green:#30d158;--green2:#0d2a17;--orange:#ff9f0a;--red:#ff453a;--red2:#2a1214;
    --shadow:0 2px 8px #00000059,0 10px 30px #00000038;
    --hover:#2a2a2c;--active-bg:#10243a;--active-fg:#64b5ff;
    --sym-bg:#10243a;--sym-fg:#5aa9ff;--sym2-bg:#0d2a17;--sym2-fg:#5ed39a;
    --sym3-bg:#241f3d;--sym3-fg:#b39cf5;--sym4-bg:#2e2114;--sym4-fg:#f0a55e;
    --chip-bg:#2c2c2e;--chip-fg:#a0a0a5;--chip-on-bg:#3a3a3c;--chip-on-fg:#f2f2f7;
    --meter-bg:#3a3a3c;--meter1:#0a84ff;--meter2:#a78bfa;--meter3:#30d158;--meter4:#ff9f0a;
    --btn-bg:#1c1c1e;--btn-fg:#e5e5ea;--btn-bd:#38383a;--btn-hover:#2c2c2e;--btn-hover-bd:#48484a;
    --in-bg:#1c1c1e;--in-bd:#38383a;--in-fg:#f2f2f7;
    --err:#ff6961;
    --lat-ok:#5ed39a;--lat-ok-dot:#30d158;--lat-slow:#f0a55e;--lat-slow-dot:#ff9f0a;
    --lat-down:#ff6961;--lat-down-dot:#ff453a;--lat-na:#98989d;--lat-na-dot:#636366;
    --chart-grid:#2c2c2e;--chart-text:#8e8e93;
    --c-blue:#0a84ff;--c-green:#30d158;--c-purple:#a78bfa;--c-orange:#ff9f0a;
    --c-cyan:#38bdf8;--c-rose:#fb7185;
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg);color:var(--ink);
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  display:flex;min-height:100vh;
}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

.brand-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--blue);color:#fff;flex:none}
.brand-mark svg{width:20px;height:20px}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-card {
  width: min(100%, 400px);
  padding: clamp(24px, 7vw, 38px);
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 15px;
}
.brand-mark svg { width: 27px; height: 27px; }
h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.04em; }
form { margin-top: 28px; display: grid; gap: 8px; }
label { color: var(--ink3); font-weight: 600; }
input:not([type=hidden]):not([type=checkbox]) {
  width: 100%;
  height: 46px;
  margin-bottom: 9px;
  border: 1px solid var(--in-bd);
  border-radius: 10px;
  background: var(--in-bg);
  color: var(--in-fg);
  padding: 0 12px;
  font-size: 16px;
}
button {
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #006edb;
  font-weight: 650;
}
button:hover { background: #0562c0; }
.login-error {
  color: var(--err);
  background: var(--red2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 7px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  width: fit-content;
  font-weight: 500;
  cursor: pointer;
}
.remember input { width: 16px; height: 16px; accent-color: var(--blue); }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-actions button { margin-top: 2px; }
button[value=temporary] {
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
}
button[value=temporary]:hover { background: var(--btn-hover); border-color: var(--btn-hover-bd); }
button:disabled { opacity: .55; cursor: default; }
.login-hints { margin-top: 4px; color: var(--muted2); font-size: 12px; }
.login-hints p + p { margin-top: 2px; }

.login-password-fields { display: grid; gap: 8px; border: 0; min-inline-size: 0; }
.login-password-fields[hidden] { display: none; }
.login-passkey-toggle { color: var(--active-fg); background: var(--sym-bg); border: 1px solid var(--line2); min-height: 36px; margin: 0 0 5px; }
.login-passkey-toggle:hover { color: var(--ink); background: var(--hover); }
.login-passkey-note { color: var(--muted2); font-size: 13px; margin-bottom: 6px; }
