:root {
  --bg: #f5f5f5;
  --text: #1a1a1a;
  --text-light: #65676b;
  --accent: #12d173;
  --accent-hover: #0fb366;
  --danger: #e74c3c;
  --success: #27ae60;
  --border: #e4e6ea;
  --card-bg: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-logo {
  display: block;
  margin: 0 auto 24px;
  height: 48px;
}

/* Wizard steps indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.wizard-steps .step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--border);
  font-weight: 600;
  transition: color 0.3s;
}

.wizard-steps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.3s;
}

.wizard-steps .step.active span {
  background: var(--accent);
}

.wizard-steps .step.active {
  color: var(--text);
}

.wizard-steps .step.current {
  color: var(--accent);
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}

/* Forms */
.auth-form h2 {
  font-size: 22px;
  margin-bottom: 8px;
  text-align: center;
}

.form-hint {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  -webkit-appearance: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Provider buttons */
.provider-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.btn-provider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.btn-provider:hover:not(:disabled) {
  border-color: var(--accent);
  background: #f0fdf4;
}

.btn-provider:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-provider svg {
  flex-shrink: 0;
}

/* Done step */
.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
}

/* Error / success */
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 8px 0;
  min-height: 18px;
}

.form-success {
  color: var(--success);
  font-size: 13px;
  margin: 8px 0;
  min-height: 18px;
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.form-links a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .auth-container { padding: 16px; }
  .auth-card { padding: 32px 20px; border-radius: 12px; }
  .wizard-steps .step { font-size: 11px; }
  .step-line { width: 20px; margin: 0 4px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 24px 16px; }
  .wizard-steps .step span { width: 20px; height: 20px; font-size: 11px; }
}
