/* Foris Capital-style auth portal (UI only) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

.auth-page, .auth-page * {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

        * { box-sizing: border-box; margin: 0; padding: 0; }
        html, body { width: 100%; height: 100%; min-height: 100%; overflow: hidden; overscroll-behavior-y: auto; }
        body { height: 100vh; min-height: 100vh; background: #0f172a; color: #ffffff; }

        @media (max-width: 1180px), (hover: none) and (pointer: coarse) {
            html,
            body {
                height: auto !important;
                min-height: 100%;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                overscroll-behavior-y: auto !important;
                touch-action: pan-y;
            }

            body {
                min-height: 100vh;
            }

            .auth-page,
            .auth-shell,
            .auth-content-area {
                height: auto !important;
                min-height: 100vh !important;
                max-height: none !important;
                overflow: visible !important;
            }
        }

        .auth-page { width: 100%; height: 100vh; min-height: 100vh; max-height: 100vh; display: flex; align-items: stretch; justify-content: stretch; overflow: hidden; background: #0f172a; }
        .auth-shell { position: relative; width: 100%; height: 100vh; min-height: 100vh; max-height: 100vh; overflow: hidden; background: #0f172a; }
        .auth-bg-video, .auth-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: url('assets/images/user-auth-bg-image.jpg') center/cover no-repeat; }
        .auth-video-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(297deg, rgba(8, 13, 24, 0.92), rgba(8, 13, 24, 0.16), rgba(8, 13, 24, 0)), radial-gradient(circle at 18% 25%, rgba(46, 144, 250, 0), rgba(0,0,0,0) 28%); }
        .auth-content-area { position: relative; z-index: 2; width: 100%; height: 100vh; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 550px); align-items: center; gap: 34px; padding: 56px; overflow: hidden; }
        .auth-hero-content { max-width: 520px; min-height: 1px; color: #ffffff; }
        .auth-hero-content h1 { font-size: 50px; line-height: 1.02; letter-spacing: -1.8px; margin: 0 0 22px; }
        .auth-hero-content p { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.72; color: rgba(255,255,255,.74); }
        .auth-mini-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
        .auth-mini-points span { padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.10); font-size: 12px; font-weight: 700; }

        .auth-flow-card { position: relative; width: 100%; max-width: 100%; height: min(90vh, 900px); min-height: 0; max-height: min(90vh, 900px); padding: 0; border-radius: 34px; background: linear-gradient(180deg, #293236 19.87%, #353836 65%, #202425); color: #ffffff; box-shadow: 0 28px 70px rgba(0,0,0,.30); backdrop-filter: blur(14px); overflow: hidden; display: flex; flex-direction: column; transition: padding .55s cubic-bezier(.16,1,.3,1); animation: auth-card-fade-in .42s ease-out both; }
        @keyframes auth-card-fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes auth-inner-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        .auth-card-top { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; z-index: 30; padding: 28px 34px 0; width: 100%; box-sizing: border-box; }
        .auth-brand-logo { display: flex; align-items: center; gap: 10px; color: #ffffff; font-size: 20px; font-weight: 800; letter-spacing: -.4px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
        .auth-brand-mark { width: 38px; height: 38px; border-radius: 13px; background: rgba(255,255,255,.95); color: #202425; display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; overflow: hidden; }
        .auth-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
        .auth-brand-wordmark { max-width: min(150px, 42vw); max-height: 38px; width: auto; height: auto; object-fit: contain; display: block; }
        .auth-brand-wordmark--single { max-width: min(190px, 48vw); max-height: 42px; }
        .auth-brand-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .auth-language-pill { width: 115px; max-width: 115px; min-width: 0; height: 34px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
        .auth-inner { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

        .auth-simple-panel { width: 100%; height: 100%; padding: 28px 34px 40px; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
        .auth-simple-panel > .auth-panel-width { max-width: 420px; width: 100%; margin: 0 auto; animation: auth-inner-fade-in .42s cubic-bezier(.16,1,.3,1) .22s both; }
        .auth-risk-text { position: absolute; left: 68px; right: 68px; bottom: 34px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 10.5px; line-height: 1.55; color: rgba(255,255,255,.56); z-index: 15; }

        .auth-ui, .auth-wizard { width: 100%; }
        .form-header { margin-bottom: 30px; }
        .form-header.center, .intro-panel .form-header, .intro-panel .divider { text-align: center; }
        .form-header h1, .form-header h2, .form-header h3 { color: #ffffff; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; margin: 0 0 7px; font-weight: 800; }
        .auth-success-icon { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 18px; display: flex; align-items: center; justify-content: center; line-height: 0; color: #ffffff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 34px rgba(0,0,0,.22); flex: 0 0 auto; }
        .auth-success-icon svg { width: 28px; height: 28px; display: block; flex: 0 0 auto; }
        .form-header.center .auth-success-icon + h1,
        .form-header.center .auth-success-icon + h2,
        .form-header.center .auth-success-icon + h3 { margin-top: 0; }
        .form-header p, .auth-muted, .helper-text { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.5; margin: 0; }
        .auth-ui a, .auth-wizard a { color: #ffffff; font-weight: 800; text-decoration: none; }
        .auth-ui a:hover, .auth-wizard a:hover { opacity: .88; }

        .auth-option-stack { display: grid; gap: 12px; }
        .social-btn, .email-toggle, .submit-btn, .auth-secondary-btn { width: 100%; min-height: 52px; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; text-decoration: none; }
        .social-btn:hover, .email-toggle:hover, .submit-btn:hover, .auth-secondary-btn:hover, .auth-back-btn:hover, .floating-back:hover { transform: translateY(-1px); }
        .social-btn, .auth-secondary-btn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #ffffff; display: flex; align-items: center; justify-content: center; gap: 10px; backdrop-filter: blur(10px); }
        .social-btn:hover, .auth-secondary-btn:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
        .google-logo { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
        .divider { position: relative; text-align: center; margin: 12px 0; }
        .divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: rgba(255,255,255,.14); }
        .divider span { position: relative; background: #303735; padding: 0 12px; color: rgba(255,255,255,.52); font-size: 12px; font-weight: 700; }
        .email-toggle, .submit-btn { border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.95); color: #202425; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px rgba(0,0,0,.22); }
        .submit-btn:disabled, .social-btn:disabled, .email-toggle:disabled, .social-btn[aria-disabled="true"], .email-toggle[aria-disabled="true"] { opacity: .7; cursor: not-allowed; }
        .social-btn.is-loading, .email-toggle.is-loading, .auth-secondary-btn.is-loading { pointer-events: none; opacity: .78; }
        .btn-spinner { width: 18px; height: 18px; margin-right: 8px; animation: auth-spin .85s linear infinite; vertical-align: -3px; flex: 0 0 auto; }
        .auth-redirect-loading-text { display: inline-flex; align-items: baseline; white-space: nowrap; }
        .auth-redirect-loading-dots { display: inline-flex; width: 1.15em; overflow: hidden; justify-content: flex-start; }
        .auth-redirect-loading-dots span { opacity: .2; animation: auth-redirect-dot-pulse 1.2s infinite ease-in-out; }
        .auth-redirect-loading-dots span:nth-child(2) { animation-delay: .18s; }
        .auth-redirect-loading-dots span:nth-child(3) { animation-delay: .36s; }
        @keyframes auth-spin { to { transform: rotate(360deg); } }
        @keyframes auth-redirect-dot-pulse { 0%, 20% { opacity: .2; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-1px); } 70%, 100% { opacity: .2; transform: translateY(0); } }
        .submit-btn.is-loading { pointer-events: none; }
        .auth-back-btn, .floating-back { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.10); color: #ffffff; font-size: 13px; font-weight: 800; cursor: pointer; }
        .auth-back-btn { margin-bottom: 18px; }
        .auth-bottom-link { margin-top: 22px; text-align: center; color: rgba(255,255,255,.68); font-size: 14px; }

        .form-group { margin-bottom: 16px; }
        .form-group label { display: block; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.82); margin-bottom: 6px; }
        .form-control { width: 100%; height: 50px; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 13px !important; padding: 0 13px; outline: none; font-size: 14px; color: #ffffff !important; background: rgba(255,255,255,.08) !important; transition: border .15s ease, box-shadow .15s ease, background .15s ease; }
        .form-control:focus { border-color: rgba(255,255,255,.62) !important; background: rgba(255,255,255,.12) !important; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
        .form-control::placeholder, .phone-input::placeholder { color: rgba(255,255,255,.38) !important; }
        .form-control option { color: #101828; background: #ffffff; }
        .check-row { display: flex; align-items: flex-start; gap: 9px; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.5; margin: 4px 0 20px; }
        .auth-remember-global { margin-top: 18px; }
        .check-row input { margin-top: 2px; width: 15px; height: 15px; accent-color: #fff; }
        .password-field { position: relative; }
        .password-field .form-control { padding-right: 52px; }
        .password-toggle { position: absolute; top: 50%; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.78); display: grid; place-items: center; cursor: pointer; transform: translateY(-50%); transition: background .18s ease, color .18s ease, transform .18s ease; }
        .password-toggle:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-50%) scale(1.03); }
        .password-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .password-toggle .eye-off-icon { display: none; }
        .password-toggle.is-visible .eye-icon { display: none; }
        .password-toggle.is-visible .eye-off-icon { display: block; }
        .auth-error { color: #ffb4a9; font-size: 12px; margin-top: 7px; }

        .code-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
        .code-inputs input { width: 100%; height: 50px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; text-align: center; font-size: 18px; font-weight: 900; outline: none; color: #fff; background: rgba(255,255,255,.08); }
        .code-inputs input:focus { border-color: rgba(255,255,255,.62); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
        .resend-row { margin: 0 0 18px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
        .resend-row button { border: none; background: transparent; color: #fff; font-weight: 900; cursor: pointer; }
        .resend-row button:disabled { color: rgba(255,255,255,.38); cursor: not-allowed; }
        .phone-field { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; padding: 0 12px; background: rgba(255,255,255,.08); }
        .phone-field:focus-within { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
        .country-code-box { display: inline-flex; align-items: center; gap: 6px; min-width: 82px; height: 32px; padding: 0 9px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; }
        .country-flag { font-size: 17px; line-height: 1; }
        .phone-field--split { gap: 8px; padding: 0 10px; }
        .country-code-select-wrap { position: relative; flex: 0 0 126px; max-width: 44%; height: 34px; }
        .country-code-select { width: 100%; height: 34px; border: 0 !important; outline: none; border-radius: 10px; padding: 0 24px 0 34px; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; font-weight: 900; appearance: none; cursor: pointer; }
        .country-code-select option { background: #121826; color: #fff; }
        .country-code-flag-box { position: absolute; inset: 0 auto 0 9px; display: flex; align-items: center; pointer-events: none; }
        .country-code-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
        .country-code-select-wrap:after { content: ''; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; border-right: 2px solid rgba(255,255,255,.7); border-bottom: 2px solid rgba(255,255,255,.7); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
        .phone-input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: none; color: #fff !important; background: transparent !important; font-size: 14px; }
        .phone-help, .password-help { margin-top: 8px; font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.58); }
        .phone-help.is-valid, .password-help.is-valid { color: #8ee6ad; }
        .phone-help.is-error, .password-help.is-error { color: #ffb4a9; }

        /* IMPORTANT: the track stays width:100%; transform percentages are exactly one panel width. */
        .wizard-viewport { width: 100%; height: 100%; flex: 1; min-height: 0; overflow: hidden; contain: layout paint; display: flex; flex-direction: column; }
        .wizard-track { display: flex; width: 100%; height: 100%; min-width: 100%; max-width: 100%; transform: translate3d(0,0,0); transition: transform .72s cubic-bezier(.7,0,.2,1); will-change: transform; }
        .wizard-panel { flex: 0 0 100%; min-width: 100%; max-width: 100%; width: 100%; height: 100%; box-sizing: border-box; padding: 24px 34px 40px; opacity: 0; transform: translateX(34px); transition: opacity .38s ease, transform .62s cubic-bezier(.16,1,.3,1); pointer-events: none; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
        .wizard-panel-inner { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; opacity: 0; transform: translateY(12px); padding-bottom: 8px; }
        .login-wizard:not(.js-ready) .wizard-panel:first-child .wizard-panel-inner,
        .register-wizard:not(.js-ready) .wizard-panel:first-child .wizard-panel-inner,
        .wizard-panel.is-active .wizard-panel-inner {
            animation: auth-inner-fade-in .42s cubic-bezier(.16,1,.3,1) .16s both;
        }
        .wizard-panel.is-before .wizard-panel-inner,
        .wizard-panel.is-after .wizard-panel-inner {
            animation: none;
            opacity: 0;
            transform: translateY(12px);
        }
        .intro-panel { position: relative; padding-top: 24px; justify-content: center; }

        .login-wizard .wizard-panel:nth-child(1),
        .register-wizard .wizard-panel:nth-child(1) { opacity: 1; transform: translateX(0); pointer-events: auto; }

        .auth-flow-card.login-email .login-wizard .wizard-panel,
        .auth-flow-card.step-email .register-wizard .wizard-panel,
        .auth-flow-card.step-code .register-wizard .wizard-panel,
        .auth-flow-card.step-name .register-wizard .wizard-panel,
        .auth-flow-card.step-country .register-wizard .wizard-panel,
        .auth-flow-card.step-password .register-wizard .wizard-panel { opacity: 0; pointer-events: none; }

        .auth-flow-card.login-email .login-wizard .wizard-panel:nth-child(2),
        .auth-flow-card.step-email .register-wizard .wizard-panel:nth-child(2),
        .auth-flow-card.step-code .register-wizard .wizard-panel:nth-child(3),
        .auth-flow-card.step-name .register-wizard .wizard-panel:nth-child(4),
        .auth-flow-card.step-country .register-wizard .wizard-panel:nth-child(5),
        .auth-flow-card.step-password .register-wizard .wizard-panel:nth-child(6) { opacity: 1; transform: translateX(0); pointer-events: auto; }

        .auth-flow-card.login-email .login-wizard .wizard-track { transform: translate3d(-100%,0,0); }
        .auth-flow-card.login-email .login-wizard .wizard-panel:nth-child(1),
        .auth-flow-card.step-email .register-wizard .wizard-panel:nth-child(1),
        .auth-flow-card.step-code .register-wizard .wizard-panel:nth-child(2),
        .auth-flow-card.step-name .register-wizard .wizard-panel:nth-child(3),
        .auth-flow-card.step-country .register-wizard .wizard-panel:nth-child(4),
        .auth-flow-card.step-password .register-wizard .wizard-panel:nth-child(5) { transform: translateX(-34px); }

        .auth-flow-card.step-email .register-wizard .wizard-track { transform: translate3d(-100%,0,0); }
        .auth-flow-card.step-code .register-wizard .wizard-track { transform: translate3d(-200%,0,0); }
        .auth-flow-card.step-name .register-wizard .wizard-track { transform: translate3d(-300%,0,0); }
        .auth-flow-card.step-country .register-wizard .wizard-track { transform: translate3d(-400%,0,0); }
        .auth-flow-card.step-password .register-wizard .wizard-track { transform: translate3d(-500%,0,0); }

        .floating-back { position: absolute; top: 88px; left: 34px; z-index: 17; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: opacity .28s ease, transform .28s ease, visibility .28s ease; }
        .auth-flow-card.step-email .floating-back,
        .auth-flow-card.step-code .floating-back,
        .auth-flow-card.step-country .floating-back { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
        .progress-area { position: absolute; top: 138px; left: 34px; right: 34px; z-index: 16; opacity: 0; visibility: hidden; transform: translateY(-18px); transition: opacity .42s ease, transform .52s cubic-bezier(.16,1,.3,1), visibility .42s ease; }
        .auth-flow-card.step-email .progress-area,
        .auth-flow-card.step-code .progress-area,
        .auth-flow-card.step-name .progress-area,
        .auth-flow-card.step-country .progress-area,
        .auth-flow-card.step-password .progress-area { opacity: 1; visibility: visible; transform: translateY(0); }
        .progress-track { width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
        .progress-fill { width: 20%; height: 100%; border-radius: 999px; background: #fff; transition: width .65s cubic-bezier(.16,1,.3,1); }
        .auth-flow-card.step-code .progress-fill { width: 40%; }
        .auth-flow-card.step-name .progress-fill { width: var(--progress-name, 60%); }
        .auth-flow-card.step-country .progress-fill { width: var(--progress-country, 80%); }
        .auth-flow-card.step-password .progress-fill { width: 100%; }

        /* Login wizard safety layer: same stable movement as register, no track transform. */
        #authFlowCard .login-wizard.wizard-viewport {
            position: relative !important;
            width: 100% !important;
            height: 100% !important;
            overflow: hidden !important;
            contain: layout paint !important;
        }
        #authFlowCard .login-wizard .wizard-track {
            position: relative !important;
            display: block !important;
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            transform: none !important;
            transition: none !important;
            will-change: auto !important;
            overflow: hidden !important;
        }
        #authFlowCard .login-wizard .wizard-panel {
            position: absolute !important;
            top: 0 !important;
            bottom: 0 !important;
            left: 100% !important;
            right: auto !important;
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            flex: none !important;
            box-sizing: border-box !important;
            padding: 24px 34px 40px !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
            transition: left .52s cubic-bezier(.16,1,.3,1), opacity .25s ease, visibility .25s ease !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }
        #authFlowCard .login-wizard .wizard-panel-inner {
            width: min(100%, 420px) !important;
            max-width: 420px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        #authFlowCard .login-wizard:not(.js-ready) .wizard-panel:first-child,
        #authFlowCard .login-wizard .wizard-panel.is-active {
            left: 0 !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: none !important;
        }
        #authFlowCard .login-wizard .wizard-panel.is-before {
            left: -100% !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
        }
        #authFlowCard .login-wizard .wizard-panel.is-after {
            left: 100% !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
        }

        /* Register wizard safety layer: desktop-safe, no track transform. */
        #authFlowCard .register-wizard.wizard-viewport {
            position: relative !important;
            width: 100% !important;
            height: 100% !important;
            overflow: hidden !important;
            contain: layout paint !important;
        }
        #authFlowCard .register-wizard .wizard-track {
            position: relative !important;
            display: block !important;
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            transform: none !important;
            transition: none !important;
            will-change: auto !important;
            overflow: hidden !important;
        }
        #authFlowCard .register-wizard .wizard-panel {
            position: absolute !important;
            top: 0 !important;
            bottom: 0 !important;
            left: 100% !important;
            right: auto !important;
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            flex: none !important;
            box-sizing: border-box !important;
            padding: 24px 34px 40px !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
            transition: left .52s cubic-bezier(.16,1,.3,1), opacity .25s ease, visibility .25s ease !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }
        #authFlowCard .register-wizard .wizard-panel-inner {
            width: min(100%, 420px) !important;
            max-width: 420px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        #authFlowCard .register-wizard:not(.js-ready) .wizard-panel:first-child,
        #authFlowCard .register-wizard .wizard-panel.is-active {
            left: 0 !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: none !important;
        }
        #authFlowCard .register-wizard .wizard-panel.is-before {
            left: -100% !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
        }
        #authFlowCard .register-wizard .wizard-panel.is-after {
            left: 100% !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: none !important;
        }

        .gt-language-box { position: relative; width: 115px; max-width: 115px; min-width: 115px; height: 34px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
        .gt-language-box::after { content: attr(data-gt-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; pointer-events: none; z-index: 5; }
        .gt-language-box .goog-te-gadget-simple { position: relative !important; z-index: 3 !important; }
        .gt-language-box .goog-te-gadget-simple span { opacity: 0 !important; }
        .gt-language-box .gt-google-translate { width: 115px; height: 34px; overflow: hidden; }
        .gt-language-box .goog-te-gadget { font-size: 0 !important; line-height: 0 !important; }
        .gt-language-box .goog-te-gadget-icon, .gt-language-box .goog-te-gadget-simple img { display: none !important; }
        .gt-language-box .goog-te-gadget-simple { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important; padding: 0 8px !important; width: 115px !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; border-radius: 999px !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; overflow: hidden !important; cursor: pointer !important; }
        .goog-te-banner-frame.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
        body { top: 0 !important; }

        .auth-toast { position: fixed !important; top: calc(var(--auth-toast-viewport-top, 0px) + max(22px, env(safe-area-inset-top))) !important; right: calc(var(--auth-toast-viewport-right, 0px) + max(22px, env(safe-area-inset-right))) !important; max-width: min(360px, calc(100vw - 44px)); padding: 14px 16px; border-radius: 14px; color: #ffffff; background: #101828; box-shadow: 0 16px 40px rgba(15,23,42,.18); font-size: 14px; opacity: 0; pointer-events: none; transform: translate3d(0,-10px,0); transition: opacity .2s ease, transform .2s ease; z-index: 2147483000; }
        .auth-toast.show { opacity: 1; transform: translate3d(0,0,0); }
        .swal2-container.swal2-top-end,
        .swal2-container.swal2-top-right {
            top: calc(var(--auth-toast-viewport-top, 0px) + max(22px, env(safe-area-inset-top))) !important;
            right: calc(var(--auth-toast-viewport-right, 0px) + max(22px, env(safe-area-inset-right))) !important;
            z-index: 2147483001 !important;
        }

        .auth-swal-popup {
            border-radius: 28px !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            background: rgba(15, 23, 42, 0.94) !important;
            color: #ffffff !important;
            box-shadow: 0 24px 80px rgba(2, 6, 23, 0.52), inset 0 1px 0 rgba(255,255,255,0.08) !important;
            backdrop-filter: blur(22px);
            padding: 1.75rem !important;
        }

        .auth-swal-title {
            color: #ffffff !important;
            font-weight: 900 !important;
            letter-spacing: -0.02em !important;
        }

        .auth-swal-html {
            color: rgba(203, 213, 225, 0.88) !important;
            font-size: 0.92rem !important;
            line-height: 1.7 !important;
        }

        .auth-swal-actions {
            gap: 0.75rem !important;
        }

        .auth-swal-confirm,
        .auth-swal-cancel {
            min-height: 2.75rem !important;
            border-radius: 0.95rem !important;
            padding: 0.75rem 1.25rem !important;
            font-size: 0.72rem !important;
            font-weight: 900 !important;
            letter-spacing: 0.1em !important;
            text-transform: uppercase !important;
            transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
        }

        .auth-swal-confirm {
            color: #ffffff !important;
            background: var(--accent-primary, #06b6d4) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: 0 14px 30px rgba(6, 182, 212, 0.22) !important;
        }

        .auth-swal-cancel {
            color: rgba(226, 232, 240, 0.86) !important;
            background: rgba(255,255,255,0.055) !important;
            border: 1px solid rgba(255,255,255,0.10) !important;
        }

        .auth-swal-confirm:hover,
        .auth-swal-cancel:hover {
            transform: translateY(-1px);
        }

        @media (max-width: 1024px) {
            input,
            select,
            textarea,
            .form-control,
            .phone-input,
            .country-code-select,
            .select2-search__field,
            [contenteditable="true"] {
                font-size: 16px !important;
            }
        }

        @media (max-height: 720px) {
            .wizard-panel, .auth-simple-panel { justify-content: flex-start; padding-top: 20px; padding-bottom: 32px; }
            .intro-panel { justify-content: flex-start; padding-top: 20px; padding-bottom: 32px; }
            #authFlowCard .login-wizard .wizard-panel,
            #authFlowCard .register-wizard .wizard-panel {
                padding-top: 20px !important;
                padding-bottom: 32px !important;
            }
            .auth-flow-card { height: min(94vh, 900px); max-height: min(94vh, 900px); }
        }
        @media (max-width: 1100px) {
            .auth-content-area {
                grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
                padding: 40px 28px;
                gap: 24px;
            }
        }
        @media (max-width: 920px) {
            .auth-content-area { grid-template-columns: 1fr; padding: 34px 28px; justify-items: center; }
            .auth-hero-content { display: none; }
            .auth-flow-card { width: 100%; max-width: 520px; margin: 0 auto; height: auto; min-height: min(90vh, 760px); max-height: none; }
        }
        @media (max-width: 620px) {
            html,
            body {
                height: auto !important;
                min-height: 100%;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                overscroll-behavior-y: auto !important;
                touch-action: pan-y;
            }
            body { min-height: 100dvh; }
            .auth-page,
            .auth-shell {
                height: auto !important;
                min-height: 100dvh !important;
                max-height: none !important;
                overflow: visible !important;
            }
            .auth-content-area {
                height: auto !important;
                min-height: 100dvh !important;
                padding: 20px 14px;
                align-content: center;
                overflow: visible !important;
            }
            .auth-flow-card {
                width: 100%;
                max-width: 100%;
                height: auto;
                min-height: 0;
                max-height: none;
                padding: 0;
                border-radius: 24px;
            }
            .auth-card-top { padding: 22px 18px 0; gap: 10px; }
            .auth-language-pill { width: 102px; max-width: 102px; }
            .auth-brand-wordmark--single { max-width: min(150px, 42vw); max-height: 36px; }
            .floating-back { top: 78px; left: 18px; }
            .progress-area { top: 124px; left: 18px; right: 18px; }
            .wizard-panel, .auth-simple-panel { padding: 20px 16px 32px; }
            .register-wizard .wizard-panel, .login-wizard .wizard-panel { padding: 20px 16px 32px; }
            #authFlowCard .login-wizard .wizard-panel,
            #authFlowCard .register-wizard .wizard-panel {
                padding: 20px 16px 32px !important;
            }
            #authFlowCard .login-wizard .wizard-panel-inner,
            #authFlowCard .register-wizard .wizard-panel-inner,
            .auth-simple-panel > .auth-panel-width {
                width: min(100%, 100%) !important;
                max-width: 100% !important;
            }
            .intro-panel { min-height: 0; padding-top: 20px; }
            .auth-risk-text { left: 20px; right: 20px; bottom: 20px; }
            .form-header { margin-bottom: 22px; }
            .form-header h1, .form-header h2, .form-header h3 { font-size: 24px; }
            input, select, textarea, .form-control, .phone-input { font-size: 16px !important; }
            .code-inputs { gap: 6px; }
            .code-inputs input { height: 46px; border-radius: 12px; font-size: 16px !important; }
            .auth-toast { top: calc(var(--auth-toast-viewport-top, 0px) + max(14px, env(safe-area-inset-top))) !important; right: calc(var(--auth-toast-viewport-right, 0px) + 14px) !important; max-width: calc(100vw - 28px); }
            .swal2-container.swal2-top-end,
            .swal2-container.swal2-top-right {
                top: calc(var(--auth-toast-viewport-top, 0px) + max(14px, env(safe-area-inset-top))) !important;
                right: calc(var(--auth-toast-viewport-right, 0px) + 14px) !important;
            }
        }

        /* Keep auth pages on the document scroller on touch devices so
           iOS/Android can run the browser's native pull-to-refresh. */
        @media (max-width: 1180px), (hover: none) and (pointer: coarse) {
            html,
            body {
                height: auto !important;
                min-height: 100% !important;
                max-height: none !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                overscroll-behavior-y: auto !important;
                touch-action: pan-y;
            }

            body {
                min-height: 100vh !important;
            }

            .auth-page,
            .auth-shell,
            .auth-content-area {
                height: auto !important;
                min-height: 100vh !important;
                max-height: none !important;
                overflow: visible !important;
                overscroll-behavior-y: auto !important;
                touch-action: pan-y;
            }

            .auth-flow-card {
                height: auto !important;
                min-height: 0 !important;
                max-height: none !important;
                overflow: visible !important;
            }

            .auth-inner,
            #authFlowCard .login-wizard.wizard-viewport,
            #authFlowCard .register-wizard.wizard-viewport,
            #authFlowCard .login-wizard .wizard-track,
            #authFlowCard .register-wizard .wizard-track {
                height: auto !important;
                min-height: 0 !important;
                max-height: none !important;
                overflow: visible !important;
                contain: none !important;
                overscroll-behavior-y: auto !important;
                touch-action: pan-y;
            }

            #authFlowCard .login-wizard .wizard-panel,
            #authFlowCard .register-wizard .wizard-panel {
                position: relative !important;
                top: auto !important;
                bottom: auto !important;
                left: auto !important;
                right: auto !important;
                height: auto !important;
                min-height: 0 !important;
                overflow: visible !important;
                overscroll-behavior-y: auto !important;
                -webkit-overflow-scrolling: auto;
                touch-action: pan-y;
            }

            #authFlowCard .login-wizard .wizard-panel.is-before,
            #authFlowCard .login-wizard .wizard-panel.is-after,
            #authFlowCard .register-wizard .wizard-panel.is-before,
            #authFlowCard .register-wizard .wizard-panel.is-after {
                display: none !important;
            }

            #authFlowCard .login-wizard .wizard-panel.is-active,
            #authFlowCard .register-wizard .wizard-panel.is-active,
            #authFlowCard .login-wizard:not(.js-ready) .wizard-panel:first-child,
            #authFlowCard .register-wizard:not(.js-ready) .wizard-panel:first-child {
                display: flex !important;
                left: auto !important;
                opacity: 1 !important;
                visibility: visible !important;
                pointer-events: auto !important;
            }

            .auth-simple-panel {
                height: auto !important;
                overflow: visible !important;
                overscroll-behavior-y: auto !important;
                -webkit-overflow-scrolling: auto;
                touch-action: pan-y;
            }
        }

        @supports (-webkit-touch-callout: none) {
            @media (max-width: 1180px), (hover: none) and (pointer: coarse) {
                html {
                    min-height: calc(100% + 1px) !important;
                    -webkit-overflow-scrolling: touch;
                }

                body {
                    min-height: calc(100vh + 1px) !important;
                    -webkit-overflow-scrolling: touch;
                }

                .auth-page,
                .auth-shell,
                .auth-content-area {
                    min-height: calc(100vh + 1px) !important;
                }
            }
        }
    


