:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #2a2622;
  --ink-2: #5b524a;
  --muted: #8c8378;
  --line: #e9e1d2;
  --sage: #5a6f5c;
  --accent: #b3845b;
  --error: #b14a3a;
  --shadow: 0 24px 60px rgba(45, 38, 30, 0.1), 0 6px 18px rgba(45, 38, 30, 0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at -10% -20%, rgba(216,225,212,0.5), transparent 60%),
    radial-gradient(700px 400px at 110% 0%, rgba(241,227,209,0.55), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 18px;
}
.login__card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--sage);
}
.login__mark svg { width: 30px; height: 30px; }
.login__card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.login__lede {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 14px;
}
form { display: flex; flex-direction: column; gap: 10px; }
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
  letter-spacing: 0.05em;
}
input[type="password"]::placeholder {
  color: var(--muted);
  letter-spacing: 0;
}
input[type="password"]:focus {
  border-color: var(--sage);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(90,111,92,0.1);
}
button[type="submit"] {
  position: relative;
  border: none;
  background: var(--ink);
  color: #fbf7f0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
button[type="submit"]:hover { background: #1f1c19; }
button[type="submit"]:active { transform: scale(0.99); }
button[type="submit"]:disabled { opacity: 0.7; cursor: progress; }
button .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(251,247,240,0.35);
  border-top-color: #fbf7f0;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}
button.loading .label { opacity: 0.7; }
button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.login__error {
  color: var(--error);
  font-size: 13px;
  margin: 4px 0 0;
}
.login__footer {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
