@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSansThai-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: #27251f; background: #f3eee4; font-family: "IBM Plex Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #72a7c5; outline-offset: 3px; }
.login-shell { min-height: 100vh; padding: 24px; display: grid; place-items: center; background-image: linear-gradient(rgba(73,104,79,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(73,104,79,.055) 1px, transparent 1px); background-size: 24px 24px; }
.login-card { width: min(100%, 390px); padding: 38px; border-radius: 18px; background: #fbf8f1; box-shadow: 0 0 0 1px rgba(70,58,40,.06), 0 18px 60px rgba(70,58,40,.12); text-align: center; }
.brand-mark { width: 44px; height: 44px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(3deg); }
.brand-mark i { background: #e16b64; }.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:#f1a58d}.brand-mark i:nth-child(4){background:#49684f}
.eyebrow { margin: 0 0 8px; color: #49684f; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
h1 { margin: 0; font-size: 29px; font-weight: 600; letter-spacing: -.03em; }
.intro { margin: 8px 0 24px; color: #625e55; font-size: 13px; line-height: 1.55; }
form > label { display: block; margin-bottom: 7px; color: #625e55; font-size: 12px; text-align: left; }
#password { width: 100%; height: 50px; padding: 8px 14px; border: 1px solid rgba(66,58,44,.22); border-radius: 9px; background: #eee7da; color: #27251f; font-size: 22px; letter-spacing: .28em; text-align: center; }
.keypad { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 48px; border: 1px solid rgba(66,58,44,.14); border-radius: 9px; background: #f3eee4; color: #39362f; cursor: pointer; transition: background-color 150ms ease, transform 120ms ease; }
.keypad button:hover { background: #e8eadd; }.keypad button:active { transform: scale(.96); }
.error { min-height: 20px; margin: 10px 0 4px; color: #a43f37; font-size: 12px; }
.submit-button { width: 100%; min-height: 48px; border: 0; border-radius: 9px; background: #314b38; color: white; font-weight: 600; cursor: pointer; }
.submit-button:hover { background: #233c2a; }.submit-button:disabled { opacity: .6; cursor: wait; }
.privacy { margin: 20px 0 0; color: #8d877b; font-size: 10px; }.privacy span { color: #589162; }
@media(max-width:480px){.login-shell{padding:16px}.login-card{padding:28px 20px}.keypad button{min-height:52px}}
@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}
