/* ✅ Empêche le débordement causé par le padding + width */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom right, #4AD1FF, #B2EBF2);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background-color: #ffffff;
  padding: 2.5em 1.5em; /* ✅ Réduit légèrement le padding horizontal */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

h1 {
  margin-bottom: 1.5em;
  font-size: 1.8rem;
  color: #4CAF50;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.9em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: box-shadow 0.3s;
}

input:focus {
  outline: none;
  box-shadow: 0 0 5px #4AD1FF;
}

button {
  padding: 0.8em 2em;
  background-color: #4CAF50;
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.back-link {
  position: absolute;
  top: 1em;
  left: 1em;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4AD1FF;
  transition: color 0.3s;
}

.back-link:hover {
  color: #007ea7;
}

.forgot-password {
  margin-top: 1em;
  text-align: center;
}

.forgot-password a {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password a:hover {
  color: #4CAF50;
}

.warning {
  background: #fff3cd;
  color: #856404;
  padding: 0.8em 1em;
  margin-bottom: 1.2em;
  border-radius: 6px;
  border: 1px solid #ffeeba;
  font-size: 0.95rem;
}
