/****LOGIN***/
.container_login {
  display: flex;
  margin: auto !important;
  max-width: 90%;
  box-shadow: var(--box-shadow) !important;
  margin-bottom: 90px !important;
  /* Ajout d'une largeur max pour une meilleure lisibilité sur les grands écrans */
  max-width: 1200px;
}

.left-panel {
  flex: 1;
  background-color: #d4ede2;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-panel p {
  font-size: 1.4rem !important;
  color: var(--titre-color);
}

.left-panel h2 {
  font-size: 2rem !important;
  font-family: 'Barlow', sans-serif;
  color: var(--titre-color);
}

.left-panel span {
  color: var(--main-color) !important;
}

.logo_login {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1733;
}

.bulb {
  color: #f4a259;
}

.highlight {
  color: #f4a259;
}

.left-panel h2 {
  font-size: 1.8rem;
  margin: 20px 0;
  font-weight: bold;
}

.left-panel p {
  font-size: 1rem;
  line-height: 1.5;
}

.illustration {
  margin-top: 40px;
}

.illustration img {
  max-width: 100%;
  height: auto;
}

.right-panel {
  flex: 1;
  padding: 60px 40px;
  background-color: #f4f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-panel h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--titre-color);
  font-weight: bold;
}

.form_login {
  display: flex;
  flex-direction: column;
}

.label_login {
  margin-bottom: 5px;
  font-weight: 500;
}

.input_login[type='email'],
.input_login[type='text'],
.input_login[type='password'] {
  padding: 0.8rem !important;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  background-color: #f9fafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.remember {
  display: flex;
  align-items: center !important;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.remember label {
  position: relative;
  left: 0;
}

.remember input {
  margin-right: 8px;
}

button {
  background-color: #1a1733;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* button:hover {
  background-color: #f08e39;
} */

.options {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.options a:first-child {
  color: #f4a259;
  text-decoration: none;
  font-size: 1.2rem;
}

.options a:last-child {
  text-decoration: none;
  font-weight: bold;
  color: var(--titre-color);
  font-size: 1.2rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 500px;
  padding: 20px;
  border-radius: 12px;
}

.checkbox-wrapper input[type='checkbox'] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #007bff;
  margin-top: 3px;
}

.checkbox-wrapper label {
  font-size: 1.5rem !important;
  color: var(--titre-color);
  line-height: 1.5;
}

.checkbox-wrapper label a {
  color: var(--titre-color);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-wrapper label a:hover {
  text-decoration: none;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container_login {
    flex-direction: column; /* Les panneaux s'empilent verticalement */
    max-width: 90%; /* Pour laisser de l'espace sur les côtés */
    margin: 40px auto; /* Ajuste la marge pour le centrage */
  }

  .left-panel,
  .right-panel {
    padding: 30px 20px; /* Réduit le padding pour plus de place */
  }

  .left-panel {
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .left-panel h2 {
    font-size: 1.5rem !important; /* Réduit la taille du titre */
  }

  .left-panel p {
    font-size: 1rem !important; /* Réduit la taille du paragraphe */
  }

  .left-panel img {
    margin: 0 auto 20px; /* Centre le logo et ajoute de l'espace */
  }

  .right-panel h2 {
    font-size: 1.5rem; /* Réduit la taille du titre du formulaire */
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container_login {
    margin-bottom: 20px !important;
  }

  .left-panel,
  .right-panel {
    padding: 20px 15px;
  }

  .left-panel h2 {
    font-size: 1.2rem !important;
  }

  .left-panel p {
    font-size: 0.9rem !important;
  }

  .right-panel h2 {
    font-size: 1.2rem;
  }

  .options {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .options a {
    font-size: 1rem !important;
  }
}
