/* ================================
   LOGIN – Gradient animato + particles
   ================================ */

body {
  margin: 0;
  padding: 0;
  height: 100vh;

  background: linear-gradient(
    45deg,
    #ffffff,
    #ffb6c1,
    #f0e68c,
    #7fffd4,
    #1e90ff
  );
  background-size: 600% 600%;
  animation: gradient 10s ease infinite;

  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden;
  position: relative;
}

/* Animazione gradient */
@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particelle */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Contenitore login */
.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 15px;

  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  color: #ffffff;

  width: 90%;
  max-width: 400px;
  z-index: 1;
}

/* Logo */
.logo-img {
  max-width: 180px;
  display: block;
  margin: 0 auto 2rem;
}

/* Titolo */
.login-container h1,
.login-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
  color: #ffffff;
}

/* Input */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;

  border: none;
  border-radius: 5px;

  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 16px;
}

.login-container input::placeholder {
  color: #cccccc;
}

.login-container input:focus {
  background-color: rgba(255,255,255,0.25);
  outline: none;
}

/* Label / remember me */
.login-container label,
.remember-me label {
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #ffffff;
}

.login-container input[type="checkbox"] {
  margin-right: 8px;
}

/* Pulsante */
.login-container button[type="submit"] {
  width: 100%;
  padding: 12px;

  background-color: #00aaff;
  color: #ffffff;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;

  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button[type="submit"]:hover {
  background-color: #007acc;
}

/* Messaggio errore */
.error,
.error-message {
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;

  color: #ffffff;
  background-color: #d9534f;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 25px;
  }

  .login-container h1,
  .login-container h2 {
    font-size: 20px;
  }
}
