:root {
  --bg: #f4f1e9;
  --green: #2f5b4e;
  --green-deep: #203f36;
  --gold: #b58b45;
  --ink: #202925;
  --muted: #717d76;
  --line: #e6e1d4;
  --red: #b25542;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(181, 139, 69, .12), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(47, 91, 78, .10), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  right: -160px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(47, 91, 78, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(47, 91, 78, .025), 0 0 0 110px rgba(47, 91, 78, .018);
  pointer-events: none;
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #2f5b4e, #203f36);
  color: #d9bd86;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 12px 24px -16px rgba(32, 63, 54, .9);
}
.login-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: .08em;
  font-weight: 600;
}
.login-brand span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
}
.login-card {
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 60px -38px rgba(32, 41, 37, .55);
}
.eyebrow {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 600;
}
h1 {
  margin: 6px 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: .04em;
  font-weight: 600;
}
.intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}
label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}
input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder { color: #c2bbad; font-weight: 400; letter-spacing: .12em; }
input:focus { border-color: #47796a; box-shadow: 0 0 0 4px #e9f0ea; }
button {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .16s, transform .16s;
}
button:hover { background: var(--green-deep); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: wait; }
.login-error {
  min-height: 18px;
  margin-top: 9px;
  color: var(--red);
  font-size: 11px;
  text-align: center;
}
.note {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: #98a19b;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}
.foot {
  margin: 14px 0 0;
  color: #9aa39d;
  font-size: 9.5px;
  letter-spacing: .04em;
  text-align: center;
}
@media (max-width: 460px) {
  .login-card { padding: 22px 18px 18px; border-radius: 18px; }
  h1 { font-size: 22px; }
}
