body {
  font-family: 'Inter', sans-serif;
  background-color: #f1e9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}


.logo {
  max-height: 70px;
  margin-bottom: 1rem;
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

.login-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
}


.login-card input {
  box-sizing: border-box;
}

.login-card button {
  width: 100%;
  background: #222;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* champ mot de passe et oeil*/
.password-wrapper {
  position: relative;
  margin-bottom: 1rem;  /* espace sous le champ */
  width: 100%;       
}

/* 3) L’input lui-même fait 100% de son wrapper */
.password-wrapper input {
  width: 100%;
  box-sizing: border-box;       /* inclut padding + bordure dans les 100% */
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  margin-bottom: 0;             /* géré par le wrapper */
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

/* 4) On replace l’œil en absolute, centré verticalement */
#togglePassword {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  color: #666;
}
#togglePassword:hover {
  color: #333;
}

#togglePassword:hover {
  color: #333;
}

@media (max-width: 600px) {
  #togglePassword {
    position: relative;
  }
  #togglePassword::before {
    content: "";
    position: absolute;
    /* +10% autour de l’icone */
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    /* on s’assure de capter les clics */
    pointer-events: auto;
  }
}
