.auth-page-wrapper {
    min-height: 100vh;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-page-card {
    width: 100%;
    max-width: 980px;
    min-height: 480px;
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(22, 28, 45, 0.15);
    background-color: #ffffff;
}

.auth-page-left {
    width: 50%;
    min-width: 0;
    background: linear-gradient(180deg, #061236 0%, #091a45 100%);
    color: #ffffff;
    padding: 56px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-page-logo {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffc400;
    text-decoration: none;
    margin-bottom: 14px;
}

.auth-page-logo--image {
    display: block;
    margin-bottom: 24px;
    max-width: 88%;
}

.auth-page-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.auth-page-logo:hover {
    color: #ffd95f;
}

.auth-page-left-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.auth-page-help-box {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px;
}

.auth-page-help-box h6 {
    font-size: 16px;
    color: #ffc400;
    margin-bottom: 8px;
}

.auth-page-help-box p {
    font-size: 13px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-page-help-box.auth-page-help-box--banner {
    height: 240px;
    min-height: 240px;
    padding: 0 !important;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.06);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.auth-page-org-name {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffc400;
    text-align: center;
    line-height: 1.4;
}

.auth-page-help-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    border: 1px solid #ffc400;
    color: #ffc400;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    text-decoration: none;
}

.auth-page-help-link:hover {
    background-color: #ffc400;
    color: #091a45;
}

.auth-page-right {
    width: 50%;
    min-width: 0;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    z-index: 1;
}

/* Language switcher — ใช้ class ธีม translate_wrapper / .lang (style.css §3.40) */

.auth-page-lang-switcher.translate_wrapper {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.auth-page-lang-switcher .current_lang .lang {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.auth-page-lang-switcher .current_lang .lang .lang-txt {
    display: none;
}

.auth-page-lang-switcher .more_lang a.lang {
    text-decoration: none;
    color: #333;
}

.auth-page-lang-switcher.translate_wrapper.active .more_lang {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 170px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(89, 102, 122, 0.15);
}

.auth-page-lang-switcher.translate_wrapper.active .more_lang:before,
.auth-page-lang-switcher.translate_wrapper.active .more_lang:after {
    right: 14px;
}

.auth-page-lang-switcher .more_lang a.lang .lang-txt {
    font-weight: 600;
    color: #2b2b2b;
}

.auth-page-lang-switcher .more_lang a.lang:hover .lang-txt {
    color: #fff;
}

.auth-page-form .auth-page-lang-switcher.translate_wrapper {
    position: relative;
}

.auth-page-form {
    width: 100%;
}

.auth-page-form h4 {
    margin-bottom: 18px;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

.auth-page-form .col-form-label {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.auth-page-form .form-control {
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
}

.auth-page-form .form-control:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.2);
}

.auth-page-submit-btn {
    background-color: #ffc400;
    border-color: #ffc400;
    color: #2b2f3a;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
}

.auth-page-submit-btn:hover,
.auth-page-submit-btn:focus {
    background-color: #eab308;
    border-color: #eab308;
    color: #1f2937;
}

.auth-page-register-text {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.auth-page-register-text a {
    color: #1f2937;
    font-weight: 600;
}

.auth-page-site-footer {
    padding: 12px 24px 20px;
    font-size: 13px;
    color: #6b7280;
    background-color: #f3f4f6;
}

@media (max-width: 991px) {
    .auth-page-card {
        flex-direction: column;
        max-width: 620px;
    }

    .auth-page-left,
    .auth-page-right {
        width: 100%;
    }

    .auth-page-left {
        padding: 36px 24px;
    }

    .auth-page-logo--image {
        max-width: 72%;
        margin-bottom: 20px;
    }

    .auth-page-right {
        padding: 32px 24px 36px;
    }
}

/* PDPA consent page */
.auth-pdp-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f3f4f6;
}

.auth-pdp-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.auth-pdp-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-pdp-body {
    padding: 1.5rem;
}

.auth-pdp-content-box {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fafbfd;
    scroll-padding-bottom: 1rem;
}

.auth-pdp-content-box :is(p, div, span, li) {
    line-height: 1.7;
}

.auth-pdp-content-box::-webkit-scrollbar {
    width: 8px;
}

.auth-pdp-content-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
