/* ข้อความ JariyaThamX / ช่องกรอก Sarabun */
.member-login-page {
    --navy: #123653;
    --gold: #FBB801;
    width: 100%;
    max-width: 700px;
    margin: 32px auto;
    padding: 0 16px 32px;
    font-family: "JariyaThamX", sans-serif !important;
    font-size: 25px;
    line-height: 1.6;
    color: #36516b;
    background: transparent
}

.member-login-page * {
    box-sizing: border-box
}

.member-login-page [hidden] {
    display: none !important
}

.member-login-page h1,
.member-login-page h2,
.member-login-page p {
    margin: 0;
    font-family: "JariyaThamX", sans-serif !important
}

.member-login-page button,
.member-login-page label,
.member-login-page small {
    font-family: "JariyaThamX", sans-serif !important
}

.member-login-page a {
    color: #315f85;
    text-decoration: none
}

.member-login-page a:hover {
    text-decoration: underline
}

.member-login-page .ml-header {
    text-align: center;
    padding: 28px 20px 24px;
    background: linear-gradient(125deg, #f1f6fc, #fff);
}

.member-login-page .ml-header img {
    display: block;
    object-fit: contain;
    margin: 0 auto 8px;
    width: 58px;
    height: 58px
}

.member-login-page .ml-header>span {
    font-size: 17px;
    letter-spacing: 1.5px;
    color: #8b752b
}

.member-login-page .ml-header h1 {
    font-size: 36px;
    color: #123653;
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 0
}

.member-login-page .ml-header p {
    font-size: 23px;
    color: #73869b
}

/* แถบเมนูเต็มความกว้างภายในกรอบบัญชี */
.member-login-page .ml-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #123653;
    border: 0;
    border-radius: 0
}

.member-login-page .ml-tabs button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 92px;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: #123653;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .18s, box-shadow .18s
}

.member-login-page .ml-tabs #mlActivateTab {
    background: #FBB801;
    color: #123653
}

.member-login-page .ml-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    color: #FBB801;
    font-size: 29px
}

.member-login-page #mlActivateTab .ml-tab-icon {
    background: rgba(18, 54, 83, .09);
    border-color: rgba(18, 54, 83, .15);
    color: #123653
}

.member-login-page .ml-tab-copy {
    display: block;
    min-width: 0
}

.member-login-page .ml-tab-copy strong {
    display: block;
    font-size: 29px;
    line-height: 1.35;
    font-weight: 700
}

.member-login-page .ml-tab-copy small {
    display: block;
    margin-top: 3px;
    font-size: 22px;
    line-height: 1.4;
    color: #d0dfeb
}

.member-login-page #mlActivateTab .ml-tab-copy small {
    color: #324a54
}

.member-login-page .ml-tabs button:hover {
    background: #1d4868
}

.member-login-page .ml-tabs #mlActivateTab:hover {
    background: #edac00
}

.member-login-page .ml-tabs button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: #FBB801
}

.member-login-page .ml-tabs #mlActivateTab[aria-selected="true"]::after {
    background: #123653
}

.member-login-page .ml-tabs button[aria-selected="true"]::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    background: #FBB801;
    transform: rotate(45deg);
    z-index: 1
}

.member-login-page .ml-tabs #mlActivateTab[aria-selected="true"]::before {
    background: #123653
}

.member-login-page .ml-form-area {
    width: 100%;
    max-width: 620px;
    margin: 32px auto 0;
    padding: 0 18px
}

.member-login-page .ml-card {
    border: 1px solid #dce5ef;
    border-top: 4px solid #FBB801;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(18, 54, 83, .05);
    overflow: hidden
}

.member-login-page .ml-panel {
    padding: 30px
}

.member-login-page .ml-panel h2 {
    font-size: 29px;
    color: #123653;
    font-weight: 700;
    margin-bottom: 4px
}

.member-login-page .ml-muted {
    font-size: 22px;
    color: #7a8da1;
    margin-bottom: 20px
}

.member-login-page label {
    display: block;
    font-size: 25px;
    font-weight: 500;
    color: #425e76;
    margin: 16px 0 7px
}

.member-login-page input {
    display: block;
    width: 100%;
    height: 50px !important;
    border: 1px solid #d0deeb;
    border-radius: 10px;
    background: #fff;
    color: #123653;
    font-family: "Sarabun", sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    padding: 12px 14px !important;
    box-shadow: none;
    outline: none
}

.member-login-page input:focus {
    border-color: #6189ad;
    box-shadow: 0 0 0 3px rgba(61, 108, 146, .1)
}

.member-login-page input::placeholder {
    font-family: "Sarabun", sans-serif !important;
    font-size: 14px;
    color: #95a5b6
}

.member-login-page .ml-password {
    position: relative
}

.member-login-page .ml-password input {
    padding-right: 54px !important
}

.member-login-page .ml-password button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f1f5fa;
    color: #587d9d;
    cursor: pointer
}

.member-login-page .ml-password button i {
    font-size: 23px
}

.member-login-page .ml-forgot {
    text-align: right;
    font-size: 23px;
    margin: 12px 0 17px
}

.member-login-page .ml-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 9px 16px;
    border: 1px solid #e3ab00;
    border-radius: 11px;
    background: #FBB801;
    color: #123653;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer
}

.member-login-page .ml-submit:hover {
    background: #edb000
}

.member-login-page .ml-submit:disabled {
    opacity: .5;
    cursor: not-allowed
}

.member-login-page .ml-first-time {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    margin-top: 22px;
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    background: #f5f8fc
}

.member-login-page .ml-first-time>i {
    font-size: 28px;
    color: #477da4
}

.member-login-page .ml-first-time strong {
    font-size: 23px;
    color: #365b79
}

.member-login-page .ml-first-time button {
    display: block;
    background: transparent;
    border: 0;
    padding: 5px 0 0;
    color: #8d6900;
    font-size: 22px;
    font-weight: 600;
    text-align: left;
    cursor: pointer
}

.member-login-page .ml-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5ecf4;
    background: #fcfdff;
    text-align: center;
    font-size: 23px;
    color: #7b8ea1
}

.member-login-page .ml-footer a {
    color: #986f00;
    font-weight: 700
}

.member-login-page .ml-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin: 20px 0;
    list-style: none
}

.member-login-page .ml-steps li {
    font-size: 21px;
    text-align: center;
    color: #73899e
}

.member-login-page .ml-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto 7px;
    background: #edf3fa;
    color: #4d7192;
    font-size: 22px;
    font-weight: 700
}

.member-login-page .ml-steps li:first-child span {
    background: #fff0b7;
    color: #896000
}

.member-login-page .ml-info {
    display: flex;
    gap: 11px;
    padding: 14px;
    border: 1px solid #e0e8f1;
    border-radius: 10px;
    background: #f3f7fc;
    font-size: 22px;
    color: #617a91;
    margin-top: 10px;
}

.member-login-page .ml-info i {
    font-size: 26px;
    color: #4c7b9f
}

.member-login-page small {
    display: block;
    margin-top: 7px;
    font-size: 20px;
    line-height: 1.6;
    color: #8798aa
}

.member-login-page .ml-service-notice {
    padding: 12px 14px;
    margin: 16px 0;
    border: 1px solid #efdfa7;
    border-radius: 9px;
    background: #fff9e7;
    color: #85651d;
    font-size: 22px
}

.member-login-page .ml-preserve {
    font-size: 21px;
    text-align: center;
    color: #6b8791;
    margin-top: 17px
}

.member-login-page .ml-message {
    padding: 11px 13px;
    margin: 14px 0;
    border-radius: 9px;
    background: #fff0f0;
    color: #a73646;
    font-size: 23px;
    overflow-wrap: anywhere
}

.member-login-page .ml-message.is-success {
    background: #e9f7ef;
    color: #267a4d
}

.member-login-page button:focus-visible,
.member-login-page a:focus-visible {
    outline: 3px solid #FBB801;
    outline-offset: 3px
}

.member-login-page .ml-tabs button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -7px
}

.member-login-page .ml-tabs #mlActivateTab:focus-visible {
    outline-color: #123653
}

@media(max-width:575px) {
    .member-login-page .ml-header {
        padding: 22px 16px
    }

    .member-login-page .ml-header h1 {
        font-size: 32px
    }

    .member-login-page .ml-tabs button {
        min-height: 105px;
        padding: 15px 10px;
        gap: 9px
    }

    .member-login-page .ml-tab-icon {
        flex-basis: 33px;
        width: 33px;
        height: 37px;
        border-radius: 9px;
        font-size: 23px
    }

    .member-login-page .ml-tab-copy strong {
        font-size: 25px
    }

    .member-login-page .ml-tab-copy small {
        font-size: 19px
    }

    .member-login-page .ml-form-area {
        margin-top: 25px;
        padding: 0 12px
    }

    .member-login-page .ml-panel {
        padding: 23px 20px
    }
}

@media(max-width:360px) {
    .member-login-page .ml-tabs button {
        flex-direction: column;
        text-align: center;
        gap: 6px
    }

    .member-login-page .ml-tab-copy small {
        font-size: 18px
    }
}

@media(prefers-reduced-motion:reduce) {
    .member-login-page .ml-tabs button {
        transition: none
    }
}

/* ขนาดแท็บสัมพันธ์กับกรอบฟอร์ม ไม่ขยายเต็มหน้า */
.member-login-page .ml-tabs {
    width: 100%;
    max-width: 100%
}

.member-login-page .ml-tab-icon {
    flex-basis: 36px;
    width: 36px;
    height: 39px;
    font-size: 25px;
    border-radius: 10px
}

.member-login-page .ml-tab-copy strong {
    font-size: 26px
}

.member-login-page .ml-tab-copy small {
    font-size: 20px
}

@media(max-width:575px) {
    .member-login-page {
        margin: 20px auto;
        padding: 0 12px 24px
    }

    .member-login-page .ml-panel {
        padding: 25px 20px
    }

    .member-login-page .ml-tabs button {
        min-height: 90px;
        gap: 8px;
        padding: 13px 10px
    }

    .member-login-page .ml-tab-icon {
        flex-basis: 30px;
        width: 30px;
        height: 34px;
        font-size: 22px
    }

    .member-login-page .ml-tab-copy strong {
        font-size: 24px
    }

    .member-login-page .ml-tab-copy small {
        font-size: 18px
    }
}

/* จัดปุ่มแสดงรหัสผ่านให้กึ่งกลางช่องกรอก */
.member-login-page .ml-password {
    position: relative
}

.member-login-page .ml-password #mlTogglePassword {
    position: absolute;
    top: 50%;
    right: 7px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1
}

.member-login-page #mlTogglePassword i {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1
}

.member-login-page #mlTogglePassword i::before {
    display: block;
    line-height: 1
}

.member-login-page #mlVerifiedSetup .ml-submit {
    margin-top: 18px
}

.member-login-page .ml-activation-back {
    display: block;
    margin: 12px auto 0;
    border: 0;
    background: transparent;
    color: #426e92;
    font-size: 22px;
    cursor: pointer
}

.member-login-page .ml-otp-fieldset {
    min-width: 0;
    margin: 20px 0 0;
    padding: 0;
    border: 0
}

.member-login-page .ml-otp-fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 14px;
    padding: 0;
    color: #425e76;
    font-family: "JariyaThamX", sans-serif !important;
    font-size: 25px;
    line-height: 1.5
}

.member-login-page .ml-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    direction: ltr
}

.member-login-page input.ml-otp-digit {
    width: 100%;
    min-width: 0;
    height: 62px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid #ceddeb;
    border-radius: 12px;
    background: #f8fafd;
    color: #123653;
    font-family: "Sarabun", sans-serif !important;
    font-size: 27px !important;
    font-weight: 600;
    line-height: normal !important;
    text-align: center;
    caret-color: #123653
}

.member-login-page input.ml-otp-digit:focus {
    outline: none;
    border-color: #FBB801;
    background: #fffdf4;
    box-shadow: 0 0 0 3px rgba(251, 184, 1, .18)
}

.member-login-page input.ml-otp-digit.is-filled {
    border-color: #9fbad2;
    background: #eef5fc
}

.member-login-page .ml-otp-fieldset small {
    margin-top: 12px;
    text-align: center
}

.member-login-page .ml-step-done span {
    background: #e7f5eb;
    color: #267847
}

@media(max-width:575px) {
    .member-login-page .ml-otp-boxes {
        gap: 7px
    }

    .member-login-page input.ml-otp-digit {
        height: 54px !important;
        border-radius: 9px;
        font-size: 23px !important
    }
}

@media(max-width:360px) {
    .member-login-page .ml-otp-boxes {
        gap: 5px
    }

    .member-login-page input.ml-otp-digit {
        height: 47px !important;
        font-size: 21px !important
    }
}