.login-container {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    min-height: calc(100vh - 40px);
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    margin: 20px auto !important;
    box-shadow: var(--shadow-1);
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    position: relative;
}

/* ---------------------- */
/* COLONNE GAUCHE */
/* ---------------------- */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(231,74,74,0.92), rgba(216,212,212,0.70));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    height: 100%; /* Prend toute la hauteur du container */
}

.illustration img {
    width: 80%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------------------- */
/* COLONNE DROITE */
/* ---------------------- */

.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f9f9f9;
    margin-bottom: 30px;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    height: 100%; /* Prend toute la hauteur du container */
}

.form-container h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.form-container h1 span {
    color: #e74a4a;
}

.form-container p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ---------------------- */
/* FORMULAIRE */
/* ---------------------- */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
}

.input-group input:focus {
    border-color: #e74a4a;
    outline: none;
}

/* ---------------------- */
/* OPTIONS */
/* ---------------------- */

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;

}

.options a {
    color: #e74a4a;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* ---------------------- */
/* BOUTONS */
/* ---------------------- */

.google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
}

.google-login img {
    width: 20px;
    margin-right: 10px;
}

.google-login:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.btn-submit {
    width: 100%;
    padding: 12px 15px;
    background: #e74a4a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
}

.btn-submit:hover {
    background: #af2e34;
    transform: translateY(-3px);
}


  /* Repositionner le bouton "Retour" */
  .connexion-action-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Style modernisé du bouton "Retour" */
  .connexion-action-btn .btn-secondary {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px #e74a4a33;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    outline: none;
  }

  .connexion-action-btn .btn-secondary:hover,
  .connexion-action-btn .btn-secondary:focus {
    background: #c62828;
    box-shadow: 0 4px 12px #c6282844;
  }

/* ---------------------- */
/* SÉPARATEUR */
/* ---------------------- */

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.separator .line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.separator .or {
    margin: 0 10px;
    color: #666;
    font-size: 0.9rem;
}

/* ---------------------- */
/* LIEN D'INSCRIPTION */
/* ---------------------- */

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
}

.signup-link a {
    color: #e74a4a;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Supprimer le scroll ici */
.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f9f9f9;
    margin-bottom: 30px;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    height: 100%;
    /* overflow-y: auto; */      /* <-- à supprimer */
    /* max-height: 100vh; */    /* <-- à supprimer */
}

/* Ajoute le scroll sur le formulaire */
.form-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* ---------------------- */
/* LIEN D'INSCRIPTION ET DE CONNEXION */
/* ---------------------- */

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--fontFamily-dm_sans), Arial, sans-serif;
}

.register-link a {
    color: #e74a4a;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s;
}

.register-link a:hover {
    text-decoration: underline;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
}


/*-----------------------------------*\
  #REQUÊTES MÉDIAS
\*-----------------------------------*/


/*-----------------------------------*\
  #MEDIA QUERY - ÉCRAN ≤ 700px
\*-----------------------------------*/

@media (max-width: 700px) {
  
  /* Masquer la colonne de gauche */
  .login-left {
    display: none;
  }

  /* Adapter la colonne de droite */
  .login-right {
    flex: 1;
    max-width: 100%;
    width: 100%;
    padding: 30px 20px;
    border-radius: 24px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    position: relative; /* Nécessaire pour placer le bouton retour */
  }

  /* Repositionner le bouton "Retour" */
  .connexion-action-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Style modernisé du bouton "Retour" */
  .connexion-action-btn .btn-secondary {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px #e74a4a33;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    outline: none;
  }

  .connexion-action-btn .btn-secondary:hover,
  .connexion-action-btn .btn-secondary:focus {
    background: #c62828;
    box-shadow: 0 4px 12px #c6282844;
  }

  /* Réduction taille textes et padding pour mobile */
  .form-container h1 {
    font-size: 1.6rem;
  }

  .form-container p {
    font-size: 0.85rem;
  }

  .input-group input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .btn-submit,
  .google-login {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .separator .or {
    font-size: 0.85rem;
  }

  .signup-link,
  .register-link {
    font-size: 0.85rem;
  }
}
