@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400&display=swap');

* {
    box-sizing: border-box; /* Inclut padding/border dans largeur */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    background-color: #f4f4f4;
}

.container_login {
    display: flex;
    max-width: 100%;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    height: 100vh; /* plein écran hauteur pour l'exemple */
}

.left, .right {
    width: 50%;          /* largeur fixe 50% */
    box-sizing: border-box;  /* padding inclus dans largeur */
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.right {
    padding: 40px 40px 0 40px;
    padding-top: 60px; /* descend le contenu */
    
    display: flex;
    flex-direction: column;
    align-items: center; /* centre horizontalement */
    justify-content: flex-start; /* haut */
}
.right h1 {
    margin-top: 10%;
    font-size: 32px;
    color: #f07276;
    text-align: center;
    margin-bottom: 25px;
}

.right h2 {
    font-size: 18px;
    color: rgb(133, 133, 133);
    text-align: center;
    margin-bottom: 40px;
}

form {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
}
.form-group label, .remember-me label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
}



input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 40px 10px 15px; /* espace pour l'œil à droite */
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

#togglePassword {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-20%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#togglePassword img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

#togglePassword:hover img {
  opacity: 1;
}


.btn-submit {
  width: 60%;
  padding: 12px;
  background-color: #f07276;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #d55c60;
}


@media (max-width: 768px) {
  .container_login {
    flex-direction: column;
    height: auto;
  }

  .left {
    width: 100%;
  }

  .right {
    width: 100%;
    padding: 20px;
  }

  .right h1 {
    font-size: 26px;
    margin-top: 30px;
  }

  .right h2 {
    font-size: 16px;
    margin-bottom: 25px;
  }

  form {
    width: 90%;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 0.9rem;
    padding: 10px 35px 10px 15px;
  }

  .btn-submit {
    width: 80%;
    font-size: 0.95rem;
  }
}