/* ════════════════════════════════════════════════════════════════════
 * auth.css — estilos compartidos de las páginas de autenticación
 * standalone (login, signup, forgot). Tema claro único de SistemaGym.
 *
 * Cargar SIEMPRE al final, después de tailwind.output.css, themes.css,
 * sistema-gym-design.css y sg-input-icon-fix.css.
 * ════════════════════════════════════════════════════════════════════ */

/* Fondo claro de la app (vence el html,body{background:var(--bg-0)} global) */
html, body { background: #F9FAFB !important; }

.auth-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #181925;
}

/* ── Tarjeta ── */
.login-card, .forgot-card, .signup-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-card h1, .forgot-card h1, .signup-card h1 { color: #181925; }
.login-card h2, .forgot-card h2, .signup-card h2 { color: #181925; }

/* ── Texto secundario / atenuado ── */
.txt-sub   { color: #6B7280; }
.txt-muted { color: #9CA3AF; }
.txt-faint { color: #D1D5DB; }
.divider   { border-color: #E5E7EB; }
.label     { color: #6B7280; }

/* ── Inputs ── */
.input-premium {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #181925;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-premium:focus {
  border-color: #9580FF;
  box-shadow: 0 0 0 3px rgba(149, 128, 255, 0.15);
  outline: none;
}
.input-premium::placeholder { color: #9CA3AF; }
select.input-premium { color: #181925; }

.input-error { color: #B91C1C; }

/* ── Botones ── */
.btn-premium {
  background: #9580FF;
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-premium:hover {
  background: #7B6FE0;
  box-shadow: 0 4px 12px rgba(149, 128, 255, 0.25);
}
.btn-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #FFFFFF;
  color: #181925;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

/* ── Alertas ── */
.alert-premium {
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success-premium {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.alert-error-premium {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

/* ── Iconos dentro de inputs (posición la da sg-input-icon-fix.css) ── */
.input-icon { color: #9CA3AF; transition: color 0.2s ease; }
.input-wrapper:focus-within .input-icon { color: #9580FF; }

/* ── Enlaces ── */
.link-premium { color: #9580FF; transition: color 0.2s ease; }
.link-premium:hover { color: #7B6FE0; }
.link-quiet { color: #9CA3AF; transition: color 0.2s ease; }
.link-quiet:hover { color: #6B7280; }

/* ── Encabezados de sección (signup) ── */
.section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6B7280;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

/* ── Área de subida de foto (signup) ── */
.image-upload-area {
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: #F9FAFB;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.image-upload-area:hover {
  border-color: #9580FF;
  background: rgba(149, 128, 255, 0.05);
}
.upload-circle { background: #F3F4F6; }
.avatar-ring { box-shadow: 0 0 0 4px rgba(149, 128, 255, 0.2); }

/* ── Insignias de icono ── */
.icon-badge { background: rgba(149, 128, 255, 0.1); }
.icon-badge svg { color: #7B6FE0; }
.ok-badge { background: #ECFDF5; }
.ok-badge svg { color: #047857; }

/* ── Toggle de contraseña inyectado por /js/password-toggle.js ── */
.input-wrapper .pwd-toggle {
  opacity: 0.85 !important;
  z-index: 3;
  color: #6B7280 !important;
  display: inline-flex !important;
}

/* ── Autocompletar de Chrome en tema claro ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: #181925 !important;
  border-color: #D1D5DB !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  .animate-fadeInUp { animation: none !important; }
}
