/* ═══════════════════════════════════════
   QuizForge — auth.css
   Estilos para login, register, recuperacion
═══════════════════════════════════════ */

.auth-body {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.auth-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* Alert */
.auth-alert {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger-bdr);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.auth-alert-success {
  background: var(--correct-bg);
  border-color: var(--correct-bdr);
  color: var(--correct);
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--surface);
}
.form-input::placeholder {
  color: var(--muted2);
}

.form-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.form-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.password-strength {
  min-height: 1.2rem;
  margin-top: 0.25rem;
}

/* Botón principal del form */
.btn-auth {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  display: block;
}
.btn-auth:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
}
.btn-auth:disabled {
  background: var(--border2);
  color: var(--muted2);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Ícono de éxito */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--correct-bg);
  border: 2px solid var(--correct-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--correct);
}
