@charset "UTF-8";

@font-face {
    font-family: Anuphan;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/anuphan-thai.woff2") format("woff2");
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
    font-family: Anuphan;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/anuphan-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;
    --ink: #182038;
    --red: #b91437;
    --paper: #f7f4f4;
    --white: #fff;
    --muted: #565064;
    --border: #ddd4d8;
    font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.24; }
a { color: var(--red); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #6a407e; outline-offset: 3px; }

.portal {
    width: min(100%, 31rem);
    margin-inline: auto;
    padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-block: .2rem 1.1rem;
}
.brand-mark {
    flex: none;
    width: 5.75rem;
    aspect-ratio: 836 / 235;
    overflow: hidden;
    mix-blend-mode: multiply;
}
.brand-mark img {
    display: block;
    width: 100%;
    height: auto;
}
.brand-name {
    border-left: 1px solid #cbd2df;
    padding-left: .65rem;
    color: #182038;
    font: 600 1.025rem/1.2 Anuphan, system-ui, sans-serif;
}
.mini-intro { display: flex; flex-flow: row-reverse wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.mini-intro img { object-fit: contain; width: min(33%, 126px); height: auto; }
.panel {
    background: var(--white);
    margin-top: .9rem;
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: 1.15rem;
}
.hint { color: var(--muted); margin-bottom: 1.1rem; line-height: 1.6; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
label { font-weight: 700; }
input {
    color: var(--ink);
    width: 100%;
    min-height: 48px;
    padding: .55rem .75rem;
    border: 1px solid #bdb2ba;
    border-radius: .65rem;
    background: var(--white);
    font-size: 1rem;
}
input[aria-invalid="true"] { border-color: var(--red); }
.otp { letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.primary, .secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .45rem .75rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}
.primary {
    width: 100%;
    border: 0;
    border-radius: .7rem;
    background: var(--red);
    color: var(--white);
}
.primary:disabled { opacity: .67; cursor: wait; }
.secondary { color: var(--red); background: transparent; border: 0; margin-top: .5rem; }
.errors {
    background: #fff0f2;
    color: #8a0e2d;
    border-radius: .55rem;
    margin: 0 0 1rem;
    padding: .65rem .65rem .65rem 1.8rem;
}
.portal-footer { text-align: center; margin-top: 1.2rem; font-size: .88rem; }

.
