/*
 * Páginas de Autenticación (Login, Registro)
 */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  padding: 2rem 1rem;
}

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

.auth-logo {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: 80px;
  height: auto;
  animation: subtle-glow 3s infinite alternate;
}

@keyframes subtle-glow {
  from { filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3)); }
  to { filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6)); }
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.auth-form {
  margin-top: 2rem;
}

.auth-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-password-toggle:hover {
  color: var(--neon-cyan);
}

/* El grupo de formulario necesita posición relativa para el botón de toggle */
.auth-form .form-group {
  position: relative;
}

.auth-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.auth-remember label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-remember a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: text-shadow var(--transition-fast);
}

.auth-remember a:hover {
  text-shadow: var(--glow-cyan);
}

.auth-btn-submit {
  width: 100%;
  margin-bottom: 1.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 1rem;
}

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

.auth-footer a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow var(--transition-fast);
}

.auth-footer a:hover {
  text-shadow: var(--glow-cyan);
}

.auth-terms {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(200, 210, 230, 0.6);
  margin-top: 1.5rem;
}

.auth-terms a {
  color: var(--text-secondary);
  text-decoration: underline;
}

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

@media (prefers-reduced-motion: reduce) {
  .auth-logo {
    animation: none;
  }
}
