@font-face {
    font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('../fonts/noto-sans-thai-thai.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
    font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('../fonts/noto-sans-thai-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { color-scheme: light; --navy: #091e44; --red: #c5091b; --muted: #657187; --line: #e2e7ef; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--navy); background: #f3f8fc url('../images/river-pattern.svg') center top / 1600px 1400px repeat-y; font: 15px/1.7 'Noto Sans Thai', Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #287bd0; outline-offset: 4px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 10px 18px; background: #fff; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page-header { width: 100%; min-height: 100px; padding: 18px max(32px, calc((100% - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #ffffffba; border-top: 4px solid var(--red); border-bottom: 1px solid #e1e9f2; }
.brand { display: flex; gap: 20px; align-items: center; }
.brand img { width: 99px; }
.brand strong { display: block; font-size: 15px; letter-spacing: 1.2px; }
.brand > span > span { color: var(--muted); font-size: 12px; }
.back-link { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 13px; }
.back-link .icon { width: 17px; transform: rotate(180deg); }
.back-link:hover { color: var(--red); }
main { flex: 1; display: grid; align-items: center; width: 100%; padding: 48px 24px; }
.login-card { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid #dae4ef; box-shadow: 0 20px 60px #152f5712, 0 4px 12px #152f5706; }
.event-panel { position: relative; overflow: hidden; padding: 40px; color: #fff; background: radial-gradient(ellipse at 100% 0, #244974 0, transparent 64%), linear-gradient(155deg, #102c54, #061831); display: flex; flex-direction: column; justify-content: center; }
.edition-label { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 12px; border: 1px solid #ffffff30; border-radius: 6px; color: #e5ecf7; font-size: 10px; letter-spacing: 1.7px; }
.edition-label > span { width: 6px; height: 6px; background: #f6c768; border-radius: 50%; }
.edition-label sup { margin-left: -6px; letter-spacing: 0; }
.event-copy { margin: 29px 0 27px; }
.event-kicker { font-size: 13px; color: #f6cd7e; margin-bottom: 9px; }
.event-copy h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.5; letter-spacing: -.6px; }
.event-copy > p:last-child { color: #c1d0e3; font-size: 13px; margin-top: 13px; line-height: 1.85; }
.event-art { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid #ffffff30; box-shadow: 0 10px 24px #020f2933; }
.event-details { display: grid; gap: 9px; margin-top: 23px; }
.event-details p { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #e8eff9; }
.event-details .icon { color: #e9bd72; width: 17px; height: 17px; }
.panel-caption { margin-top: 23px; padding-top: 17px; border-top: 1px solid #ffffff20; font-size: 10px; color: #b3c4da; line-height: 1.8; }
.form-panel { padding: 44px 48px 32px; align-self: center; min-width: 0; }
.form-panel:focus { outline: none; }
.access-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff0f1; color: var(--red); margin-bottom: 21px; }
.access-icon .icon { width: 26px; height: 26px; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 2px; margin-bottom: 7px; }
h1 { font-size: 29px; line-height: 1.5; font-weight: 750; letter-spacing: -.6px; }
.form-heading > p:last-child { font-size: 13px; color: var(--muted); margin-top: 8px; }
form { margin-top: 27px; }
.field { margin-bottom: 19px; }
.field label { display: inline-block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 15px; top: 16px; color: #7a889e; width: 19px; height: 19px; pointer-events: none; }
.input-wrap input { width: 100%; height: 52px; border: 1px solid #d7dfe9; border-radius: 9px; padding: 0 14px 0 45px; background: #fbfcfe; color: var(--navy); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #778398; font-size: 13px; }
.input-wrap input:focus { outline: none; border-color: #5176a6; box-shadow: 0 0 0 3px #5176a619; background: #fff; }
.input-wrap input[aria-invalid="true"] { border-color: var(--red); }
#password { padding-right: 54px; }
.password-toggle { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 6px; background: transparent; color: #6b7a90; }
.password-toggle:hover { color: var(--navy); background: #edf2f8; }
.field-error, .caps-hint { font-size: 12px; margin-top: 6px; }
.field-error { color: #b20719; }
.caps-hint { color: #87500e; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 25px; border: 1px solid #b20718; border-radius: 9px; background: linear-gradient(110deg, #d31025, #b80719); color: #fff; font-size: 15px; font-weight: 650; box-shadow: 0 5px 12px #c5091b18; transition: background .15s, box-shadow .15s; }
.submit-button:hover { background: #a90818; box-shadow: 0 6px 16px #c5091b30; }
.submit-button:active { box-shadow: none; }
.submit-button .icon { width: 18px; }
.login-notice { padding: 12px 14px; margin-bottom: 20px; border: 1px solid #b7d8d0; background: #f0faf6; border-radius: 8px; color: #24644e; font-size: 13px; }
.submit-button:disabled { cursor: wait; opacity: .75; }
.form-alert { padding: 12px 14px; margin-bottom: 20px; border: 1px solid #edbdc3; background: #fff3f4; border-radius: 8px; color: #9c1121; font-size: 13px; }
.login-help { margin: 23px 0; font-size: 12px; text-align: center; }
.login-help summary { width: fit-content; margin: auto; padding: 8px 0; color: #495d7b; text-underline-offset: 4px; }
.login-help summary:hover { color: var(--red); text-decoration: underline; }
.login-help p { text-align: left; margin-top: 9px; padding: 12px 15px; background: #f3f6fa; border-radius: 8px; color: var(--muted); }
.restricted-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.restricted-note .icon { width: 14px; height: 14px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 24px; color: #65758b; font-size: 11px; }
.page-footer > span:first-child { letter-spacing: 1px; }
@media (min-width: 1500px) { main { padding-block: 64px; } }
@media (max-width: 1000px) {
    .event-panel { padding: 30px; }
    .form-panel { padding: 36px 30px 28px; }
    .event-copy h2 { font-size: 27px; }
    h1 { font-size: 26px; }
}
@media (max-width: 760px) {
    .page-header { padding: 14px 22px; min-height: 84px; gap: 12px; }
    .brand { gap: 12px; }
    .brand img { width: 78px; }
    .brand strong { font-size: 12px; letter-spacing: .7px; }
    .brand > span > span { font-size: 10px; }
    .back-link { font-size: 12px; }
    main { padding: 28px 20px; }
    .login-card { max-width: 500px; grid-template-columns: 1fr; border-radius: 18px; }
    .form-panel { grid-row: 1; padding: 32px; }
    .event-panel { padding: 25px 32px; }
    .event-copy { margin: 17px 0 21px; }
    .event-copy h2 { font-size: 24px; }
    .event-copy h2 br { display: none; }
    .event-copy > p:last-child, .event-kicker, .panel-caption { display: none; }
    .event-details { margin-top: 20px; }
    .page-footer { flex-direction: column; gap: 4px; text-align: center; font-size: 10px; }
}
@media (max-width: 420px) {
    .page-header { padding-inline: 16px; }
    .brand > span { display: none; }
    main { padding: 20px 14px; }
    .form-panel { padding: 28px 23px 24px; }
    .event-panel { padding: 25px 23px; }
    h1 { font-size: 26px; }
    .restricted-note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
