:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d1c19;
  --muted: #6b6860;
  --border: #e4e1d8;
  --accent: #2f6f5e;
  --accent-text: #ffffff;
  --danger: #b4483b;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --surface: #1f1f1c;
    --text: #ecebe6;
    --muted: #a19e95;
    --border: #33322d;
    --accent: #6fbfa6;
    --accent-text: #10201b;
    --danger: #e0887c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.brand { font-weight: 700; color: var(--accent); margin-bottom: 20px; }
h1 { font-size: 24px; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }

input[type=tel], input[type=text] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.code { letter-spacing: 0.4em; text-align: center; font-size: 22px; }

.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.link { background: none; border: 0; color: var(--accent); width: auto; padding: 8px 0; margin: 8px auto 0; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.error, .field-error { color: var(--danger); font-size: 14px; margin-top: 8px; display: block; }
.notice { color: var(--accent); font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }

.btn-danger { background: var(--danger); border-color: var(--danger); margin-top: 12px; }
