/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background-color: #fff;
}

/* --- CONTENEUR PRINCIPAL --- */
.containerr {
  display: flex;
  height: 100vh;
  flex-wrap: nowrap;
}

/* GAUCHE ET DROITE - 50% chacun par défaut */
.left, .right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Couleur fond gauche */
.left {
  background-color: #F5F7FA;
  text-align: center;
}

/* TEXTE GAUCHE */
.left label:nth-child(2) {
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 8px;
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.left label:nth-child(3) {
  color: #525866;
}

/* FORMULAIRE DROITE */
.right {
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Form layout */
.inputs {
  width: 85%;
  max-width: 620px;
  margin: 0 auto;
}

/* Styles inputs et labels */
.lblemailndpass {
  font-size: large;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}

.inputlogin {
  padding: 10px;
  border-radius: .25rem;
  border: 1px solid #b1b1b1;
  margin-bottom: 10px;
  width: 100%;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

  input {
    border: 2px solid gray;
    padding: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
  }
  input.invalid {
    border-color: red;
  }
  input.valid {
    border-color: green;
  }
/* Bouton login */
.buttonlogin {
  width: 100%;
  background-color: rgba(83, 252, 24, 1);
  border: none;
  padding: 10px;
  border-radius: 0.25rem;
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttonlogin:hover {
  background-color: rgba(50, 200, 10, 1);
}

/* Erreur */
.error-message {
  color: red;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Soustitres */
.title {
  color:  #19283a;
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
  text-align: center;
}

.soustitle {
  font-size: 19px;
  letter-spacing: 1px;
  margin-bottom: 35px;
  color: #525866;
  text-align: center;
}

/* Checkbox styles */
.Remember {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Signup link */
.signup {
  margin: 15px 0;
  text-align: center;
  font-size: 14px;
}

#loginForm {
    width: 90%;
}
.sousformelements {
    display: flex;
    flex-direction: column;
        align-items: center;
}

/* --- MEDIA QUERIES RESPONSIVE --- */

/* Tablettes et écrans moyens */
@media (max-width: 992px) {
  .containerr {
    flex-wrap: wrap;
    height: auto;
  }
  .left, .right {
    width: 100%;
    padding: 30px 20px;
  }
  .right {
    box-shadow: none;
  }
}

/* Petits mobiles */
@media (max-width: 576px) {
  .left label:nth-child(2) {
    font-size: 20px;
  }
  .left label:nth-child(3) {
    font-size: 14px;
  }
  .title {
    font-size: 20px;
  }
  .soustitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .buttonlogin {
    font-size: 16px;
    padding: 12px;
  }
  .inputs {
    width: 100%;
  }
}
