:root {
    --navy: #08284f;
    --navy-deep: #0b3268;
    --mint: #008e73;
    --mint-soft: #e8f7f2;
    --gold: #d9a62e;
    --ink: #092248;
    --muted: #66748a;
    --line: #d6e1ee;
    --white: #ffffff;
    --shadow: 0 20px 55px rgba(20, 48, 86, .14);
    font-family: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: inherit;
    color: var(--ink);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.login-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #f7f9fd;
}

.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 64%) minmax(480px, 36%);
    overflow: hidden;
    background: var(--pbb-page-bg,url('../images/bgpretest1.png')) center center / cover no-repeat;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.02) 0 63%, rgba(255,255,255,.09) 72%, rgba(255,255,255,.16) 100%);
}

.login-promo,
.login-form-zone {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
}

.login-promo {
    display: grid;
    grid-template-rows: 104px minmax(0, 1fr) 186px 46px;
    gap: 8px;
    padding: 20px 34px 22px;
    overflow: hidden;
}

.login-promo-top {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.login-main-logo {
    width: 118px;
    height: 94px;
    object-fit: contain;
    object-position: left top;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 5px 12px rgba(8, 40, 79, .07));
}

.login-confidence-pill {
    justify-self: center;
    align-self: end;
    transform: translateX(-4%);
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 20px 7px 9px;
    border: 1px solid rgba(202, 216, 232, .9);
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255,255,255,.91);
    box-shadow: 0 10px 26px rgba(20,48,86,.10);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.login-confidence-pill strong {
    color: var(--mint);
}

.login-confidence-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 9px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #0cc0c2, #0564d4);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.34);
}

.login-promo-main {
    display: grid;
    grid-template-columns: minmax(390px, 44%) minmax(0, 56%);
    align-items: center;
    gap: 8px;
}

.login-promo-copy {
    align-self: center;
    padding-bottom: 8px;
}

.login-hero-title {
    margin: 0;
    display: grid;
    line-height: .91;
    letter-spacing: -.045em;
    font-size: clamp(64px, 5.4vw, 90px);
    font-weight: 800;
}

.login-hero-online {
    color: var(--navy);
}

.login-hero-system {
    color: var(--mint);
    white-space: nowrap;
}

.login-hero-system b {
    color: var(--gold);
    font-weight: 800;
}

.login-hero-line {
    display: block;
    width: 88px;
    height: 4px;
    margin: 18px 0 26px;
    border-radius: 999px;
    background: var(--gold);
}

.login-promo-copy h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(22px, 1.65vw, 31px);
    line-height: 1.2;
    font-weight: 800;
}

.login-hero-highlight {
    margin: 0 0 22px;
    color: var(--mint);
    font-size: clamp(18px, 1.35vw, 25px);
    line-height: 1.25;
    font-weight: 800;
}

.login-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.login-benefits li {
    position: relative;
    padding-left: 32px;
    color: var(--navy);
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.4;
    font-weight: 600;
}

.login-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mint);
    font-size: 12px;
    font-weight: 800;
}

.login-device {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-device img {
    width: min(100%, 645px);
    max-height: min(46vh, 460px);
    object-fit: contain;
    transform: translate(-1%, 2%);
    filter: drop-shadow(0 18px 26px rgba(8,40,79,.12));
}

.login-feature-row {
    width: min(100%, 920px);
    align-self: end;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.login-feature-card {
    min-width: 0;
    min-height: 178px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(198, 212, 228, .88);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 11px 26px rgba(20,48,86,.09);
    backdrop-filter: blur(11px);
}

.login-feature-card img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.login-feature-card h3 {
    margin: 4px 0 9px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
}

.login-feature-card p {
    margin: 0;
    color: #60708a;
    font-size: 12px;
    line-height: 1.48;
    font-weight: 500;
}

.login-promo-contact {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.login-contact-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 19px;
    border: 1px solid rgba(202, 216, 232, .9);
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255,255,255,.92);
    box-shadow: 0 9px 21px rgba(20,48,86,.08);
    font-size: 15px;
}

.login-contact-pill span {
    width: 22px;
    height: 22px;
}

.login-contact-url {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.login-line-qr {
    width: 52px;
    height: 52px;
    padding: 4px;
    border: 1px solid rgba(202, 216, 232, .9);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 21px rgba(20,48,86,.08);
}

.login-line-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.login-panel-line-contact {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(15,157,134,.24);
    border-radius: 15px;
    color: var(--navy);
    background: #f3fbf8;
}

.login-panel-line-contact img {width: 44px;height: 44px;object-fit: contain;border-radius: 8px}
.login-panel-line-contact span {display:grid;gap:1px;text-align:left}
.login-panel-line-contact strong {font-size:12px;color:#087b6b}
.login-panel-line-contact small {font-size:9px;color:#71829a}

@media (max-width: 760px) {
    .login-panel-line-contact {display:flex}
}

.login-form-zone {
    display: grid;
    place-items: center;
    padding: 42px 38px 42px 0;
}

.login-panel {
    width: min(100%, 505px);
    min-height: min(790px, calc(100vh - 84px));
    padding: 34px 40px 26px;
    border: 1px solid rgba(198,212,228,.9);
    border-radius: 48px;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 58px rgba(20,48,86,.15);
    backdrop-filter: blur(18px);
}

.login-panel-header {
    text-align: center;
}

.login-panel-logo {
    width: 104px;
    height: 94px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.login-brand-name {
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.login-brand-blue {
    color: var(--navy);
}

.login-brand-green {
    color: var(--mint);
}

.login-brand-gold {
    color: var(--gold);
}

.login-panel-brand {
    display: block;
    font-size: clamp(32px, 2.4vw, 42px);
    white-space: nowrap;
}

.login-panel-header p {
    margin: 12px 0 0;
    color: #50637c;
    font-size: 20px;
    font-weight: 700;
}

.login-panel-line {
    display: block;
    width: 94px;
    height: 4px;
    margin: 20px auto 26px;
    border-radius: 999px;
    background: var(--gold);
}

.login-alert {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #f2c3c3;
    border-radius: 13px;
    color: #9e2424;
    background: #fff1f1;
    font-size: 13px;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1.5px solid #cdd9e8;
    border-radius: 15px;
    outline: 0;
    color: var(--ink);
    background: rgba(255,255,255,.97);
    font-size: 17px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field input:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(0,142,115,.09);
}

.login-field input::placeholder {
    color: #8592a6;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 52px;
}

.login-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #315a8c;
    background: transparent;
    cursor: pointer;
}

.login-eye:hover,
.login-eye:focus-visible {
    color: var(--mint);
    background: var(--mint-soft);
    outline: 0;
}

.login-form-options {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.login-form-options a {
    color: var(--mint);
    font-weight: 700;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #53637a;
    cursor: pointer;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--mint);
}

.login-submit,
.login-register {
    min-height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-submit {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), #092d61);
    box-shadow: 0 13px 25px rgba(8,40,79,.20);
    cursor: pointer;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(8,40,79,.24);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 17px 0;
    color: #718095;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9e3ee;
}

.login-divider span {
    font-weight: 600;
}

.login-register {
    border: 1.5px solid var(--mint);
    color: var(--mint);
    background: rgba(255,255,255,.95);
}

.login-register:hover {
    transform: translateY(-1px);
    color: #fff;
    background: var(--mint);
    box-shadow: 0 13px 25px rgba(0,142,115,.17);
}

.login-footer {
    margin-top: auto;
    padding-top: 22px;
    text-align: center;
    color: #718095;
    font-size: 12px;
}

@media (max-width: 1500px) {
    .login-page {
        grid-template-columns: minmax(0, 62%) minmax(430px, 38%);
    }

    .login-promo {
        padding-left: 26px;
        padding-right: 26px;
    }

    .login-hero-title {
        font-size: clamp(56px, 5vw, 78px);
    }

    .login-device img {
        max-height: min(42vh, 400px);
    }

    .login-feature-card {
        min-height: 158px;
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 15px;
    }

    .login-feature-card img {
        width: 68px;
        height: 68px;
    }

    .login-feature-card h3 {
        font-size: 16px;
    }

    .login-feature-card p {
        font-size: 10.5px;
    }

    .login-panel {
        width: min(100%, 465px);
    }
}

@media (max-height: 800px) and (min-width: 981px) {
    .login-promo {
        grid-template-rows: 78px minmax(0, 1fr) 130px 36px;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 6px;
    }

    .login-main-logo {
        width: 88px;
        height: 70px;
    }

    .login-confidence-pill {
        min-height: 38px;
        padding: 5px 15px 5px 8px;
        font-size: 11px;
    }

    .login-confidence-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        padding: 7px;
    }

    .login-hero-title {
        font-size: clamp(44px, 4.5vw, 62px);
    }

    .login-hero-line {
        width: 66px;
        height: 3px;
        margin: 11px 0 14px;
    }

    .login-promo-copy h2 {
        margin-bottom: 10px;
        font-size: 19px;
    }

    .login-hero-highlight {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .login-benefits {
        gap: 7px;
    }

    .login-benefits li {
        padding-left: 26px;
        font-size: 11px;
    }

    .login-benefits li::before {
        width: 17px;
        height: 17px;
        font-size: 9px;
    }

    .login-device img {
        max-height: 295px;
    }

    .login-feature-card {
        min-height: 112px;
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 10px;
        gap: 9px;
    }

    .login-feature-card img {
        width: 50px;
        height: 50px;
    }

    .login-feature-card h3 {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .login-feature-card p {
        font-size: 8px;
        line-height: 1.3;
    }

    .login-contact-pill {
        min-height: 34px;
        padding: 0 14px;
        font-size: 11px;
    }

    .login-contact-pill span {
        width: 17px;
        height: 17px;
    }

    .login-contact-url {
        font-size: 12px;
    }

    .login-form-zone {
        padding: 18px 24px 18px 0;
    }

    .login-panel {
        width: min(100%, 395px);
        min-height: calc(100vh - 36px);
        padding: 22px 28px 18px;
        border-radius: 36px;
    }

    .login-panel-logo {
        width: 68px;
        height: 58px;
        margin-bottom: 5px;
    }

    .login-panel-brand {
        font-size: 25px;
    }

    .login-panel-header p {
        margin-top: 7px;
        font-size: 13px;
    }

    .login-panel-line {
        width: 62px;
        height: 3px;
        margin: 10px auto 14px;
    }

    .login-form {
        gap: 10px;
    }

    .login-field label {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .login-field input {
        height: 44px;
        font-size: 14px;
    }

    .login-form-options {
        font-size: 11px;
    }

    .login-submit,
    .login-register {
        min-height: 44px;
        font-size: 14px;
    }

    .login-divider {
        margin: 10px 0;
        font-size: 11px;
    }

    .login-footer {
        padding-top: 12px;
        font-size: 9px;
    }
}

@media (max-width: 980px) {
    .login-body {
        overflow: auto;
    }

    .login-page {
        min-height: 100dvh;
        height: auto;
        display: block;
        overflow: visible;
        background-position: center center;
    }

    .login-promo {
        display: none;
    }

    .login-form-zone {
        min-height: 100dvh;
        display: grid;
        place-items: center;
        padding: 12px;
    }

    .login-panel {
        width: min(100%, 390px);
        min-height: min(650px, calc(100dvh - 24px));
        padding: 24px 18px 18px;
        border-radius: 30px;
    }

    .login-panel-logo {
        width: 70px;
        height: 60px;
        margin-bottom: 6px;
    }

    .login-panel-brand {
        font-size: 22px;
    }

    .login-panel-header p {
        margin-top: 6px;
        font-size: 12px;
    }

    .login-panel-line {
        width: 58px;
        height: 3px;
        margin: 11px auto 16px;
    }

    .login-form {
        gap: 10px;
    }

    .login-field label {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .login-field input {
        height: 48px;
        font-size: 14px;
    }

    .login-form-options {
        font-size: 10.5px;
    }

    .login-submit,
    .login-register {
        min-height: 48px;
        font-size: 15px;
    }

    .login-divider {
        margin: 11px 0;
        font-size: 11px;
    }

    .login-footer {
        padding-top: 12px;
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .login-form-zone {
        padding: 7px;
    }

    .login-panel {
        width: 100%;
        min-height: calc(100dvh - 14px);
        border-radius: 26px;
        padding: 22px 15px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Login revision 3.2 — compact, viewport locked, detached footer card */
html,body.login-body{width:100%;height:100%;min-height:0;overflow:hidden!important}
.login-page{width:100%;height:100dvh;min-height:0!important;overflow:hidden!important}
.login-form-zone{min-height:0!important;height:100%;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;align-items:center!important;justify-items:center!important;gap:9px!important}
.login-panel{min-height:0!important;max-height:calc(100dvh - 74px);overflow:hidden!important}
.login-footer{width:min(100%,505px);margin:0!important;padding:8px 14px!important;border:1px solid rgba(198,212,228,.9);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 8px 20px rgba(20,48,86,.08);font-size:10px!important}
.login-notice{border-color:#bddfd4!important;background:#effaf6!important;color:#08765f!important}
@media(max-width:980px){
  .login-body{overflow:hidden!important}.login-page{display:block!important;height:100dvh!important;overflow:hidden!important}.login-form-zone{height:100dvh!important;padding:8px!important}
  .login-panel{width:min(100%,390px)!important;max-height:none!important;padding:15px 15px 13px!important;border-radius:24px!important}
  .login-panel-logo{width:56px!important;height:46px!important;margin-bottom:2px!important}.login-panel-brand{font-size:19px!important}.login-panel-header p{margin-top:3px!important;font-size:10px!important}.login-panel-line{margin:7px auto 9px!important}
  .login-form{gap:7px!important}.login-field label{margin-bottom:3px!important;font-size:11px!important}.login-field input{height:43px!important}.login-form-options{font-size:9.5px!important}.login-submit,.login-register{min-height:43px!important;font-size:13px!important}.login-divider{margin:7px 0!important}.login-panel-line-contact{margin-top:8px!important;padding:7px 10px!important}.login-panel-line-contact img{width:38px!important;height:38px!important}.login-panel-line-contact strong{font-size:10px!important}.login-panel-line-contact small{font-size:8px!important}
  .login-footer{width:min(100%,390px)!important;flex:0 0 auto!important}
}
@media(max-height:700px) and (max-width:980px){.login-panel-logo{width:45px!important;height:36px!important}.login-panel-header p{display:none!important}.login-panel-line{margin:4px auto 6px!important}.login-field input{height:39px!important}.login-submit,.login-register{min-height:39px!important}.login-panel-line-contact{padding:5px 8px!important}.login-panel-line-contact small{display:none!important}}
