:root {
  --bg: #f5f7f4;
  --panel: #fff;
  --ink: #24312c;
  --muted: #718078;
  --line: #e7ece8;
  --accent: #587969;
  --accent-soft: #e8f0ec;
  --danger: #a55b5b;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 85% 10%, #edf2ee 0, transparent 35%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.shell { min-height: 100vh; }
.content { min-height: 100vh; }
.content-auth { padding: 24px; }
.auth-wrap { display: grid; min-height: calc(100vh - 48px); place-items: center; }
.auth-card {
  width: min(420px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 60px rgba(48, 70, 59, .1);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #6f9180, #4f7060);
  box-shadow: 0 8px 20px rgba(79, 112, 96, .18);
}
.auth-brand { margin-bottom: 32px; }
.auth-card h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.03em; }
.muted { margin: 0; color: var(--muted); }
.stack-form { display: grid; gap: 18px; margin-top: 25px; }
.stack-form label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 650; }
.stack-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dfe6e1;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcfb;
  outline: none;
}
.stack-form input:focus { border-color: #84a393; box-shadow: 0 0 0 4px #edf3ef; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.button.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.button.primary:hover { background: #4f6f60; }
.button:focus-visible { outline: 3px solid #dfece5; outline-offset: 2px; }
.button:disabled { opacity: .48; cursor: wait; }
.full { width: 100%; }
.notice { padding: 12px 15px; border-radius: 12px; font-size: 13px; }
.notice.error { color: #945454; border: 1px solid #f0dada; background: #fff6f6; }
.auth-footnote { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

@media (max-width: 520px) {
  .content-auth { padding: 14px; }
  .auth-wrap { min-height: calc(100vh - 28px); }
  .auth-card { padding: 28px 22px; }
}
