/* ============================================
   AUTH-SIMPLE.CSS - Páginas de autenticación simples
   (forgot_password, reset_password, complete_registration)
   ProfitHustler Dark Theme
   ============================================ */

/* === Layout principal === */
.auth-page {
  min-height: 100vh;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
}

.auth-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: 8rem;
}

/* Grid pattern background */
.auth-page main::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* === Contenedor === */
.auth-container {
  position: relative;
  width: 100%;
  max-width: 28rem;
  z-index: 1;
}

/* === Link volver === */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--primary);
}

.auth-back-link svg {
  width: 1rem;
  height: 1rem;
}

/* === Card principal === */
.auth-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* === Icono decorativo === */
.auth-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-icon-circle {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
}

.auth-icon-circle svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

/* === Header (título + descripción) === */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.auth-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* === Formulario === */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* === Grupo de input === */
.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.auth-input-group input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input-group input::placeholder {
  color: var(--muted-foreground);
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* === Botón submit === */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.auth-submit:hover {
  background-color: var(--primary-hover);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.auth-submit svg {
  width: 1rem;
  height: 1rem;
}

/* === Mensaje de resultado === */
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.auth-message.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.auth-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Estado oculto por defecto */
.auth-message:empty {
  display: none;
}

/* === Footer link === */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.auth-footer a:hover {
  color: var(--primary-hover);
}

/* === Indicador de progreso === */
.auth-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-progress-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-progress-circle.completed {
  background-color: var(--primary);
}

.auth-progress-circle.completed svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--background);
}

.auth-progress-circle.active {
  background-color: rgba(34, 197, 94, 0.2);
  border: 2px solid var(--primary);
}

.auth-progress-circle.active span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.auth-progress-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-progress-label.completed {
  color: var(--primary);
}

.auth-progress-label.active {
  color: var(--muted-foreground);
}

.auth-progress-line {
  width: 3rem;
  height: 2px;
  background-color: var(--primary);
}

/* === Input con prefijo === */
.auth-input-prefix {
  position: relative;
}

.auth-input-prefix .prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 1rem;
  pointer-events: none;
}

.auth-input-prefix input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input-prefix input::placeholder {
  color: var(--muted-foreground);
}

.auth-input-prefix input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* === Hint de input === */
.auth-input-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* === Info box (verde) === */
.auth-info-box {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.auth-info-box p {
  font-size: 0.875rem;
  color: #4ade80;
  margin: 0;
  line-height: 1.5;
}

/* === Logo inferior === */
.auth-logo {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.auth-logo .text-white {
  color: var(--foreground);
}

.auth-logo .text-primary {
  color: var(--primary);
}

/* === Input con toggle password === */
.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input-wrapper input::placeholder {
  color: var(--muted-foreground);
}

.auth-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.auth-toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-password:hover {
  color: var(--foreground);
}

.auth-toggle-password svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* === Caja de requisitos de contraseña === */
.auth-requirements {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.auth-requirements p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}

.auth-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-requirements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-requirements li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--muted-foreground);
  border-radius: 50%;
  flex-shrink: 0;
}

.auth-requirements li.valid {
  color: var(--primary);
}

.auth-requirements li.valid::before {
  background-color: var(--primary);
}

/* === Responsive === */
@media (max-width: 480px) {
  .auth-page main {
    padding: 1rem;
    padding-top: 7rem;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.375rem;
  }
  
  .auth-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .auth-icon-circle svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}