:root {
  --ink: #0e0e0d;
  --ink-muted: #6b6b67;
  --paper: #faf9f7;
  --surface: #ffffff;
  --surface-soft: #f3f2ef;
  --accent: #1a6b4a;
  --accent-light: #e8f3ed;
  --border: rgba(14, 14, 13, 0.1);
  --border-strong: rgba(14, 14, 13, 0.18);
  --ok: #0f7a4f;
  --error: #b91c1c;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.auth-card {
  width: min(650px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

h1 {
  margin: 12px 0 10px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.subtext {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.auth-form { display: grid; gap: 12px; }
.alt-form { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.auth-divider {
  margin: 16px 0 2px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.alt-actions { margin-top: 8px; }
.alt-options { margin-top: 8px; display: grid; gap: 4px; }
.hidden-block { display: none !important; }

label {
  display: grid;
  gap: 7px;
  color: #2b2b28;
  font-size: 0.9rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.14);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover { transform: translateY(-1px); background: #155c3e; }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.72; cursor: not-allowed; }

.text-link-btn {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 500;
  text-align: left;
  box-shadow: none;
}

.text-link-btn:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink);
  text-decoration: underline;
}

.auth-message { min-height: 24px; margin: 14px 0 4px; font-size: 0.92rem; }
.auth-message.success { color: var(--ok); }
.auth-message.error { color: var(--error); }

.footnote { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.footnote a,
.hidden-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.footnote a:hover,
.hidden-link:hover { text-decoration: underline; }

.verify-actions { display: grid; gap: 8px; }
.hidden-link { display: none; }
.hidden-link.visible { display: inline; }
