/* Public business-account split login — extends tenant_login within site shell */

body:has(.tlogin--public) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overscroll-behavior: none;
}

body:has(.tlogin--public) .body-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100vw;
}

body:has(.tlogin--public) #footer.public-site-footer {
    flex-shrink: 0;
    margin-top: 0;
}

.tlogin--public {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100vw;
}

.tlogin--public .tlogin-form .login-card__header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.tlogin--public .tlogin-form .login-card__title {
    font-size: 1.375rem;
    line-height: 1.3;
}

.tlogin--public .login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    body:has(.tlogin--public) {
        overflow: hidden;
        height: 100dvh;
    }

    .tlogin--public {
        overflow: hidden;
    }

    .tlogin--public .tlogin-form {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}
