/* Auth split — phones & small tablets only.
   Desktop (1024px+) keeps the locked split, cube pane, and form chrome. */

.auth-split-logo-mobile {
    display: block;
}

.auth-split-logo-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .auth-split-logo-mobile {
        display: none;
    }

    .auth-split-logo-desktop {
        display: block;
    }
}

@media (max-width: 1023.98px) {
    html.auth-split-html {
        height: auto !important;
        min-height: 100dvh;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.auth-split-body {
        display: block !important;
        height: auto !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .auth-split-pad {
        display: block !important;
        min-height: 100dvh;
        padding: 0 !important;
    }

    .auth-shell-frame {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100dvh;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .auth-split-visual {
        display: none !important;
    }

    .auth-split-form-shell {
        display: flex;
        width: 100%;
        height: auto !important;
        min-height: 100dvh;
        overflow: visible !important;
        flex: none;
    }

    .auth-split-form-main {
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
        padding-top: max(1.15rem, env(safe-area-inset-top, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
        padding-bottom: 0.75rem;
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    }

    .auth-split-logo-link {
        padding: 0.2rem 0.35rem;
    }

    .auth-split-form-shell .ims-brand-tagline {
        display: block;
        margin-top: 0.35rem;
    }

    .auth-split-logo-mobile .ims-brand-wordmark {
        text-align: center;
    }

    body[data-auth-page="login"] .auth-split-form-main {
        flex: 1 1 auto;
        justify-content: center;
        padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
        padding-bottom: 1.25rem;
    }

    body[data-auth-page="login"] .auth-split-form-copy {
        flex: none;
        margin-top: 0.75rem;
    }

    .auth-split-home-link {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
        justify-content: center;
        margin-top: 0.15rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .auth-split-form-slot {
        flex: none;
        overflow: visible !important;
    }

    .auth-split-form-copy {
        min-height: auto;
        flex: 1 1 auto;
    }

    .auth-split-subheading {
        display: block;
        overflow: visible;
        font-size: 0.8125rem;
        line-height: 1.45;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .auth-split-copy {
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
        font-size: 0.6875rem;
    }

    .auth-split-form-shell .auth-glass-field,
    .auth-split-form-shell select.auth-glass-field,
    .auth-split-form-shell input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) {
        min-height: 2.75rem;
        font-size: 1rem;
        line-height: 1.4;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .auth-split-form-shell .auth-cta-primary,
    .auth-split-form-shell .auth-cta-secondary {
        min-height: 2.75rem;
        font-size: 0.9375rem;
    }

    .auth-register-step-actions {
        flex-direction: column-reverse;
    }

    .auth-register-step-actions > * {
        width: 100%;
        flex: none;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .auth-split-pad {
        padding: 1.25rem !important;
    }

    .auth-shell-frame {
        min-height: calc(100dvh - 2.5rem);
        overflow: visible !important;
        border: 1px solid rgb(226 232 240) !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 6px -1px rgb(15 23 42 / 0.08) !important;
    }

    .auth-split-form-shell {
        min-height: calc(100dvh - 2.5rem);
    }
}
