:root {
  --bg:           oklch(1.000 0.000   0);
  --surface:      oklch(0.975 0.006 210);
  --border:       oklch(0.900 0.010 210);
  --ink:          oklch(0.13  0.015 210);
  --muted:        oklch(0.50  0.010 210);
  --subtle:       oklch(0.70  0.008 210);
  --primary:      oklch(0.42  0.110 210);
  --primary-dark: oklch(0.32  0.110 210);
  --primary-light:oklch(0.94  0.028 210);
  --primary-ring: oklch(0.42  0.110 210 / 0.20);
  --ok:           oklch(0.48  0.130 155);
  --ok-light:     oklch(0.96  0.050 155);
  --warn:         oklch(0.55  0.130  78);
  --font: 'Inter', system-ui, sans-serif;
  --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font); background: var(--surface); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem 1.25rem;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: 420px; animation: fadeUp .4s ease-out both; }

.brand { text-align: center; margin-bottom: 1.75rem; }
.brand img { height: 52px; margin: 0 auto .875rem; }
.brand h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .25rem; }
.brand p { font-size: .8125rem; color: var(--muted); }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 1.875rem 1.75rem;
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.07), 0 1px 3px oklch(0 0 0 / 0.04);
}

.step-indicator { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.step-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border);
  transition: background .25s, transform .25s;
}
.step-dot.active { background: var(--primary); transform: scale(1.35); }
.step-dot.done   { background: var(--ok); }

.step { display: none; }
.step.active { display: block; }
.step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.015em; }
.step-sub { font-size: .8125rem; color: var(--muted); margin-bottom: 1.375rem; line-height: 1.55; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: .375rem; color: var(--ink); }
.form-group input {
  width: 100%; padding: .65rem .875rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s; outline: none; appearance: none;
}
.form-group input::placeholder { color: var(--subtle); }
.form-group input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
}
#otp-input { font-size: 2rem; font-weight: 700; letter-spacing: .6rem; text-align: center; padding: .75rem; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; padding: .75rem; font-family: var(--font);
  font-size: .9375rem; font-weight: 600; border: none;
  border-radius: var(--r-md); cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px oklch(0.42 0.11 210 / 0.30);
}
.btn-primary:not(:disabled):hover {
  background: var(--primary-dark); box-shadow: 0 4px 14px oklch(0.42 0.11 210 / 0.36);
}
.btn-ghost {
  background: transparent; color: var(--muted); font-size: .8125rem;
  font-weight: 500; padding: .5rem; margin-top: .5rem; box-shadow: none;
}
.btn-ghost:not(:disabled):hover { color: var(--ink); background: var(--surface); transform: none; }

.tel-hint { text-align: center; font-size: .8125rem; font-weight: 600; color: var(--ok); margin-bottom: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.125rem 0; }
#timer { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .625rem; }
#timer span { color: var(--warn); font-weight: 600; }

.back-link {
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 13px; height: 13px; }
