body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: #fff;
  padding: 50px 40px; /* padding maggiore per desktop */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 450px; /* card più ampia */
  box-sizing: border-box;
}

h2 {
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: #333;
  font-size: 28px; /* titolo più grande */
  letter-spacing: 1px;
}

p {
  text-align: center;
  padding-top: 10px;
}

        a {
            color: #2575fc;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }

form {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

input[type=email] {
  padding: 14px 15px; /* input più alto */
  margin-bottom: 20px;
  border: 1.8px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

input[type=email]:focus {
  border-color: #2575fc;
  box-shadow: 0 0 5px #2575fcaa;
}

.password-wrapper {
  display: flex;
  margin-bottom: 20px;
  border: 1.8px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.password-wrapper:focus-within {
  border-color: #2575fc;
  box-shadow: 0 0 5px #2575fcaa;
}

.password-wrapper input {
  border: none;
  padding: 14px 15px; /* maggiore altezza */
  font-size: 16px;
  flex-grow: 1;
  outline: none;
  border-radius: 0;
}

.toggle-password {
  background: none;
  border: none;
  color: #2575fc;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-left: 1.8px solid #ddd;
  user-select: none;
}

.toggle-password:hover {
  color: #6a11cb;
  background-color: #e0e7ff;
}

input[type=submit] {
  padding: 16px; /* pulsante più grande */
  background-color: #2575fc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

input[type=submit]:hover {
  background-color: #1a52d4;
}

.error {
  color: #d32f2f;
  background-color: #fce4e4;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid #d32f2f;
}

/* RESPONSIVO MOBILE */
@media (max-width: 600px) {
  .login-container {
    padding: 35px 25px;
    max-width: 95%;
  }

  h2 {
    font-size: 24px;
  }

  input[type=email],
  .password-wrapper input {
    padding: 12px 15px;
    font-size: 15px;
  }

  input[type=submit] {
    padding: 14px;
    font-size: 16px;
  }

  .toggle-password {
    font-size: 13px;
    padding: 0 12px;
  }
}
