/* ===== STYLES SPÉCIFIQUES ADMIN ===== */

/* Page de login admin */
.admin-login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-login-container {
  width: 100%;
  max-width: 1400px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

/* Header admin */
.admin-login-header {
  padding: 2rem 3rem 1rem;
  border-bottom: 1px solid var(--ci-border);
  position: relative;
}

.back-to-home {
  position: absolute;
  top: 2rem;
  left: 3rem;
  color: var(--ci-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ci-transition);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--ci-light);
}

.back-to-home:hover {
  background: var(--ci-border);
  color: var(--ci-dark);
  transform: translateX(-2px);
}

.admin-logo {
  text-align: center;
  padding-top: 1rem;
}

.logo-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.logo-wrapper i {
  font-size: 2rem;
  color: white;
}

.admin-logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Contenu principal */
.admin-login-content {
  min-height: 600px;
}

/* Colonne gauche */
.admin-login-left {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-hero {
  text-align: center;
  max-width: 400px;
}

.admin-hero-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.admin-hero-icon i {
  font-size: 2.5rem;
  color: white;
}

.admin-hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ci-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.admin-hero-text {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.admin-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--ci-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-feature i {
  color: var(--ci-success);
  font-size: 1.2rem;
}

.admin-feature span {
  font-weight: 600;
  color: var(--ci-dark);
}

/* Colonne droite */
.admin-login-right {
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.admin-login-form {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ci-dark);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Formulaire admin */
.admin-form {
  margin-bottom: 2rem;
}

.btn-toggle-password {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--ci-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-toggle-password:hover {
  color: var(--ci-dark);
  background: var(--ci-light);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.forgot-password {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--ci-transition);
}

.forgot-password:hover {
  color: var(--ci-dark);
}

/* Notice de sécurité */
.admin-security-notice {
  background: linear-gradient(135deg, #f8fff0 0%, #f0f9ff 100%);
  border-radius: var(--ci-radius);
  padding: 1.5rem;
  border: 1px solid #e1f5e1;
}

.security-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.security-icon {
  font-size: 1.5rem;
  color: var(--ci-success);
}

.security-text {
  display: flex;
  flex-direction: column;
}

.security-text strong {
  color: var(--ci-dark);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.security-text span {
  color: #6c757d;
  font-size: 0.85rem;
}

/* Footer admin */
.admin-login-footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--ci-border);
  background: var(--ci-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #6c757d;
  text-decoration: none;
  transition: var(--ci-transition);
}

.footer-links a:hover {
  color: var(--ci-dark);
}

.separator {
  color: var(--ci-border);
}

/* Responsive */
@media (max-width: 992px) {
  .admin-login-left,
  .admin-login-right {
    padding: 3rem 2rem;
  }
  
  .admin-logo h1 {
    font-size: 2rem;
  }
  
  .admin-hero h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .admin-login-body {
    padding: 1rem;
  }
  
  .admin-login-container {
    border-radius: 16px;
  }
  
  .admin-login-header {
    padding: 1.5rem;
  }
  
  .back-to-home {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1rem;
    display: inline-flex;
  }
  
  .admin-logo {
    padding-top: 0;
  }
  
  .admin-login-left,
  .admin-login-right {
    padding: 2rem 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .admin-logo h1 {
    font-size: 1.75rem;
  }
  
  .admin-hero h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .admin-login-header {
    padding: 1rem;
  }
  
  .admin-login-left,
  .admin-login-right {
    padding: 1.5rem 1rem;
  }
  
  .logo-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .logo-wrapper i {
    font-size: 1.5rem;
  }
  
  .admin-logo h1 {
    font-size: 1.5rem;
  }
}

/* Animation pour le focus */
.form-control.neutral:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Styles pour les états de validation */
.was-validated .form-control:valid {
  border-color: var(--ci-success);
}

.was-validated .form-control:invalid {
  border-color: var(--ci-error);
}

/* Amélioration des checkboxes */
.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}