body { min-height: 100vh; }

/* Layout */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.logo { margin-bottom: 3rem; }

/* Onboarding steps */
.step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.progress-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease;
}
.dot.active { background: var(--accent); }
.dot.done { background: var(--green); }

.step-headline {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Input */
.step-input {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.step-input:focus { border-color: var(--accent); }
.step-input::placeholder { color: var(--text-dim); }

/* Slide to continue */
.slider-wrap {
  width: 100%;
  max-width: 380px;
  margin-top: 1.25rem;
}
.slider-track {
  position: relative;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.slider-track.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 24px;
  pointer-events: none;
}
.slider-fill.snapping { transition: width 0.3s ease; }
.slider-handle {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: grab;
}
.slider-handle.snapping { transition: transform 0.3s ease; }
.slider-handle:active { cursor: grabbing; }
.slider-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.inline-error {
  margin-top: 1rem;
  color: var(--red);
  font-size: 0.85rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  max-width: 380px;
  text-align: center;
}

/* Green zone on slider */
.slider-green-zone {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  border-radius: 21px;
  background: rgba(74, 222, 128, 0.15);
  border: 2px solid rgba(74, 222, 128, 0.35);
  pointer-events: none;
}
.slider-handle.in-zone { background: var(--green); }

/* Email checking state */
.email-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Typing challenge */
.challenge-display {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.challenge-word { display: inline-block; white-space: nowrap; }
.char-correct { color: var(--green); }
.char-current { color: #60a5fa; }
.char-remaining { color: var(--text-dim); }
.challenge-input {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.2s ease;
}
.challenge-input:focus { border-color: var(--accent); }
.challenge-progress {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
.verified-msg {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* Light mode overrides for hardcoded rgba values */
[data-theme="light"] .slider-track {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .slider-fill { background: rgba(5, 150, 105, 0.15); }
[data-theme="light"] .slider-green-zone {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(22, 163, 74, 0.55);
}
[data-theme="light"] .dot:not(.active):not(.done) { background: #b0b5c3; }
[data-theme="light"] .inline-error {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.25);
}
[data-theme="light"] .challenge-display {
  background: var(--surface);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .challenge-input { background: var(--surface); }
