/* ============================================================
   accesso.css - Pagine di accesso (login, password dimenticata, nuova password)
   Stessi colori del gestionale: marrone Va.Ila, accento arancio, verde per le azioni.
   ============================================================ */
:root {
    --marrone: #665844;
    --marrone-scuro: #4a3f31;
    --arancio: #EE9C55;
    --verde: #1F6B1F;
    --verde-scuro: #185518;
    --testo: #2f2a24;
    --grigio: #6f675d;
    --bordo: #ddd5ca;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--testo);
    background:
        linear-gradient(160deg, rgba(102, 88, 68, .94) 0%, rgba(74, 63, 49, .97) 100%),
        url("../images/pictures/20s.jpg") center / cover no-repeat fixed;
    background-color: var(--marrone);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.accesso {
    width: 100%;
    max-width: 420px;
}
.accesso-logo {
    text-align: center;
    margin-bottom: 22px;
}
.accesso-logo img {
    width: 220px;
    max-width: 70%;
    height: auto;
}
.accesso-logo p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .85);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    letter-spacing: .3px;
}
.accesso-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 26px 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.accesso-card h1 {
    margin: 0 0 6px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--marrone);
}
.accesso-card .sottotitolo {
    margin: 0 0 20px;
    color: var(--grigio);
    font-size: 14px;
    line-height: 1.45;
}
.accesso-card .linea {
    width: 42px;
    height: 3px;
    border-radius: 2px;
    background: var(--arancio);
    margin: 0 0 18px;
}
.campo { margin-bottom: 16px; }
.campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--testo);
}
.campo input {
    width: 100%;
    padding: 13px 14px;
    font-size: 16px;             /* 16px: niente zoom automatico su iPad */
    border: 2px solid var(--bordo);
    border-radius: 10px;
    background: #fff;
    color: var(--testo);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.campo input:focus {
    outline: none;
    border-color: var(--marrone);
    box-shadow: 0 0 0 3px rgba(102, 88, 68, .15);
}
.campo-password { position: relative; }
.campo-password input { padding-right: 52px; }
.mostra-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--grigio);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
}
.btn-accesso {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: var(--verde);
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 107, 31, .25);
    transition: background .2s ease, transform .1s ease;
}
.btn-accesso:hover { background: var(--verde-scuro); }
.btn-accesso:active { transform: scale(.98); }
.link-secondario {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--marrone);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.link-secondario:hover { text-decoration: underline; }
.avviso {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
}
.avviso-errore { background: #fdecea; color: #a12622; border: 1px solid #f5c2bf; }
.avviso-ok { background: #e9f5e9; color: #1d5e1d; border: 1px solid #bfe0bf; }
.avviso ul { margin: 6px 0 0 18px; padding: 0; }
.regole {
    margin: -6px 0 16px;
    font-size: 13px;
    color: var(--grigio);
}
.piede {
    text-align: center;
    margin-top: 18px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}
@media (max-width: 380px) {
    .accesso-card { padding: 22px 18px 20px; }
}
