/* 独立登录页；登录后进入 function-shell。 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5a6578;
  --line: #d8dee8;
  --skin-btn: #374151;
  --skin-btn-hover: #1f2937;
  --status-alert: #dc2626;
  --status-alert-soft: #fee2e2;
  --status-alert-ink: #991b1b;
  --status-ok: #059669;
  --status-ok-soft: #d1fae5;
  --status-ok-ink: #065f46;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 24px;
  box-shadow: 0 1px 2px rgba(26, 35, 50, 0.04);
}

.brand {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
}

.tip {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.tip-error { background: var(--status-alert-soft); color: var(--status-alert-ink); }
.tip-ok { background: var(--status-ok-soft); color: var(--status-ok-ink); }

.field { display: block; margin: 0 0 14px; }
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.08);
}
.field input:disabled { background: #f3f4f6; color: var(--muted); }

.btn {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: var(--skin-btn);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--skin-btn-hover); }
.btn:focus-visible { outline: 3px solid rgba(55, 65, 81, 0.32); outline-offset: 2px; }
.btn:disabled { opacity: 0.7; cursor: default; }
/* Desktop login follows the shared neutral design; mobile layout is unchanged. */
@media screen and (min-width:768px) {
 body { background:#f7f7f5; color:#242424; }
 .page .card { width:400px; max-width:calc(100vw - 48px); padding:32px; border:1px solid #e7e7e3; border-radius:12px; box-shadow:none; background:#fff; }
 .page .brand { font-size:24px; line-height:1.4; font-weight:600; margin-bottom:28px; }
 .page input { min-height:44px; border:1px solid #d5d5d0; border-radius:8px; color:#242424; font-size:16px; }
 .page .btn { min-height:44px; border-radius:8px; background:#262626; color:#fff; font-size:16px; }
 .page .btn:hover:not(:disabled) { background:#404040; }
 .page .btn:disabled { opacity:.48; cursor:not-allowed; }
 .page :is(input,button):focus-visible { outline:2px solid #356da8; outline-offset:3px; }
 .page .tip { border-radius:8px; }
}
