:root {
  --paper: #f3f1ea;
  --surface: #fffdfa;
  --ink: #242823;
  --ink-soft: #444a43;
  --muted: #767b73;
  --line: #deddd4;
  --teal: #1b5a52;
  --teal-deep: #143f39;
  --teal-soft: #e7f0ec;
  --teal-line: #b9d2c9;
  --red: #9f4c40;
  --ochre: #98632d;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  background:
    radial-gradient(circle at 82% 8%, rgba(190, 173, 136, .13), transparent 30rem),
    linear-gradient(145deg, #f8f6f0 0%, var(--paper) 58%, #edebe2 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(35, 45, 38, .09);
  padding: 30px 30px 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
}

.auth-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal-line);
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 14px 5px 14px 5px;
  font: 24px/1 var(--serif);
}

.auth-brand h1 {
  margin: 0;
  font: 600 21px/1.35 var(--serif);
  letter-spacing: .02em;
}

.auth-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.auth-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf6;
  padding: 0 11px;
  outline: none;
  font-size: 14px;
}

.auth-field input:focus {
  border-color: var(--teal-line);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 90, 82, .07);
}

.auth-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.auth-button {
  width: 100%;
  height: 39px;
  margin-top: 20px;
  border: 0;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .16s ease;
}

.auth-button:hover { background: var(--teal-deep); }
.auth-button:disabled { opacity: .6; cursor: not-allowed; }

.auth-message {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--teal);
  font-size: 11px;
  line-height: 1.6;
}

.auth-message.is-error { color: var(--red); }

.auth-note {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
}

.auth-note strong {
  display: block;
  color: var(--ochre);
  font-size: 11px;
}

.auth-note p,
.auth-note code {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.75;
}

.auth-note code {
  background: #f2f1ea;
  border-radius: 4px;
  padding: 1px 4px;
}

@media (max-width: 520px) {
  .auth-card { padding: 25px 20px 20px; }
}
