.auth-page {
    width: 100%;
    min-height: 100vh;
    font-family: "Kanit", sans-serif;
    background: #fff;
}

body.auth-page-body {
    margin: 0 !important;
    overflow-x: hidden;
    background: #fff !important;
}

body.auth-page-body .loginBlock {
    min-height: 100vh;
}

body.auth-page-body > footer {
    display: none;
}

html.auth-otp-scroll-restored,
body.auth-otp-scroll-restored {
    overflow-y: auto !important;
}

.auth-page .auth-language {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10;
    margin: 0 !important;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-showcase {
    position: relative;
    display: flex;
    width: 64%;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding-top: 103.5px;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    background: #2f73f3;
}

.auth-showcase::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(rgba(47, 115, 243, .88), rgba(47, 115, 243, .88)), url("auth/background-frame.png") center/cover no-repeat;
}

.auth-carousel {
    position: relative;
    z-index: 1;
    width: min(68%, 850px);
    margin-top: 0;
    padding-bottom: 25px;
    box-sizing: border-box;
}

.auth-slide { display: none; }
.auth-slide.active { display: block; animation: authFade .45s ease; }
.auth-slide-copy {
    height: clamp(125px, calc(425px - 20vw), 225px);
    box-sizing: border-box;
}
.auth-slide h1 { margin: 0 0 12.5px; font-size: 37.5px; line-height: 1.3; font-weight: 500; }
.auth-slide p { min-height: 62.5px; margin: 0; font-size: 20px; line-height: 1.45; font-weight: 300; }
.auth-banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-dots {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 9px;
    margin-top: 0;
    padding-top: 0 !important;
}
.auth-dot { width: 47.5px; height: 6.5px; padding: 0; border: 0; background: rgba(255,255,255,.9); cursor: pointer; }
.auth-dot.active { background: #075ee9; }

.auth-panel {
    display: flex;
    width: 36%;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding: 123.5px 42.5px 37.5px;
    box-sizing: border-box;
    background: #fff;
    font-family: "Boon", helvetica, arial, sans-serif;
}

.auth-panel input,
.auth-panel button,
.auth-panel select,
.auth-panel textarea {
    font-family: inherit;
}

.auth-form-card,
.auth-two-factor,
.auth-register-success {
    width: 100%;
    max-width: 410px;
    box-sizing: border-box;
}
.auth-brand { margin-bottom: 10px; text-align: center; }
.auth-brand-row { display: flex; align-items: center; justify-content: center; }
.auth-brand img { width: 154px; height: 50px; object-fit: contain; }
.auth-page .auth-brand h2 { margin: 20px 0 10px; color: #191919; font-family: "Kanit", sans-serif !important; font-size: 29.7px; font-style: normal; font-weight: 500; }
.auth-brand p { margin: 0; color: #b0b5bd; font-size: 19.6px; }
.auth-form-card .form-group { margin-bottom: 15px; }
.auth-form-card label { margin-bottom: 6.5px; color: #202020; font-size: 17.82px; font-weight: 400; }
.auth-form-card .form-control { height: 44px; border-color: #d3d9e1; box-shadow: none; font-size: 17.82px; }
.auth-password-field { position: relative; }
.auth-password .form-control { padding-right: 50px; }
.auth-password-toggle { position: absolute; top: 50%; right: 12.5px; display: flex; width: 26.5px; height: 26.5px; align-items: center; justify-content: center; padding: 0; border: 0; color: #aeb5bf; background: none; line-height: 1; transform: translateY(-50%); }
.auth-password-toggle svg { display: block; width: 21.5px; height: 21.5px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.auth-password-toggle circle { fill: currentColor; stroke: none; }
.auth-password-toggle .auth-eye-show,
.auth-password-toggle.is-visible .auth-eye-hide { display: none; }
.auth-password-toggle.is-visible .auth-eye-show { display: block; }
.auth-form-card .form-control.auth-input-error,
.auth-two-factor .form-control.auth-input-error {
    border-color: #ff5b61;
    box-shadow: 0 0 0 1px rgba(255, 91, 97, .08);
}
.auth-field-error {
    display: none;
    margin-top: 6px;
    color: #f04438;
    font-size: 15.44px;
    line-height: 1.35;
}
.auth-field-error.is-visible { display: block; }
.auth-login-alert {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    color: #e11d48;
    background: #fff1f2;
    font-size: 16.63px;
    line-height: 1.4;
}
.auth-login-alert.is-visible { display: flex; }
.auth-login-alert svg { flex: 0 0 auto; width: 20px; height: 20px; }
.auth-form-error { margin: 8px 0 0; }
.auth-validation-anchor { width: 0; height: 0; overflow: hidden; }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin: 12.5px 0 27.5px; font-size: 17.82px; }
.auth-options label { display: flex; align-items: center; gap: 10px; margin: 0; }
.auth-options input { width: 17.5px; height: 17.5px; margin: 0; }
.auth-options a { color: #424242; text-decoration: underline; }
.auth-login-btn,
.auth-google-btn { display: flex !important; width: 100%; height: 44px; align-items: center; justify-content: center; border: 0 !important; border-radius: 25px !important; box-shadow: none !important; box-sizing: border-box; font-family: "Kanit", sans-serif !important; font-size: 19.6px; font-weight: 400; }
.auth-login-btn { color: #fff; background: #4165eb; }
.auth-login-btn:disabled { cursor: not-allowed; opacity: .48; }
.auth-google-btn { margin-top: 10px; color: #747474 !important; background: #f4f6f9 !important; }
.auth-google-btn .fa-google { margin-right: 9px; color: #4285f4; }
.auth-footer { margin-top: 30px; padding-top: 31.5px; border-top: 1px solid #e8e8e8; text-align: center; font-size: 17.82px; }
.auth-footer p { margin: 0 0 12.5px; }
.auth-footer a { color: #0074c9; }
.auth-hidden-fields { display: none; }

.auth-forgot-card .auth-login-btn { margin-top: 28px; }
.auth-back-link { display: block; margin-top: 18px; color: #424242; text-align: center; text-decoration: underline; font-family: "Kanit", sans-serif; font-size: 17.82px; }

/* Register */
.auth-register-panel { align-items: flex-start; padding-top: 103.5px; overflow-y: auto; }
.auth-register-card { max-width: 410px; }
.auth-register-card .auth-brand { margin-bottom: 10px; }
.auth-register-card .form-group { margin-bottom: 12.5px; }
.auth-register-card .form-control,
.auth-register-card select.form-control { height: 44px; padding: 7.5px 12.5px; border-color: #d3d9e1; box-shadow: none; font-size: 17.82px; }
.auth-register-card label,
.auth-register-card .auth-section-label { margin-bottom: 6.5px; color: #202020; font-size: 17.82px; font-weight: 400; }
.auth-register-card .auth-section-hint { color: #a8adb5; font-size: 14.85px; }
.auth-channel-list { margin: 6.5px 0 12.5px; }
.auth-channel-option { display: flex; min-height: 30px; align-items: center; gap: 10px; margin: 0 !important; }
.auth-channel-option input { width: 17.5px; height: 17.5px; margin: 0; }
.auth-channel-icons { display: inline-flex; align-items: center; gap: 5px; }
.auth-channel-icon { display: block; width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.auth-referral-box { margin: 10px 0 14px; padding: 12.5px 15px; border-radius: 7.5px; background: linear-gradient(105deg, #fff8ef, #f8f6f6); }
.auth-referral-title { margin-bottom: 11.5px; color: #3478ff; text-align: center; font-family: "Kanit", sans-serif; font-size: 26.73px; font-weight: 300; }
.auth-referral-box small { display: block; margin-top: 5px; color: #26334d; font-size: 14.85px; line-height: 1.45; }
.auth-referral-box .form-control + small { margin-top: 12.5px; }
.auth-referral-link { color: #0e7fc4; }
.auth-register-step { width: 100%; }
.auth-register-account { display: none; }
.auth-back-link { display: inline-block; margin-bottom: 15px; border: 0; color: #3774e9; background: transparent; font-family: "Kanit", sans-serif; font-size: 17.82px; }
.auth-package-card { position: relative; height: 195px; margin: 15px 0; overflow: hidden; border-radius: 9px; background: #f3f6ff; }
.auth-package-card > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-package-copy { position: absolute; top: 32.5px; left: 37.5px; display: flex; flex-direction: column; color: #26334d; }
.auth-package-copy strong { color: #3478ff; font-size: 26.73px; font-weight: 500; }
.auth-package-copy span { margin-bottom: 9px; font-size: 20.79px; }
.auth-package-copy small { margin-top: 2.5px; color: #536071; font-size: 14.85px; }
.auth-package-copy small i { color: #1db29e; }
.auth-register-check { display: flex; align-items: flex-start; gap: 11.5px; margin: 11.5px 0 !important; line-height: 1.45; }
.auth-register-check input { flex: 0 0 auto; width: 17.5px; height: 17.5px; margin: 2.5px 0 0; }
.auth-register-check a { color: #3478ff; }

@keyframes authFade { from { opacity: .25; } to { opacity: 1; } }

/* Tablet: full-page artwork with the form displayed as a centered card. */
@media (min-width: 768px) and (max-width: 991px) {
    body.auth-page-body { background: #2f73f3 !important; }

    .auth-shell {
        position: relative;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: center;
        box-sizing: border-box;
        padding: 109.25px 0 75px;
    }

    .auth-showcase {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        min-height: 100%;
        padding-top: 0;
    }

    .auth-carousel { display: none; }

    .auth-panel,
    .auth-register-panel {
        position: relative;
        z-index: 2;
        display: block;
        width: 500px;
        min-height: 0;
        padding: 37.5px 45px 52.5px;
        overflow: visible;
        border-radius: 10px;
        box-sizing: border-box;
        background: #fff;
    }

    .auth-form-card,
    .auth-register-card,
    .auth-two-factor {
        width: 100%;
        max-width: none;
    }

    .auth-page .auth-language {
        top: 34px;
        right: 30px;
    }
}

@media (max-width: 767px) {
    .auth-shell { display: block; }
    .auth-showcase { display: none; }
    .auth-panel { width: 100%; min-height: 100vh; padding: 103.5px 30px 44px; }
    .auth-page .auth-language { top: 22.5px; right: 22.5px; }
}
.auth-success-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 103.5px;
}

.auth-register-success {
    text-align: center;
}

.auth-register-success .auth-success-logo { width: 120px; }
.auth-register-success .auth-success-popper { display: block; width: 100px; margin: 18px auto 24px; }
.auth-page .auth-register-success h1 { color: #3774ef; font-family: "Kanit", sans-serif !important; font-size: 28.51px; font-style: normal; font-weight: 500; margin: 0 0 8px; }
.auth-register-success p { color: #a7adb7; font-size: 15.44px; line-height: 1.5; margin-bottom: 18px; }
.auth-register-success .auth-login-btn { display: inline-flex; width: auto; min-width: 180px; padding: 0 28px; align-items: center; justify-content: center; text-decoration: none; }

.auth-otp-success { padding: 36px 32px 24px; text-align: center; }
.auth-otp-success img { width: 112px; margin-bottom: 15px; }
.auth-otp-success h3 { color: #15b79e; font-family: "Kanit", sans-serif !important; font-size: 22px; font-style: normal; margin: 0 0 6px; }
.auth-otp-success p { color: #a7adb7; margin-bottom: 16px; }
.auth-otp-success button { min-width: 120px; }

.auth-otp-activation-modal .modal-dialog {
    width: 590px;
    max-width: calc(100% - 30px);
    margin: 8vh auto 30px;
}

.auth-otp-activation-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(32, 46, 66, .16);
}

.auth-otp-activation-modal .modal-header {
    padding: 36px 38px 18px;
    border: 0;
}

.auth-otp-activation-modal .modal-title {
    color: #26364d;
    font-family: "Kanit", sans-serif !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-otp-activation-modal .modal-body { padding: 12px 38px 36px; }
.auth-otp-activation-modal .form-group { margin-bottom: 22px; }
.auth-otp-activation-modal label { color: #171717; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.auth-otp-activation-modal .form-control { width: 100%; height: 52px; padding: 12px 14px; border-color: #c7cfd9; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
.auth-otp-activation-modal .form-control:disabled { color: #344054; background: #fff; }
.auth-otp-activation-modal .auth-otp-close { position: absolute; z-index: 2; top: 28px; right: 30px; color: #dfe2e6; opacity: .75; font-size: 24px; }
.auth-otp-label-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.auth-otp-label-row label { margin: 0; }
.auth-otp-label-row a { color: #0789d1; font-size: 15px; text-decoration: none; }
.auth-otp-label-row a.is-disabled { cursor: default; opacity: .85; }
.auth-otp-reference { min-height: 22px; margin-top: 12px; color: #687386; font-size: 15px; }
.auth-otp-activation-modal .form-control.auth-input-error {
    border-color: #ff5b61;
    box-shadow: 0 0 0 1px rgba(255, 91, 97, .08);
}
.auth-otp-error {
    display: none;
    margin-top: 10px;
    color: #f04438;
    font-size: 14px;
    line-height: 1.4;
}
.auth-otp-error.is-visible { display: block; }
.auth-otp-error a {
    color: #0789d1;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}
.auth-otp-submit { width: 100%; height: 52px; margin-top: 18px; border: 0; border-radius: 28px; font-family: "Kanit", sans-serif; font-size: 18px; }
.auth-otp-line-contact { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: #26334d; font-size: 15px; text-align: center; }
.auth-otp-line-contact img { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px; }
.auth-otp-line-contact a { color: #06c755; text-decoration: none; }

.auth-otp-activation-modal .auth-otp-success {
    min-height: 430px;
    padding: 48px 38px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-otp-activation-modal .auth-otp-success img { display: block; width: 128px; margin: 0 auto 34px; }
.auth-otp-activation-modal .auth-otp-success h3 { font-family: "Kanit", sans-serif !important; font-size: 25px; font-style: normal; font-weight: 700; }
.auth-otp-activation-modal .auth-otp-success p { font-size: 15px; margin: 12px 0 20px; }
.auth-otp-activation-modal .auth-otp-success .auth-login-btn { width: 180px; height: 52px; margin: 0 auto; border: 0; border-radius: 28px; font-family: "Kanit", sans-serif; }

@media (max-width: 767px) {
    .auth-otp-activation-modal .modal-dialog { margin-top: 20px; }
    .auth-otp-activation-modal .modal-header { padding: 30px 24px 14px; }
    .auth-otp-activation-modal .modal-title { padding-right: 30px; font-size: 24px; }
    .auth-otp-activation-modal .modal-body { padding: 12px 24px 28px; }
    .auth-otp-activation-modal .auth-otp-close { top: 22px; right: 20px; }
}
