/* ==========================================================================
   STYLES DE BASE ET STRUCTURATION MODERNE
   ========================================================================== */
body#authentication {
  background-color: #000000 !important;
  background-image: none !important; 
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  color: #ffffff;
  font-family: "Poppins", Arial, sans-serif; /* Si Poppins n'est pas disponible, utilise Arial */
}

/* Wrapper principal avec un subtil effet de background */
body#authentication #wrapper {
  background-color: #000000 !important;
  background-image: radial-gradient(circle at 30% 20%, rgba(166, 24, 84, 0.15) 0%, rgba(0, 0, 0, 0) 40%),
                    radial-gradient(circle at 70% 80%, rgba(166, 24, 84, 0.08) 0%, rgba(0, 0, 0, 0) 40%) !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
}

/* Conteneurs transparents */
body#authentication #page,
body#authentication #wrapper > .container,
body#authentication #main,
body#authentication div#content-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Notre wrapper personnalisé */
body#authentication .maleo-login-page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

/* En-tête de la page avec gradient moderne */
body#authentication .maleo-page-header {
  text-align: center;
  max-width: 800px;
  margin: 30px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Titre principal avec effet spécial pour les points roses */
body#authentication .maleo-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body#authentication .maleo-pink-dot {
  color: rgb(186, 41, 101);
  text-shadow: 0 0 15px rgba(186, 41, 101, 0.5);
  position: relative;
  font-size: 110%;
}

/* Sous-titre */
body#authentication .maleo-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   MISE EN PAGE PRINCIPALE - STRUCTURE FLUIDE
   ========================================================================== */
/* Structure globale du contenu - Login à droite, 4 blocs en colonne à gauche */
body#authentication .maleo-login-content-grid {
  display: flex;
  flex-direction: row; /* Disposition horizontale */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 50px;
  align-items: flex-start; /* Alignement au début plutôt que centré */
  justify-content: center;
}

/* Formulaire de connexion - à droite, largeur préservée */
body#authentication .maleo-login-form-container {
  flex: 0 0 500px; /* Largeur fixe maintenue comme demandé */
  width: 500px;
  margin: 0; /* Suppression des marges automatiques */
  order: 2; /* Pour s'assurer qu'il est à droite */
}

/* Section 4 raisons - à gauche en colonne verticale */
body#authentication .maleo-reasons-container {
  flex: 1; /* Prendre le reste de l'espace disponible */
  max-width: 500px; /* Largeur maximum pour éviter qu'elle soit trop large */
  margin: 0;
  order: 1; /* Pour s'assurer qu'elle est à gauche */
}

/* Titre des raisons aligné à gauche */
body#authentication .maleo-reasons-title {
  text-align: left;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
}

/* Ligne décorative sous le titre alignée à gauche */
body#authentication .maleo-reasons-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; /* Aligné à gauche */
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, rgba(186, 41, 101, 1) 0%, rgba(186, 41, 101, 0.5) 100%);
  border-radius: 3px;
}

/* Grille des 4 blocs - en colonne verticale */
body#authentication .maleo-reasons-grid {
  display: flex;
  flex-direction: column; /* Disposition verticale */
  gap: 25px;
}

/* Chaque bloc raison - style horizontal préservé mais pour colonne */
body#authentication .maleo-reason-item {
  flex: none; /* Ne pas étirer */
  width: 100%; /* Prendre toute la largeur disponible */
  max-width: none;
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.6), rgba(30, 30, 30, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row; /* Icône à gauche, texte à droite */
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Effet de fond subtil */
body#authentication .maleo-reason-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(186, 41, 101, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
}

/* Animation au survol */
body#authentication .maleo-reason-item:hover {
  transform: translateY(-5px);
  border-color: rgba(186, 41, 101, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(186, 41, 101, 0.2);
}

/* Icône du bloc - horizontale */
body#authentication .maleo-reason-icon {
  background: linear-gradient(165deg, rgb(186, 41, 101) 0%, rgb(166, 24, 84) 100%);
  padding: 14px;
  border-radius: 14px;
  margin-right: 20px;
  margin-bottom: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(166, 24, 84, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Effet de scintillement sur l'icône au survol */
body#authentication .maleo-reason-item:hover .maleo-reason-icon {
  box-shadow: 0 8px 20px rgba(166, 24, 84, 0.4);
}

body#authentication .maleo-reason-icon svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
  display: block;
}

/* Contenu du bloc - aligné à gauche */
body#authentication .maleo-reason-details {
  flex-grow: 1;
  position: relative;
  z-index: 1;
  text-align: left;
}

body#authentication .maleo-reason-item-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

body#authentication .maleo-reason-item:hover .maleo-reason-item-title {
  color: rgb(203, 75, 125);
}

body#authentication .maleo-reason-item-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive - empilé en version mobile */
@media (max-width: 991px) {
  body#authentication .maleo-login-content-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  body#authentication .maleo-login-form-container {
    width: 100%;
    max-width: 500px;
    order: 1; /* Forme en premier sur mobile */
  }
  
  body#authentication .maleo-reasons-container {
    width: 100%;
    max-width: 500px;
    order: 2; /* Raisons en second sur mobile */
  }
  
  body#authentication .maleo-reasons-title {
    text-align: center;
    width: 100%;
  }
  
  body#authentication .maleo-reasons-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   CARTE DE CONNEXION - DESIGN MODERNE
   ========================================================================== */
body#authentication .maleo-login-form-container {
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 30px rgba(166, 24, 84, 0.15);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body#authentication .maleo-login-form-container:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.08),
              0 0 40px rgba(166, 24, 84, 0.2);
}

/* En-tête du formulaire */
body#authentication .maleo-form-header {
  background: linear-gradient(165deg, rgb(166, 24, 84) 0%, rgb(186, 41, 101) 50%, rgb(140, 20, 70) 100%);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Effet de lumière sur l'en-tête du formulaire */
body#authentication .maleo-form-header:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.5;
  pointer-events: none;
}

body#authentication .maleo-form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

/* Corps du formulaire */
body#authentication .maleo-form-body {
  padding: 30px 25px;
}

/* Styles améliorés pour le formulaire */
body#authentication .login-form-prestashop .form-group label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

body#authentication .login-form-prestashop .form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 14px 15px;
  height: auto;
  font-size: 1rem;
  transition: all 0.3s ease;
}

body#authentication .login-form-prestashop .form-control:focus {
  outline: none;
  border-color: rgba(186, 41, 101, 0.7);
  box-shadow: 0 0 0 3px rgba(186, 41, 101, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Bouton Afficher/Masquer mot de passe */
body#authentication .login-form-prestashop .input-group-btn button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 0;
  color: rgba(255, 255, 255, 0.7);
  height: 100%;
  border-radius: 0 8px 8px 0;
  padding: 0 15px;
  transition: all 0.3s ease;
}

body#authentication .login-form-prestashop .input-group-btn button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

body#authentication .login-form-prestashop .password-input-group .form-control {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Lien "Mot de passe oublié" */
body#authentication .login-form-prestashop .forgot-password a {
  color: rgba(186, 41, 101, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  text-align: right;
  margin-top: 10px;
  transition: all 0.2s ease;
}

body#authentication .login-form-prestashop .forgot-password a:hover {
  color: rgb(203, 75, 125);
  text-decoration: underline;
}

/* Bouton de connexion */
body#authentication .login-form-prestashop .form-footer button[type="submit"] {
  background: linear-gradient(165deg, rgb(186, 41, 101) 0%, rgb(166, 24, 84) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 15px;
  width: 100%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  margin-top: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(166, 24, 84, 0.4);
}

body#authentication .login-form-prestashop .form-footer button[type="submit"]:hover {
  background: linear-gradient(165deg, rgb(203, 55, 115) 0%, rgb(186, 41, 101) 100%);
  box-shadow: 0 6px 20px rgba(166, 24, 84, 0.5);
  transform: translateY(-2px);
}

/* Effet au clic */
body#authentication .login-form-prestashop .form-footer button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(166, 24, 84, 0.3);
}

/* Lien "Demander une ouverture de compte" */
body#authentication .maleo-no-account-link {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

body#authentication .maleo-no-account-link p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

body#authentication .maleo-no-account-link a {
  color: rgba(186, 41, 101, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

body#authentication .maleo-no-account-link a:hover {
  color: rgb(203, 75, 125);
  text-decoration: underline;
}

/* ==========================================================================
   SECTION "4 RAISONS" - DESIGN MODERNE ET VISUEL
   ========================================================================== */
body#authentication .maleo-pink-text {
  color: rgb(186, 41, 101);
  font-weight: 800;
}

/* ==========================================================================
   SLOGAN FINAL - STYLE IMPACTANT
   ========================================================================== */
body#authentication .maleo-page-footer-slogan {
  margin-top: 70px;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Ligne séparatrice avant le slogan */
body#authentication .maleo-page-footer-slogan:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(186, 41, 101, 0) 0%, 
    rgba(186, 41, 101, 0.7) 50%, 
    rgba(186, 41, 101, 0) 100%);
}

body#authentication .maleo-slogan-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body#authentication .maleo-slogan-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgb(186, 41, 101);
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(186, 41, 101, 0.3);
}

/* ==========================================================================
   CENTRER LE LOGO DANS LE HEADER (UNIQUEMENT POUR LA PAGE D'AUTHENTIFICATION)
   ========================================================================== */
body#authentication header .header-desktop-main .container {
  text-align: center;
}

body#authentication header .header-desktop-main .row {
  justify-content: center !important;
}

body#authentication header .header-desktop-main .col-md-3 {
  flex: 0 0 100%;
  max-width: 100%;
  justify-content: center;
}

body#authentication header .header-desktop-main .col-md-5,
body#authentication header .header-desktop-main .col-md-4 {
  display: none; /* Cache les colonnes non utilisées */
}

body#authentication header .header-desktop-main #_desktop_logo {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

body#authentication header .header-desktop-main #_desktop_contact_link {
  display: none; /* Cache le lien de contact s'il est présent */
}

body#authentication header .header-desktop-main .logo {
  margin: 0 auto;
}

/* Ajustement responsive */
@media (max-width: 767px) {
  body#authentication header .header-desktop-main.hidden-sm-down {
    display: block !important; /* Force l'affichage même sur mobile */
  }
}

/* ==========================================================================
   SVG CACHÉ ET UTILISABLE VIA CSS
   ========================================================================== */
body#authentication .maleo-hidden-svg {
  display: none; /* Par défaut caché */
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Permet d'utiliser ce SVG comme contenu dans les éléments via CSS content si nécessaire */
body#authentication .login-form-prestashop .form-footer button[type="submit"]::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: transparent;
  margin-left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' x2='3' y1='12' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
