/* auth.css — login, signup, onboarding pages */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  width: 100%;
  max-width: 440px;
}

.auth-header {
  margin-bottom: var(--space-lg);
}

.auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.auth-sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.form-error {
  background: #fff3ed;
  border: 1px solid #f5c6bc;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  color: #c0392b;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.15s;
  appearance: none;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.field__input {
  resize: vertical;
  min-height: 80px;
}

.field__hint {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  margin-top: var(--space-xs);
}

.btn-primary:hover {
  background: #b56340;
}

.btn-primary:active {
  background: #a55a3a;
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: var(--space-md);
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Role selector grid */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-option {
  cursor: pointer;
}

.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.8rem;
}

.role-card:hover {
  border-color: var(--accent);
}

.role-option input:checked + .role-card {
  border-color: var(--accent);
  background: #fdf3ee;
}

.role-icon {
  font-size: 1.1rem;
  color: var(--accent);
}

.role-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  text-align: center;
}

/* Onboarding progress */
.auth-card form .btn-primary {
  margin-top: var(--space-sm);
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--space-lg);
  }

  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}