.popup-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Pour le support Safari */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  background: #000a14b3;
  z-index: 10001;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.popup-content {
  max-width: 1300px;
  padding: 50px;
}

.close-popup {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
}

.close-popup:hover {
  color: #bbb;
}

.auth-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-form .left h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.auth-form .left p {
  font-size: 1.1em;
  line-height: 1.3;
  padding-right: 20px;
  max-width: 500px;
}

.auth-logo {
  display: block;
  max-width: 200px;
  margin-bottom: 20px;
}

.auth-form .right {
  width: 350px;
  min-width: 400px;
  background-color: #00273b;
  border: 1px solid #b4c5e4;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 20px 50px #00000080;
  text-align: center;
}

.auth-form .right h2 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.5em;
}

.auth-form label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #9fc1ff;
}

.auth-form input::placeholder {
  color: #8da9c4;
  opacity: 0.8;
}

.password-container {
  position: relative;
}

.password-container span {
  position: absolute;
  right: 15px;
  top: 22px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1em;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background-color: #486c84;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s;
}

.auth-form button:hover {
  background-color: #b4c5e4;
  color: #000;
}

.lien {
  margin-top: 20px;
  color: #b4c5e4;
}

.lien a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
}

.lien a:hover {
  text-decoration: underline;
}

.erreur {
  color: #de0000ff;
  font-weight: bold;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px; /* Évite que l'input prenne 100% de large */
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0; /* Enlève le margin-bottom par défaut des labels */
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
}

body.popup-open {
  overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .popup-overlay {
    align-items: flex-start;
  }

  .auth-logo {
    width: 120px;
  }
  .auth-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .supp {
    display: none;
  }

  .center {
    text-align: center;
  }

  .auth-form .right {
    width: 100%;
    min-width: unset;
    padding: 20px;
  }

  .popup-content {
    font-size: 0.8em;
    padding: 20px;
  }

  h2 {
    text-align: left;
  }

  .right input {
    margin-bottom: 10px;
  }
}
