/* Login page background (desktop + mobile) */

body.o_tnc_login_page {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: transparent !important;
}

body.o_tnc_login_page #wrapwrap,
body.o_tnc_login_page #wrapwrap > main {
    background: transparent !important;
    position: relative;
}

/* Fixed layer behind login card */
.o_tnc_login_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    pointer-events: none;
}

body.o_tnc_login_page .o_tnc_login_container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

body.o_tnc_login_page .o_tnc_login_card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    width: 100%;
}

body.o_tnc_login_page .o_tnc_reset_password_link {
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

body.o_tnc_login_page .o_tnc_reset_password_link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    body.o_tnc_login_page .o_tnc_login_container--left {
        justify-content: flex-start;
    }

    body.o_tnc_login_page .o_tnc_login_container--left .o_tnc_login_card {
        margin-left: 5%;
        margin-right: auto;
    }

    body.o_tnc_login_page .o_tnc_login_container--right {
        justify-content: flex-end;
    }

    body.o_tnc_login_page .o_tnc_login_container--right .o_tnc_login_card {
        margin-left: auto;
        margin-right: 5%;
    }
}

@media (max-width: 767.98px) {
    body.o_tnc_login_page .o_tnc_login_container {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        align-items: flex-start;
    }

    body.o_tnc_login_page .o_tnc_login_card {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }
}
