/* === Base Layout === */
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: block;
}

/* === Container Principale === */
.container {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* gestione testo responsive */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* === Titoli === */
.title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
    word-break: break-word;
}

.brand {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* === Immagini Logo === */
.container img {
    width: 60%;
    max-width: 200px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* === Link === */
.container a {
    color: #0066cc;
    font-size: 0.8rem;
    text-decoration: none;
    word-break: break-word;
}

/* === Form generici === */
form {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="submit"],
form input[type="button"],
form input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* === Checkbox centrato === */
form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* === Pulsanti === */
form input[type="submit"],
form input[type="button"],
.container button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover,
form input[type="button"]:hover,
.container button:hover {
    background-color: #0056b3;
}

/* === Pulsanti standalone === */
.container button {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* === Messaggi flash === */
.flashed-messages {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #856404;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
}

/* === Responsive per schermi piccoli === */
@media (max-width: 1000px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .title {
        font-size: 1rem;
    }

    .container button {
        font-size: 0.9rem;
    }

    .container a {
        font-size: 0.75rem;
    }

    form input[type="submit"],
    form input[type="text"],
    form input[type="email"],
    form input[type="password"] {
        font-size: 0.95rem;
    }
}
