/* Pagine di accesso (login e recupero password) */

@font-face { font-family: "Montserrat"; src: url("../fonts/accesso/montserrat.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../fonts/accesso/ubuntu-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../fonts/accesso/ubuntu-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../fonts/accesso/ubuntu-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --accesso-rosso: #cf2638;
    --accesso-rosso-testo: #ff3b46;
    --accesso-scheda: #2b2f34;
    --accesso-verde: #22a046;
    --accesso-link: #3d8bfd;
}

html, body { min-height: 100%; }

body.accesso {
    margin: 0;
    color: #fff;
    font-family: "Ubuntu", "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #1a1210;
    background-image:
        linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .38)),
        url("../img/accesso-sfondo.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Testata: marchio a sinistra, motto a destra ---- */
.accesso-testata {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 34px 54px 0;
}

.marchio { display: inline-block; text-decoration: none; color: #fff; }
.marchio-nome {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 74px;
    line-height: 1;
    letter-spacing: .035em;
    white-space: nowrap;
}
.marchio-nome svg { height: .7em; width: auto; vertical-align: baseline; margin: 0 .02em 0 .01em; }
.marchio-sotto {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .2em;
    margin-top: 16px;
    white-space: nowrap;
}
.marchio-valori {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .32em;
    margin-top: 18px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    display: flex;
    justify-content: space-between;
    gap: 1.2em;
    white-space: nowrap;
}

.motto {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.38;
    letter-spacing: .2em;
    text-align: left;
    margin-top: 2px;
}
.motto::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    margin-top: 16px;
}

/* ---- Centro: la scheda di accesso ---- */
.accesso-centro {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px 22px;
}
.accesso-centro > .container { max-width: 560px; }
/* le viste usano ancora la riga a tutta altezza del vecchio layout */
.accesso-centro .vh-100 { height: auto !important; }
.accesso-centro .col-md-6 { flex: 0 0 100%; max-width: 100%; }

.accesso .card {
    background: var(--accesso-scheda) !important;
    border: 0 !important;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    overflow: hidden;
}
.accesso .card-header {
    background: var(--accesso-rosso) !important;
    border: 0;
    padding: 6px 20px 5px;
    text-align: center;
}
.accesso .card-header h3 { font-weight: 700; font-size: 26px; margin: 4px 0; }
.accesso-titolo { font-weight: 700; font-size: 44px; line-height: 1; margin: 0; letter-spacing: .005em; }
.accesso-sottotitolo { font-size: 19.5px; line-height: 1.2; margin: 0; }

.accesso .card-body { padding: 18px 22px 12px; }
.accesso .form-group { margin-bottom: 14px; }
.accesso label { font-size: 16px; margin-bottom: 6px; }
.accesso .form-control { height: 38px; border-radius: 3px; font-size: 15.5px; }
.accesso .form-control::placeholder { color: #8a9099; }
.accesso .form-check-label { font-size: 16px; }
.accesso .btn-success {
    background: var(--accesso-verde);
    border-color: var(--accesso-verde);
    font-weight: 500;
    font-size: 19px;
    padding: 6px 12px;
    border-radius: 3px;
    margin-top: 22px !important;
}
.accesso .card-footer { background: transparent; border: 0; padding: 12px 0 0 !important; }
.accesso .forgot-password, .accesso a.forgot-password { color: var(--accesso-link); font-size: 16px; }
.accesso .invalid-feedback { font-size: 14px; color: #ff8a8f; }

/* ---- Avviso sulla protezione dei dati ---- */
.accesso-avviso {
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 930px;
    width: calc(100% - 32px);
    margin: 0 auto 10px;
    padding: 15px 26px 15px 30px;
    background: rgba(12, 13, 16, .86);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
}
.accesso-avviso svg { flex: 0 0 auto; width: 78px; height: auto; }
.accesso-avviso-testo {
    border-left: 1px solid rgba(255, 255, 255, .28);
    padding-left: 30px;
    font-size: 19.5px;
    line-height: 1.5;
    margin: 0;
}
.accesso-avviso-testo strong { color: var(--accesso-rosso-testo); font-weight: 400; }

.accesso-proprieta {
    text-align: right;
    font-weight: 500;
    font-size: 17px;
    padding: 0 18px 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

/* ---- Schermi piu' piccoli ---- */
@media (max-width: 991px) {
    .accesso-testata { padding: 26px 28px 0; }
    .marchio-nome { font-size: 48px; }
    .marchio-sotto { font-size: 10px; margin-top: 12px; }
    .marchio-valori { font-size: 11px; margin-top: 12px; }
    .motto { font-size: 16px; }
    .accesso-avviso-testo { font-size: 17px; }
}

@media (max-width: 767px) {
    body.accesso {
        background-image:
            linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .45)),
            url("../img/accesso-sfondo-mobile.jpg");
        background-attachment: scroll;
    }
    .accesso-testata { justify-content: center; padding: 22px 16px 0; }
    .motto { display: none; }
    .marchio-nome { font-size: 40px; }
    .marchio-sotto { font-size: 8.5px; margin-top: 10px; }
    .marchio-valori { font-size: 9.5px; margin-top: 10px; padding: 7px 0; }
    .accesso-titolo { font-size: 34px; }
    .accesso-sottotitolo { font-size: 16px; }
    .accesso-avviso { gap: 14px; padding: 14px 16px; }
    .accesso-avviso svg { width: 48px; }
    .accesso-avviso-testo { font-size: 14px; padding-left: 14px; }
    .accesso-proprieta { text-align: center; font-size: 13px; }
}
