/*-----------
Regroupe les styles de 
la page homePage
-----------*/


.connexion-form{
    display: block;
    height: auto;
}

.reset-password-form{
    display: none;
    height: auto;
}

.connexion-btn {
  width: auto;
  border: none;
  background-color: var(--color-primary);
  margin-top: 10px;
  border-radius: 3%;
  color: #fffefe;
  box-shadow: 0 4px 10px black;
  font-size: 1.5rem;
  padding: 4px;
}

.reset-btn {
  width: auto;
  border: none;
  background-color: var(--color-primary);
  margin-top: 10px;
  border-radius: 3%;
  color: #fffefe;
  box-shadow: 0 4px 10px black;
  font-size: 1.5rem;
  padding: 4px;
}

.reset-btn:hover{
    background-color: var(--color-secondary);
}

.connexion-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.connexion-btn:hover {
  background-color: var(--color-secondary);
}

.link-connexion {
  text-decoration: none;
  color:var(--color-primary);
  cursor: pointer;
}

.link-connexion:hover {
  color: var(--color-secondary);
}


/* Formulaire */

.form-wrapper-connexion {
    position: fixed;
    top: 20%;
    left: 50%;
    width: 40%;
    height: 80%;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;

}

.form-body {
  padding-left: 5%;
  padding-right: 5%;
}



.field {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    display: flex;
    align-items: center;
    width: auto;
}

.field label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.field input {
    flex: 1;
    width: 100%;
    padding: 12px;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.field input:hover {
     border: 2px solid var(--color-primary);
}

.password-field {
    position: relative;
}

.password-input {
    padding: 10px 40px 10px 10px;
}

.eye-btn {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

.eye-btn:hover {
    color: #333;
}



.alert-box{
    position: fixed;
    right: 1rem;
    top: -5rem;
    z-index: 3;
    width: 300px;
    text-align: center;
}

.alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: translate 0.5s forwards;
  }

/*-------------------------------------------- Responsive Design ---------------------------------------------------------------------------------*/
@media (width < 767px) {
    .form-container {
        padding: 1.5rem;
        width: 90%;
    }
     .connexion-btn, .reset-btn {
        font-size: 1.2rem;
        padding: 8px;
    }

    .form-wrapper-connexion {
      width: 90%;
      height: 80%;
    }
}

@media (width > 700px) and (width < 991px) {
  .form-container {
    padding: 1.3rem;
    width: 70%;
  }

  
  .form-wrapper-connexion {
    width: 70%;
    height: 80%;

  }
}

@media (width > 991px) and (width < 1199px) {
  .form-wrapper-connexion {
    width: 60%;
    height: 80%
  }
}


