/* Background animé */
body {
  margin: 0;
  height: 100vh;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(270deg, #6a11cb, #2575fc, #ff6a00);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Card glass effect */
.card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: white;
  margin-bottom: 10px;
}

.subtitle {
  color: #ddd;
  margin-bottom: 25px;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  outline: none;
}

/* Bouton animé */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #ff6a00, #ffb347);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 106, 0, 0.5);
}

/* Lien login */
.login-link {
  margin-top: 15px;
  color: white;
}

.login-link a {
  color: #ffb347;
  text-decoration: none;
}
.password-field {
  position: relative;
  width: 100%;
}
.password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 38px;
}
.password-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  user-select: none;
  line-height: 1;
}
