/* ============================================
   10. PAGES AUTHENTIFICATION
   ============================================ */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

/* ============================================
   FORMS AUTHENTIFICATION
   ============================================ */

.auth-form-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-form-card h1,
.auth-form-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 1rem;
  text-align: center;
}

.auth-form-card .subtitle {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  text-align: center;
  margin-bottom: 2rem;
}

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

.auth-form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.auth-form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(154, 79, 24, 0.1);
}

.auth-form-group input::placeholder {
  color: #9ca3af;
}

.auth-form-group input[type='password']:focus {
  letter-spacing: 0.1rem;
}

/* ============================================
   REMEMBER & FORGOT
   ============================================ */

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

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-remember input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.auth-remember label {
  margin: 0;
  cursor: pointer;
  color: var(--color-text-dark);
  font-weight: 500;
}

.auth-forgot-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================
   BOUTONS AUTH
   ============================================ */

.auth-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   DIVIDER & ALTERNATIVES
   ============================================ */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--color-text-mid);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

.auth-alternatives {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-social-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fafafa;
}

.auth-social-btn i {
  font-size: 1.1rem;
}

/* ============================================
   LIEN VERS AUTRES PAGES
   ============================================ */

.auth-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
  color: var(--color-text-mid);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================
   MESSAGES & ERREURS
   ============================================ */

.auth-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border-left: 4px solid;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #166534;
  border-left-color: #22c55e;
}

.auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

.auth-alert.warning {
  background: #fffbeb;
  color: #92400e;
  border-left-color: #f59e0b;
}

.auth-alert.info {
  background: #eff6ff;
  color: #0c4a6e;
  border-left-color: #3b82f6;
}

/* ============================================
   PAGE RESET PASSWORD
   ============================================ */

.password-reset-card {
  margin-bottom: 2rem;
}

.password-reset-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.password-reset-step:last-child {
  border-bottom: none;
}

.password-reset-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.password-reset-content h4 {
  margin: 0 0 0.5rem;
  color: var(--color-text-dark);
}

.password-reset-content p {
  margin: 0;
  color: var(--color-text-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}


/* ============================================
   SECTION RESPONSIVE – MOBILE & TABLETTE
   ============================================ */

@media (max-width: 768px) {
  .auth-wrapper {
    padding: var(--spacing-md);
  }
  .auth-container {
    max-width: 100%;
  }
  .auth-form-card {
    padding: 2rem;
    border-radius: 12px;
  }
  .auth-form-card h1,
  .auth-form-card h2 {
    font-size: 1.5rem;
  }
  .auth-form-group input {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }
  .auth-submit-btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
  .auth-remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .auth-wrapper {
    padding: var(--spacing-sm);
  }
  .auth-form-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  .auth-form-card h1,
  .auth-form-card h2 {
    font-size: 1.3rem;
  }
  .auth-form-group {
    margin-bottom: 1.25rem;
  }
  .auth-form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  .auth-form-group input {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }
  .auth-submit-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .auth-divider {
    gap: 0.75rem;
    font-size: 0.8rem;
  }
  .auth-social-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }
  .auth-footer {
    font-size: 0.85rem;
  }
  .auth-alert {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .password-reset-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .password-reset-content h4 {
    font-size: 0.95rem;
  }
  .password-reset-content p {
    font-size: 0.8rem;
  }
}
