@charset "UTF-8";
:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 1.65; color: #241c20; background: #f6f4f5; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; }
button:focus-visible, input:focus-visible { outline: 3px solid #c8102e; outline-offset: 4px; }
.login-shell { max-width: 1020px; margin: 0 auto; padding: 38px 32px 28px; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.wordmark { position: relative; color: #381522; font-size: 29px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.4; padding-bottom: 6px; }
.wordmark > span { position: absolute; bottom: 0; left: 1px; height: 3px; width: 40px; background: #c8102e; }
.language-switch { display: flex; gap: 3px; border: 1px solid #e6dce0; border-radius: 10px; padding: 4px; background: #eee9eb; }
.language-switch button { min-height: 34px; border: 0; border-radius: 7px; padding: 5px 13px; color: #665963; background: transparent; font-size: 12px; }
.language-switch button[aria-pressed=true] { color: #9f0d24; background: white; font-weight: 650; box-shadow: 0 1px 4px #32192312; }
.language-switch button:hover { color: #9f0d24; }
.login-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid #e6dce0; border-radius: 18px; background: white; box-shadow: 0 7px 26px #32192307; overflow: hidden; }
.login-context { display: flex; flex-direction: column; align-items: flex-start; padding: 46px 36px; background: #260e16; color: #fff; }
.eyebrow { color: #e3bdc9; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; }
.login-context h2 { margin: 18px 0 10px; font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.7px; }
.context-lead { margin: 0; font-size: 19px; line-height: 1.6; color: #f9eaf0; }
.context-note { margin: 28px 0 22px; font-size: 13px; line-height: 1.85; color: #d7b8c3; }
.access-badge { margin-top: auto; padding: 5px 10px; border: 1px solid #78404f; border-radius: 6px; background: #421725; color: #f8dce5; font-size: 11px; font-weight: 600; }
.login-card { padding: 42px 38px 30px; min-width: 0; }
h1 { margin: 0 0 10px; font-size: 29px; font-weight: 700; line-height: 1.3; letter-spacing: -.6px; }
.login-intro { margin: 0 0 25px; color: #665963; font-size: 14px; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.field input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cdbcc3; border-radius: 8px; color: #241c20; background: white; font-size: 15px; }
.field input:disabled { color: #665963; background: #f6f3f4; }
.field input[aria-invalid=true] { border-color: #a13c2b; }
.logged-out-message { padding: 11px 13px; margin: 20px 0 5px; border: 1px solid #e6c7d0; border-radius: 8px; background: #fff4f7; color: #783144; font-size: 13px; line-height: 1.75; }
.login-error { margin-top: 17px; padding: 11px 13px; border: 1px solid #edcbbf; border-radius: 8px; background: #fff4f0; color: #a13c2b; font-size: 13px; line-height: 1.75; }
.login-submit { width: 100%; min-height: 45px; margin-top: 24px; padding: 10px 16px; border: 1px solid #c8102e; border-radius: 9px; background: #c8102e; color: white; font-size: 14px; font-weight: 650; }
.login-submit:hover { background: #9f0d24; border-color: #9f0d24; }
.login-submit:disabled { background: #e6d8dd; border-color: #e6d8dd; color: #6d5760; }
.login-status { margin: 10px 0 0; min-height: 0; color: #783144; font-size: 12px; }
.login-status:empty { margin: 0; }
.login-help { margin: 23px 0 0; padding-top: 20px; border-top: 1px solid #e6dce0; color: #665963; font-size: 12px; line-height: 1.75; }
footer { margin-top: 23px; color: #665963; font-size: 11px; text-align: center; }
html[lang=th] h1, html[lang=th] h2, html[lang=zh-Hant] h1, html[lang=zh-Hant] h2 { letter-spacing: 0; line-height: 1.5; }
html[lang=th] p { line-height: 1.9; }
@media (max-width: 760px) { .login-shell { max-width: 620px; padding: 25px 22px; } .login-header { margin-bottom: 24px; } .login-layout { grid-template-columns: 1fr; } .login-context { padding: 28px; } .login-context h2 { margin-top: 10px; font-size: 27px; } .context-lead { font-size: 16px; } .context-note { margin: 17px 0 0; } .access-badge { margin-top: 18px; } .login-card { padding: 30px 28px; } }
@media (max-width: 400px) { .login-shell { padding: 20px 16px; } .login-header { gap: 12px; } .language-switch button { padding-left: 9px; padding-right: 9px; font-size: 11px; } .login-context, .login-card { padding: 24px 22px; } h1 { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
