.custom-auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
}

.custom-auth-modal-box {
  background: #fff;
  border-radius: 12px;
  min-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .custom-auth-modal-box {
    height: 100%;
    width: 100%;
  }
  .custom-login-container {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .pro-modal-content {
    background: #fff !important;
    padding: 25px !important;
    width: 90vw !important;
    border-radius: 6px !important;
    text-align: center !important;
    position: relative !important;
  }

  .custom-login-pro-form {
    width: 27rem !important;
  }

  /* #custom-login-form {
    width: 100% !important;
  } */
}

.custom-auth-tab-header {
  padding-inline: 15px;
  border-bottom: 1px solid #aaa8a9;
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.custom-tab-title-login {
  padding-block: 15px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.custom-tab-title-register {
  padding-block: 15px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#close-custom-auth {
  padding-block: 15px;
}

.custom-form-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-login-container {
  display: flex;
  align-items: center;
}

#custom-login-form {
  width: 100%;
  padding: 30px;
}

#custom-register-form {
  width: 100%;
  padding: 10px 30px 30px 30px;
  max-height: 90vh;
  overflow: auto;
}

#custom-login-form label {
  display: block;
  text-align: left;
  width: 100%;
  /* margin-bottom: 2px; */
  font-weight: 600;
}

.input-custom {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  /* margin-bottom: 10px; */
  background: #f9f9f9;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 12px;
  cursor: pointer;
}

.btn-login {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #890a45, #e22c84);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.register-link {
  text-align: center;
  margin-top: 15px;
}

.register-link span {
  color: #890a45;
  font-weight: 600;
  cursor: pointer;
}

.pro-modal-content a {
  color: #890a45;
  font-weight: 600;
  text-decoration: none;
}

.pro-modal-content a:hover {
  text-decoration: underline;
}

.custom-login-pro-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  top: 23px !important;
  position: relative;
  width: 48rem;
}

.custom-login-pro-form h2 {
  text-align: center;
}

/* #custom-register-form {
  display: none;
} */

.grouped-input {
  display: flex;
  gap: 15px;
}

.grouped-input .form-group {
  flex: 1;
}

.custom-identity {
  display: flex;
  margin-top: 5px;
}

/* Overlay noir transparent */
.pro-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Modal */
.pro-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Contenu */
.pro-modal-content {
  background: #fff;
  padding: 25px;
  width: 600px;
  /* max-width: 90%; */
  border-radius: 6px;
  text-align: center;
  position: relative;
}

/* Bouton fermer X */
.pro-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* Texte */
.pro-modal-content h2 {
  margin-bottom: 15px;
}

.pro-modal-content ul {
  text-align: left;
  margin: 15px 0;
}

/* Contact */
.pro-contact strong {
  font-size: 20px;
}

/* bouton fermer */
.pro-modal-btn-close {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ddd;
  border: none;
  cursor: pointer;
}

/* Bouton PRO moderne style Presta */
.custom-login-pro-form button,
.pro-modal-content button {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  cursor: pointer;
  margin-top: 10px;

  /* Dégradé rose Presta */
  background: linear-gradient(90deg, #0f4c81, #1e88e5);

  transition: all 0.3s ease;
}

/* Hover effet moderne */
.custom-login-pro-form button:hover,
.pro-modal-content button:hover {
  background: linear-gradient(90deg, #0f4c81, #1e88e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3);
}

/* Click effet */
.custom-login-pro-form button:active,
.pro-modal-content button:active {
  transform: scale(0.98);
}
