/* Loaded after the selected scene layout so usability rules always win. */
@media (min-width: 768px) and (max-height: 820px) {
    .hmys-page:not(.hmys-skin-classic) .hmys-auth-form .form-signin {
        transform: scale(.9) !important;
        transform-origin: center;
    }

    .hmys-page-register:not(.hmys-skin-classic) .registration-bg,
    .hmys-page-register:not(.hmys-skin-classic) .hmys-auth-layout {
        min-height: calc(100vh - 181px);
    }
}

@media (max-width: 767px) {
    .hmys-page-chat .hmys-chat-stage {
        padding: 0 !important;
    }

    .hmys-page-chat .row-container {
        width: 100% !important;
        height: 72vh;
        min-height: 520px;
        margin: 0 !important;
    }

    .hmys-page-chat .chat-container {
        max-width: none !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        transform: none !important;
    }

    .hmys-page-chat .chat-header,
    .hmys-page-chat .chat-messages,
    .hmys-page-chat .chat-input,
    .hmys-page-chat .preset-buttons {
        margin-right: 0 !important;
        margin-left: 0 !important;
        border-radius: 0 !important;
    }

    .hmys-page-chat .chat-input {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hmys-page-chat #message-input {
        flex-basis: 100%;
    }

    .hmys-page-chat #analysisImage,
    .hmys-page-chat #send-button {
        width: auto;
        min-width: 92px;
        margin-left: 0;
    }

    .hmys-page:not(.hmys-skin-classic) .hmys-auth-layout {
        display: block !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    .hmys-page:not(.hmys-skin-classic) .hmys-auth-visual,
    .hmys-page:not(.hmys-skin-classic) .hmys-scene-narrative,
    .hmys-page:not(.hmys-skin-classic) .hmys-scene-frame,
    .hmys-page:not(.hmys-skin-classic) .hmys-scene-emblem,
    .hmys-page:not(.hmys-skin-classic) .hmys-scene-foreground {
        display: none !important;
    }

    .hmys-page:not(.hmys-skin-classic) .hmys-auth-form .form-signin {
        width: 100% !important;
        max-width: 390px !important;
        margin: 20px auto !important;
        border-radius: 16px !important;
        outline: 0 !important;
        transform: none !important;
    }
}
