/* General Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(115, 115, 189); /* Colore di sfondo per l'intero body */
    display: flex;
    justify-content: center; /* Centra il contenitore orizzontalmente */
    align-items: center; /* Centra il contenitore verticalmente */
    min-height: 100vh; /* Prende tutta l'altezza della finestra */
}

/* Main Container */
main {
    padding: 20px;
    background: white;
    width: 100%;
    max-width: 400px; /* Imposta una larghezza fissa per il contenitore */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    box-sizing: border-box; /* Assicura che il padding non aumenti la larghezza totale */
}

/* Form Accesso */
form.accesso {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px; /* Assicura che il form abbia sempre la stessa larghezza */
    box-sizing: border-box; /* Assicura che il padding non influisca sulla larghezza */
}

form.accesso input[type="text"],
form.accesso input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form.accesso input[type="submit"] {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    font-weight: bold;
}

form.accesso input[type="submit"]:hover {
    background: #0056b3;
}

/* Centra il contenitore del form */
.centra {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    .logo img {
        width: 60px;
    }

    .user-icon {
        width: 30px;
        height: 30px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 15px;
        margin: 10px;
        width: auto;
    }

    form.accesso {
        padding: 20px;
    }
}
