:root {
  --paper: #f6f4ef;
  --surface: #fffefb;
  --ink: #2c2b26;
  --muted: #76736a;
  --faint: #a29e94;
  --line: #e8e5dc;
  --accent: #3a5b73;
  --danger: #a8423a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --shadow-modal: 0 24px 70px rgb(45 40 30 / 18%), 0 4px 14px rgb(45 40 30 / 8%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #fdfcf8 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

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

.login-card {
  width: min(380px, 100%);
  padding: 36px 34px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
}

.login-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
}

.login-title {
  margin: 16px 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.login-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.login-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(58 91 115 / 14%);
}

.login-error {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.login-button {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border: 1px solid #2f3f4c;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-button:hover { background: #31506a; }
.login-button:active { background: #2a455b; }
.login-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.login-foot {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
}
