/* 🌈 Sfondo animato come la dashboard */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    background: linear-gradient(45deg, #fff, #ffb6c1, #f0e68c, #7fffd4, #1e90ff);
    background-size: 600% 600%;
    animation: gradient 10s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

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

/* 🎇 Particles full screen */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 📦 Card login centrata */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 1;
}

/* 🖼️ Logo centrato e ridotto */
.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

/* 🏷️ Etichette */
form label {
    text-align: left;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* 📝 Input */
form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 👁️ Password toggle */
.input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

form input[type="password"] {
    padding-right: 40px;
}

/* ✅ Checkbox Ricordami */
form label input[type="checkbox"] {
    margin-right: 8px;
}

/* 🔘 Bottone login */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0073e6;
}

/* ⚠️ Messaggi */
.error-message, .success-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.error-message {
    background-color: #ffe5e5;
    color: #d32f2f;
}

.success-message {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* 📱 Mobile */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .toggle-password {
        right: 10px;
    }
}
