@font-face {
            font-family: AcuminVariableConcept;
            src: url("/static/apex-live/fonts/AcuminVariableConcept.woff2?v=apex-live-v0.0.2") format("woff2");
            font-display: swap;
        }

        @font-face {
            font-family: Montserrat-Medium;
            src: url("/static/apex-live/fonts/Montserrat-Medium.woff2?v=apex-live-v0.0.2") format("woff2");
            font-display: swap;
        }

        :root {
            --apex-gold: #fac463;
            --apex-gold-border: #eeb75c;
            --apex-red: #600200;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            min-height: 100%;
            background: #050000;
        }

        body {
            font-family: Montserrat-Medium, Arial, sans-serif;
            color: #fff;
            -webkit-font-smoothing: antialiased;
        }

        button,
        input {
            font: inherit;
        }

        button {
            border: 0;
            background: transparent;
        }

        [hidden] {
            display: none !important;
        }

        .bg {
            position: fixed;
            inset: 0;
            z-index: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top left;
            pointer-events: none;
        }

        .page_wrapper {
            --panel-width: min(28%, 480px);
            position: relative;
            z-index: 1;
            display: flex;
            min-height: 100vh;
            min-height: 100dvh;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            padding: 24px 0 104px;
            box-sizing: border-box;
        }

        .bar_login_signup_wrapper,
        .bg_container_wrapper {
            display: grid;
            width: var(--panel-width);
            flex-shrink: 0;
        }

        .bar_login_signup,
        .bar_login_signup_text,
        .bg_container,
        .bg_container_content {
            grid-area: 1 / 1;
        }

        .bar_login_signup,
        .bg_container,
        .button_main,
        .button_demo {
            display: block;
            width: 100%;
            user-select: none;
            -webkit-user-drag: none;
        }

        .bar_login_signup_text {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .bar_login_signup_wrapper.login-only .bar_login_signup {
            display: none;
        }

        .bar_login_signup_wrapper.login-only .bar_login_signup_text {
            height: 57px;
            border: 1px solid rgba(250, 196, 99, .75);
            border-radius: 8px;
            background: linear-gradient(90deg, #250000 0%, #7a0b00 54%, #430200 100%);
            box-shadow: inset 0 0 18px rgba(250, 196, 99, .08), 0 0 8px rgba(250, 196, 99, .18);
        }

        .bar_login_signup_wrapper.login-only .headerText {
            width: 100%;
        }

        .headerText {
            width: 50%;
            cursor: pointer;
            color: #fff;
            font-family: Montserrat-Medium, sans-serif;
            font-size: 22px;
            line-height: 57px;
            text-align: center;
            white-space: nowrap;
        }

        .headerText:focus-visible,
        .buttonText:focus-visible,
        .demoText:focus-visible,
        .dropdown_display:focus-visible {
            outline: 2px solid var(--apex-gold);
            outline-offset: 2px;
        }

        .bg_container {
            align-self: stretch;
        }

        .bg_container_content {
            display: flex;
            height: 100%;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 20px 32px;
            box-sizing: border-box;
        }

        .welcomeText {
            display: flex;
            height: 40px;
            align-items: center;
            color: var(--apex-gold);
            font-family: AcuminVariableConcept, sans-serif;
            font-size: 28px;
            font-weight: 700;
        }

        .apex-login-form {
            display: flex;
            width: 100%;
            min-height: 0;
            flex: 1;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .input_wrapper {
            position: relative;
            width: 100%;
        }

        .formContainer,
        .formNumberExt,
        .formNumber {
            width: 100%;
            height: 60px;
            padding: 0 50px;
            border: 1px solid var(--apex-gold-border);
            border-radius: 10px;
            outline: none;
            background: transparent;
            color: var(--apex-gold);
            font-size: 18px;
            box-sizing: border-box;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .formContainer::placeholder {
            color: var(--apex-gold);
            opacity: 1;
        }

        .formContainer:focus {
            border-color: #ffe39f;
            box-shadow: 0 0 0 2px rgba(250, 196, 99, .12);
        }

        .formContainer[aria-invalid="true"] {
            border-color: #ff8d78;
            box-shadow: 0 0 0 2px rgba(255, 103, 82, .14);
        }

        .formContainer:-webkit-autofill,
        .formContainer:-webkit-autofill:hover,
        .formContainer:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--apex-gold);
            -webkit-box-shadow: 0 0 0 1000px #580300 inset;
            transition: background-color 9999s ease-out 0s;
        }

        .input_icon {
            position: absolute;
            top: 50%;
            left: 12px;
            height: 22px;
            pointer-events: none;
            transform: translateY(-50%);
        }

        .input_icon_right {
            position: absolute;
            top: 50%;
            right: 12px;
            height: 22px;
            cursor: pointer;
            transform: translateY(-50%);
            transition: transform .3s ease;
        }

        .input_icon_right.rotated {
            transform: translateY(-50%) rotate(180deg);
        }

        .password-toggle,
        .captcha-refresh {
            position: absolute;
            top: 0;
            right: 0;
            display: flex;
            width: 44px;
            height: 100%;
            align-items: center;
            justify-content: center;
        }

        .password-toggle .input_icon_right,
        .captcha-refresh .input_icon_right {
            position: static;
            transform: none;
        }

        .captcha_img {
            position: absolute;
            top: 50%;
            right: 54px;
            width: 120px;
            height: 44px;
            border-radius: 6px;
            cursor: pointer;
            background: #1c0100;
            object-fit: cover;
            opacity: 0;
            transform: translateY(-50%);
            transition: opacity .15s ease;
        }

        .captcha-wrapper.is-ready .captcha_img {
            opacity: 1;
        }

        .captcha-loading {
            position: absolute;
            top: 50%;
            right: 54px;
            display: none;
            width: 120px;
            height: 44px;
            border-radius: 6px;
            background:
                radial-gradient(circle, rgba(250, 196, 99, .16), transparent 55%),
                #210301;
            transform: translateY(-50%);
        }

        .captcha-loading::after {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 17px;
            height: 17px;
            margin: -10px 0 0 -10px;
            border: 2px solid rgba(250, 196, 99, .2);
            border-top-color: var(--apex-gold);
            border-radius: 50%;
            content: "";
            animation: captcha-spin .75s linear infinite;
        }

        .captcha-wrapper.is-loading .captcha-loading {
            display: block;
        }

        .captcha-wrapper.is-loading .captcha-refresh img {
            animation: captcha-spin .75s linear infinite;
        }

        @keyframes captcha-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .remember_me {
            display: flex;
            align-self: flex-start;
            align-items: center;
            gap: 12px;
            padding: 4px 0;
            cursor: pointer;
        }

        .remember_me input {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            opacity: 0;
        }

        .switch {
            height: 28px;
            cursor: pointer;
        }

        .formText {
            color: var(--apex-gold);
            font-family: Montserrat-Medium, sans-serif;
            font-size: 18px;
        }

        .dropdown_display {
            display: flex;
            align-items: center;
            gap: 10px;
            height: 60px;
            padding: 0 42px;
            border: 1px solid var(--apex-gold-border);
            border-radius: 10px;
            color: var(--apex-gold);
            cursor: pointer;
            font-size: 18px;
            box-sizing: border-box;
        }

        .dropdown_options {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            z-index: 30;
            width: 100%;
            overflow: hidden;
            border: 1px solid var(--apex-gold-border);
            border-radius: 10px;
            background: var(--apex-red);
        }

        .dropdown_option {
            display: flex;
            width: 100%;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            color: var(--apex-gold);
            cursor: pointer;
            font-size: 16px;
            text-align: left;
        }

        .dropdown_option:hover,
        .dropdown_option:focus-visible {
            outline: none;
            background: #2a2a2a;
        }

        .lang_flag {
            width: 24px;
            height: 20px;
            object-fit: cover;
            flex: 0 0 auto;
        }

        .button_bottom_group {
            display: flex;
            width: 100%;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: auto;
            padding-top: 4px;
        }

        .button_main_wrapper,
        .button_demo_wrapper {
            display: grid;
            width: 75%;
            cursor: pointer;
        }

        .button_demo_wrapper {
            width: 40%;
        }

        .button_main,
        .buttonText,
        .button_demo,
        .demoText {
            grid-area: 1 / 1;
        }

        .button_main,
        .button_demo {
            width: 100%;
        }

        .buttonText,
        .demoText {
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .buttonText {
            color: var(--apex-red);
            font-family: AcuminVariableConcept, sans-serif;
            font-size: 30px;
            font-weight: 700;
        }

        .demoText {
            color: var(--apex-gold);
            font-family: AcuminVariableConcept, sans-serif;
            font-size: 20px;
            font-weight: 700;
        }

        .button_main_wrapper:disabled,
        .button_demo_wrapper:disabled {
            cursor: wait;
            opacity: .72;
        }

        .button_main_wrapper.is-loading .buttonText {
            gap: 9px;
            font-size: 26px;
        }

        .button_main_wrapper.is-loading .buttonText::before {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(96, 2, 0, .25);
            border-top-color: var(--apex-red);
            border-radius: 50%;
            content: "";
            animation: captcha-spin .7s linear infinite;
        }

        .button_demo_wrapper.is-loading .demoText {
            gap: 8px;
        }

        .button_demo_wrapper.is-loading .demoText::before {
            width: 12px;
            height: 12px;
            border: 2px solid rgba(250, 196, 99, .22);
            border-top-color: var(--apex-gold);
            border-radius: 50%;
            content: "";
            animation: captcha-spin .7s linear infinite;
        }

        .apex-toast {
            position: fixed;
            top: 24px;
            left: 50%;
            z-index: 100;
            max-width: min(440px, calc(100vw - 32px));
            padding: 12px 18px;
            border: 1px solid rgba(250, 196, 99, .75);
            border-radius: 10px;
            background: rgba(57, 2, 0, .94);
            box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
            color: #ffe3a9;
            font-size: 14px;
            line-height: 1.5;
            text-align: center;
            transform: translateX(-50%);
        }

        @media (min-width: 1025px) and (max-width: 1536px) {
            .page_wrapper {
                --panel-width: min(45%, 480px);
            }

            .formContainer,
            .formNumberExt,
            .formNumber,
            .dropdown_display {
                height: 58px;
                font-size: 17px;
            }
        }

        @media (min-width: 769px) and (max-width: 1536px) {
            .page_wrapper {
                gap: 12px;
            }

            .bg_container_content {
                gap: 5px;
                padding: 16px 24px;
            }

            .apex-login-form {
                gap: 5px;
            }

            .captcha_img {
                width: 120px;
                height: 41px;
            }

            .captcha-loading {
                width: 120px;
                height: 41px;
            }

            .headerText {
                font-size: 20px;
            }

            .welcomeText {
                font-size: 26px;
            }

            .formText {
                font-size: 16px;
            }

            .buttonText {
                font-size: 28px;
            }

            .demoText {
                font-size: 18px;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .page_wrapper {
                --panel-width: min(50%, 480px);
            }

            .formContainer,
            .formNumberExt,
            .formNumber,
            .dropdown_display {
                height: 55px;
                font-size: 16px;
            }
        }

        @media (min-width: 421px) and (max-width: 769px) {
            .page_wrapper {
                --panel-width: min(90%, 400px);
                gap: 10px;
                padding: 20px 0 80px;
            }

            .formContainer,
            .dropdown_display {
                height: 50px;
                padding: 0 42px;
                font-size: 14px;
            }

            .captcha_img {
                right: 44px;
                width: 110px;
                height: 36px;
            }

            .captcha-loading {
                right: 44px;
                width: 110px;
                height: 36px;
            }
        }

        @media (max-width: 420px) {
            .page_wrapper {
                --panel-width: min(85%, 400px);
                gap: 10px;
                padding: 20px 0 80px;
            }

            .formContainer,
            .dropdown_display {
                height: 36px;
                padding: 0 42px;
                font-size: 14px;
            }

            .captcha_img {
                right: 44px;
                width: 100px;
                height: 32px;
            }

            .captcha-loading {
                right: 44px;
                width: 100px;
                height: 32px;
            }

            .dropdown_display {
                height: 40px;
            }
        }

        @media (max-width: 768px) {
            .bg_container_content {
                gap: 4px;
                padding: 12px 16px;
            }

            .apex-login-form {
                gap: 4px;
            }

            .headerText {
                font-size: 18px;
                line-height: 48px;
            }

            .welcomeText {
                height: 34px;
                font-size: 24px;
            }

            .formText {
                font-size: 14px;
            }

            .buttonText {
                font-size: 26px;
            }

            .demoText {
                font-size: 16px;
            }
        }
    
