/* LOGIN */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
}

body > main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 1rem;
  transition: transform 0.2s ease-in-out;
}

body > main form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 0.75rem;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  position: relative;
}

body > main form input[type="text"],
body > main form input[type="password"] {
  padding: 0 25px;
  margin: 0;
  width: 100%;
  height: 38px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
font-weight: normal !important;
}

body > main form input[type="text"]:focus,
body > main form input[type="password"]:focus {
  outline: none;
  border-color: #039be5;
  box-shadow: 0 2px 6px rgba(3, 155, 229, 0.2);
}

body > main form i {
  padding-left: 5px;
  width: 20px;
  height: 38px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain;
  opacity: .8;
}

body > main form input[type="submit"] {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background-color: #039be5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  width: 100%;
}

body > main form input[type="submit"]:hover {
  background-color: #1f77b1;
}

#error {
  margin: 0 0 0.75rem 0;
  color: #b00020;
  background-color: #ffebee;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 400px) {
  body > main {
    transform: translateY(-10%); /* Remonte le bloc de 10% */
  }
  
  body > main form {
    max-width: 300px;
    padding: 1.5rem;
  }
}
