/* --- Overlay et Box --- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.auth-box {
  position: relative;
  background-color: #fff;
  width: 700px;
  max-width: 90%;
  min-height: 60%;
  display: flex;
  flex-direction: row;
  border-radius: 50px 8px 50px 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}
.auth-close:hover { color: #000; }
.auth-banner {
background: linear-gradient(135deg, #0b8271 0%, #0aaa8c 100%);  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width:60%;
}
.auth-content {
  width: 60%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --- Login & Register Commun --- */
#login_form, #register_form {
  margin-top: 20px;
  width: 100%;
}

#register_form{
  display: none;
height: 100%;
}

.woocommerce-form-row.form-row.form-row-wide {
  min-width: 100%;
}
.woocommerce-form-row.form-row.form-row-wide input,
.u-column form input,#password,
.woocommerce-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: transparent;
  box-sizing: border-box;
  border: solid #b9b9b9 1px;
}

/* --- Parent container --- */
#customer_login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}


/* --- Password toggle --- */
#showLostPasswordForm a {
  color: black !important;
}

.password-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  width: 28px;
  height: 28px;
}
.toggle-password svg { pointer-events: none; }
.eye {
  display: inline-flex; /* ou block selon ton layout */
  align-items: center;
  justify-content: center;
}

.eye-closed {
  display: none;
}

/* --- Boutons --- */
.login_btn,
.register-toggle-btn,
#register_form .woocommerce-button.button {
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  padding: 12px 0;
  margin-top: 10px;
}
.login_btn,
#register_form .woocommerce-button.button {
background-color: #2a449b;
  font-weight: initial;
  border: 1px #2a449b solid;
  color: #fff;
}
.login_btn:hover,
#register_form .woocommerce-button.button:hover {
  background-color: #0f0780;
}
.register-toggle-btn {
  background-color: transparent;
  border: 1px solid #376ca8;
  color: #376ca8;
}
.register-toggle-btn:hover {
  border-color: #406ea1;
  color: #406ea1;
}

/* --- Liens --- */
.show-register-link { text-align: center; margin-top: 10px; }
.show-register-link a, #register_form .back-to-login { cursor: pointer; }
#register_form .back-to-login { font-size: 14px; }

/* --- Form row --- */
.woocommerce-form-row.form-row {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Bouton login custom --- */
.woocommerce-button.button.login_btn {
background-color: transparent;
  font-weight: initial;
  border: 1px #2a449b solid;
  color: #2a449b;
}

/* --- Specialité wrapper --- */
#speciality_wrapper { margin-top: 10px; }

/* --- Radios utilisateur --- */
#user-type-container {
  font-weight: 400;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}
#user-type-container .user-type-option {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  cursor: pointer;
}
#user-type-container .user-type-option input[type="radio"] {
  all: unset;
  appearance: radio;
  -webkit-appearance: radio;
  margin-right: 5px;
}
#user-type-container .user-type-option span {
  all: unset;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}


/* --- Speciality wrapper --- 





/* Couleur des radios */
#user-type-container .user-type-option input[type="radio"] {
  all: unset;                /* Réinitialise héritage */
  appearance: radio;
  -webkit-appearance: radio;
  margin-right: 5px;
  accent-color: #160aa8;    /* Couleur du rond quand coché */
  cursor: pointer;
}

/* Optionnel : survol */
#user-type-container .user-type-option input[type="radio"]:hover {
  accent-color: #0f0780;    /* Couleur plus foncée au hover */
}


/* Style général du select (désactivé par défaut) */
#speciality {
  background-color: #eef2ff; /* ton fond */
  padding: 6px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #b9b9b9;
  color: #56778f; /* texte grisé par défaut */
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

/* Style des options */
#speciality option {
  font-weight: 400 !important;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0px;
  color: #56778f;
}

/* Style quand actif */
#speciality_wrapper.active select {
  background-color: #ffffff; /* fond blanc quand actif */
  border: 1px solid #b9b9b9; 
  color: #56778f; /* texte normal */
  cursor: pointer;
}

.woocommerce-button.button.login_btn {
background-color: transparent;
  font-weight: initial;
  border: 1px #2a449b solid !important;
  color: #2a449b;
  border-radius: 4px;
}

.back-to-login.woocommerce-button.button {
  border-radius: 4px;
  font-weight: initial;
}

.back-to-login.woocommerce-button.button:hover {
  background-color: #4761bb !important;
}

.woocommerce-Button.button {
  background-color: transparent;
  color: #2a449b;
  font-weight: initial;
  border: solid #2a449b 1px;
  transition: 0.3s;
  cursor: not-allowed;
  pointer-events: none; 
}


/*------ Button enable styling -------*/
.woocommerce-Button.button.active-btn {
  background-color: #2a449b;
  color: white;
  cursor: pointer;
  pointer-events: auto; 
}

#login-btn.active-btn{
  background-color: #2a449b;
  color: white;
  cursor: pointer;
  pointer-events: auto; 
}

.lost_reset_password p {
  justify-content: initial;
  text-align: center;
  margin-bottom: 50px;
}

#lost-password-btn {
  border-radius: 4px;
}

.woocommerce-form__label.woocommerce-form__label-for-checkbox.woocommerce-form-login__rememberme {
  display: flex;
  flex-direction: row;
  align-content: center;
}

#rememberme {
  width: 20px;
  margin-right: 5px;
}

/*use actif*/
.user-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2f2f2;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    
}

.user-toggle .toggle-arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

.mini-dashboard {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    padding: 10px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
}

.mini-dashboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-dashboard ul li {
    margin-bottom: 8px;
}

.mini-dashboard ul li a {
    color: #01529a;
    text-decoration: none;
}

.mini-dashboard ul li a:hover {
    text-decoration: underline;
}

.back-to-login {
  background-color: #2a449b;
  color: white;
  cursor: pointer;
  pointer-events: auto; 
}

#show_register {
  background-color: #0aaa8c;
  font-weight: initial;
  border: 1px #0aaa8c solid;
  color: #fff;
}

.back-to-login.woocommerce-button.button {
  background-color: #0aaa8c !important;
  border: solid #0aaa8c 1px !important;
}
.back-to-login.woocommerce-button.button:hover {
  background-color: #0dc9a6 !important;
  border: solid #0dc9a6 1px !important;
}


.required {
  color: rgb(255, 84, 84);
}

.woocommerce-form-row.form-row.form-row-wide {
  margin: 0px;
  padding: 0px;
}



/*********************/

/* Conteneur du popup */
.wc-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenu du popup */
.wc-popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-family: 'Montserrat', sans-serif;
}

/* Bouton de fermeture */
.wc-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

/* Messages */
.auth-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.auth-popup-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
  font-family: Montserrat, sans-serif;
}

.auth-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.auth-popup ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  color: #d93025;
}
/* login popup erro */


.popup-error {
  display: none;              
  position: relative;    
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: opacity 0.5s ease;
  opacity: 1;
  z-index: 1000;
  width: 100%;
  color:white;
}


/* Animation de disparition */
.popup-error.fade-out {
  opacity: 0;
}

/*----- reset Password -------*/

 #reset-password {
width: 80%;
  height: auto;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  margin: 0px auto;
  justify-content: center;
  max-width: 400px;
  text-align: center;
}


 #reset-password h2 {
  text-transform: uppercase;
  font-size: 16px;
  color: #4d4b4b !important;
  font-weight: 600;
  font-family: 'montserrat', sans-serif;
  text-align: center;
}

#reset-password span {
font-size: 16px;
  font-weight: 400;
  color: #8c8c8c;
  font-size: 14px;
  font-family: arial;
  text-align: match-parent;
  margin-bottom: 20px;
}

#reset-password p {
  margin: 8px;
}

#reset-password label {
text-align: justify;
  font-family: arial;
  font-size: 14px;
  color: #474a4a;
  font-weight: bold;
}

.required {
  color: #ff0a0a85 !important;
}


#reset-password input {
height: 36px;
  border: 1px #c5c3c8 solid;
  margin: 5px 0px;
  border-radius: 8px;
  background-color: transparent !important;
}


#reset-password-btn {
height: 40px;
  background: #03ab8a;;
  font-size: 16px;
  font-weight: blod;
  color: #000;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
  color: white;
}


#reset-password-btn :hover {
background-color: #bfee9c;
color: #000;
}

/* Masquer les messages par défaut */
/* Masquer les messages par défaut */
.woocommerce-password-hint,
#password_strength {
    display: none !important;
}

/* Barre de force */
#password-strength-bar-wrapper {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

#password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: red;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

/* Message dynamique */
.password-strength {
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.password-strength.very-weak { color: #d63638; }
.password-strength.weak { color: #e67e22; }
.password-strength.medium { color: #f1c40f; }
.password-strength.strong { color: #28a745; }
.password-strength.very-strong { color: #007bff; }

#reset-password-message {
  transition: opacity 0.5s ease;
  opacity: 1;
}
#reset-password-message.hide {
  opacity: 0;
}

/*-----------List req Password-----------------*/

/* Password requirements list */
#password-requirements {
    margin-bottom:0px;
    padding-left: 0px;
    list-style: none;
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: start;
}

#password-requirements li {
    height: 20px;
    margin:8px;
    gap: 1px;
}

/* Icône dans la liste */
#password-requirements .icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* Div contenant la liste */
#password-strength-bar-wrapper {
    /*! margin-top: 4px; */
    height: 6px; /* plus petit */
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

#password-strength-bar {
    height: 6px; /* correspond au wrapper */
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Message de force */
#password-strength-message {
    margin-top: 4px;
    font-weight: bold;
    font-size: 12px;
}

#password-strength-bar-wrapper {
    width: 90%;
    margin: auto;
}


/* --------------------------------------------------*/

/* Container du popup */
.popup-success {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenu du popup */
.popup-success__content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: popup-success__fadeInScale 0.4s ease-out;
}

/* Icone */
.popup-success__icon {
  font-size: 50px;
  margin-bottom: 15px;
}

/* Texte */
.popup-success__text {
  font-size: 18px;
  color: #155724;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Bouton OK */
.popup-success__button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.popup-success__button:hover {
  background-color: #218838;
}

/* Animation */
@keyframes popup-success__fadeInScale {
  0% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------*/

/* Media queries */
@media (max-width: 768px) {
  .auth-banner {
    display: none;
  }
  .auth-content {
  width: 100%;
    max-height: 100vh; 
  }
  .auth-box {
  border-radius: 8px;
  }
}