:root {
  --bg: #fafaf7;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --accent: #2f5d50;
  --accent-fg: #ffffff;
  --error-bg: #fdecea;
  --error-fg: #8a1f15;
  --border: #d8d6d0;
  --radius: 10px;
  --max-width: 28rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1rem 0 0.375rem;
}

input[type='tel'],
input[type='text'],
input[type='number'] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg);
  font-family: inherit;
}

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

input.otp {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.5rem;
  padding: 0.875rem 0.5rem 0.875rem 1rem;
}

button {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  font-family: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.link {
  background: transparent;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  padding: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  width: auto;
}

.error {
  background: var(--error-bg);
  color: var(--error-fg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

.lang-switch {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.lang-switch button {
  width: auto;
  padding: 0.25rem 0.5rem;
  margin: 0 0.125rem;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}

.lang-switch button.active {
  color: var(--accent);
  border-color: var(--accent);
}

.phone-row {
  display: flex;
  gap: 0.5rem;
}

.phone-row select {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.phone-row input {
  flex: 1;
}
