/* =========================
   LOGOUT CONTAINER
========================= */
.t-PageBody--login .t-Login-container {
    width: 90%;
    min-width: 520px;
    max-width: 850px;
    height: 80%;
    margin: 10% auto;
    background: white;
    padding: 35px 45px; /* meno aria inutile */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    border: 5px solid #033c6a;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* =========================
   RESET WRAPPER APEX CHE ROMPE FLEX
========================= */
.t-Login-containerBody .container,
.t-Login-containerBody .row,
.t-Login-containerBody .col {
    height: auto !important;
    min-height: 0 !important;
}

/* =========================
   BODY LOGOUT
========================= */
html, body {
    height: 100%;
    overflow: hidden;
}

.t-PageBody--login {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

/* =========================
   BODY CONTAINER FLEX CENTER
========================= */
.t-Login-containerBody {
    flex: 1;
    display: flex;
}

.t-Login-containerBody > .container {
    margin: auto; /* vero centro verticale */
    width: 100%;
}

.t-Login-containerBody {
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================
   LOGOUT CENTER LAYOUT
========================= */
.W1Q_LOGOUT_CENTER {
    text-align: center;
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Titolo logout */
.W1Q_LOGOUT_TITLE {
    color: #033c6a !important;
    font-size: 2rem;
    font-weight: 500;
    opacity: .7;
    letter-spacing: .02em;
    margin: 0;
}

/* Logo wrapper */
.W1Q_LOGOUT_LOGO_WRAP {
    text-align: center;
    width: 100%;
}

/* Logo */
.W1Q_LOGOUT_LOGO {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Icona logout CTA */
.W1Q_LOGOUT_ICON {
    font-size: 3.5rem;
    color: #033c6a;
    transition: transform .2s ease, color .2s ease;
}

.W1Q_LOGOUT_ICON:hover {
    transform: scale(1.15);
    color: #1e85d8;
}

/* =========================
   PREREG FALLITA
========================= */
.W1Q_PREREG_ERROR {
    color: #d70000 !important;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    line-height: 1;
}

.W1Q_BTN_HOME {
    background-color: #1e85d8 !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

.W1Q_BTN_HOME:hover {
    background-color: #033c6a !important;
    transform: translateY(-2px);
}

.W1Q_PREREG_CENTER {
    gap: 2.5rem;
}

/* =========================
   FOOTER LOGOUT
========================= */
.t-Login-containerFooter {
    flex-shrink: 0;
}

.W1Q_FOOTER_LOGOUT {
    border-top: 1px solid #00000014;
    padding: 10px;
    text-align: center;
    font-size: .8rem;
}

.W1Q_FOOTER_LOGOUT_CONTAINER {
    margin-bottom: 3px;
}

.W1Q_FOOTER_LOGOUT a {
    color: inherit;
    text-decoration: none;
}

.W1Q_FOOTER_LOGOUT a:hover {
    text-decoration: underline;
}

/* =========================
   BACKGROUND / CAROUSEL
========================= */
#W1Q_CAROUSEL {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}

.W1Q_CAROUSEL_IMG {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.W1Q_CAROUSEL_IMG_1 { background-image: url('/i/w1q_2026/img/login_carousel/1.jpg'); }
.W1Q_CAROUSEL_IMG_2 { background-image: url('/i/w1q_2026/img/login_carousel/2.jpg'); }
.W1Q_CAROUSEL_IMG_3 { background-image: url('/i/w1q_2026/img/login_carousel/3.jpg'); }
.W1Q_CAROUSEL_IMG_4 { background-image: url('/i/w1q_2026/img/login_carousel/4.jpg'); }
.W1Q_CAROUSEL_IMG_5 { background-image: url('/i/w1q_2026/img/login_carousel/5.jpg'); }

#W1Q_CAROUSEL_MASK {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
    height: 100vh;
}

.active { 
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.not_active { 
    display: none;
    opacity: 0;
}

/* =========================
   ALERT MESSAGE
========================= */
.t-Body-alert .t-Alert {
    margin-bottom: 1rem;
}

/* =========================
   SCROLLBAR CUSTOM
========================= */
.t-Login-containerBody::-webkit-scrollbar {
    width: 8px;
}

.t-Login-containerBody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.t-Login-containerBody::-webkit-scrollbar-thumb {
    background: #1e85d8;
    border-radius: 10px;
}

.t-Login-containerBody::-webkit-scrollbar-thumb:hover {
    background: #033c6a;
}

/* =========================
   RESPONSIVE TABLET
========================= */
@media (max-width: 1110px) {
    .t-PageBody--login .t-Login-container {
        width: 80%;
        min-width: unset;
        max-width: unset;
        padding: 30px 30px;
    }

    .W1Q_LOGOUT_LOGO {
        width: 80%;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {
    .t-PageBody--login .t-Login-container {
        width: 88%;
        padding: 20px 18px;
        border-radius: 15px;
        border-width: 4px;
    }

    .W1Q_LOGOUT_LOGO {
        width: 80%;
    }

    .W1Q_FOOTER_LOGOUT {
        font-size: 0.7rem;
        padding: 8px 5px;
    }

    .W1Q_FOOTER_LOGOUT img {
        height: 16px !important;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
    .t-PageBody--login .t-Login-container {
        width: 85%;
        padding: 18px 15px;
        border-width: 3px;
    }

    .W1Q_LOGOUT_LOGO {
        width: 80%;
    }
}

/* =========================
   LOW HEIGHT VIEWPORT
========================= */
@media (max-height: 700px) {
    .t-PageBody--login .t-Login-container {
        max-height: 98vh;
    }

    .W1Q_LOGOUT_LOGO {
        width: 80%;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .t-PageBody--login .t-Login-container {
        max-height: 96vh;
        padding: 10px 25px;
        width: 85%;
    }

    .W1Q_LOGOUT_LOGO {
        width: 80%;
    }
}
