/* Stile generale */
body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
}

/* Contenitore login */
.login-container {
    max-width: 400px !important;
    margin: auto !important;
}

.login-card {
    padding: 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
}


/* Titolo */
h2 {
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

/* Pulsanti */
.btn-primary {
    background: #007bff;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Input */
.form-control {
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

/* Messaggi di errore */
.alert {
    font-size: 14px;
    padding: 10px;
}


/* Contenitore password con icona */
.password-container .input-group {
    position: relative;
}

.toggle-password {
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

.toggle-password:hover {
    color: #333;
}

@media (max-width: 768px) {
    body {
        background-color: #f4f4f4;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin: 0;
        overflow: hidden;
    }
    
    /* Contenitore login */
    .login-container {
        max-width: 400px !important;
        margin: auto !important;
    }
    
    .login-card {
        padding: 20px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
    }
    
    
    /* Titolo */
    h2 {
        margin-bottom: 20px;
        font-weight: bold;
        color: #333;
    }
    
    /* Pulsanti */
    .btn-primary {
        background: #007bff;
        border: none;
    }
    
    .btn-primary:hover {
        background: #0056b3;
    }
    
    .btn-secondary {
        background: #6c757d;
        border: none;
    }
    
    .btn-secondary:hover {
        background: #5a6268;
    }
    
    /* Input */
    .form-control {
        border-radius: 5px;
        padding: 10px;
        font-size: 16px;
    }
    
    /* Messaggi di errore */
    .alert {
        font-size: 14px;
        padding: 10px;
    }
    
    
    /* Contenitore password con icona */
    .password-container .input-group {
        position: relative;
    }
    
    .toggle-password {
        cursor: pointer;
        font-size: 18px;
        color: #555;
    }
    
    .toggle-password:hover {
        color: #333;
    }
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}