/* Auth pages – Login / Register (Mail style, same theme as main site) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  background: var(--bg-dark);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-card-wide {
  max-width: 480px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.auth-form input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: var(--transition);
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

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

.auth-form .form-feedback {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.3em;
}

.auth-form .form-feedback-success { color: #86efac; }
.auth-form .form-feedback-error { color: #fca5a5; }

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-form .btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.auth-form .btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

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

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

.otp-input-wrap {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.otp-input-wrap input {
  width: 3rem;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.nav-user {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.auth-card .btn + .btn {
  margin-left: 0.75rem;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
}
