/* All Chat copy of the nosapp sign-in theme — fonts come from Google Fonts (link in each page), colours below.
   nosapp sign-in theme (user 2026-10-22: "ปรับหน้า login ทุกระบบเป็นรูปแบบเดียวกับ trucksure.nosapp.org … ตามโทนสีของ app").
   Layout = the Circular / TruckSure auth card (split: brand panel left, form right; macOS-style controls; Google Sans).
   Colours = each app's own tone, set with the variables below on .auth-page (PMSx / POSx / Platform each set theirs).
   Source of truth: D:\Platform\contract\auth-theme.css — copied as PMSx static/auth.css, POSx static/auth.css and inlined
   in the Platform console. Change here, then copy to all three. Inputs are 16px+ (no iOS zoom). No coloured edge stripes. */

.auth-page {
  /* app tone — overridden per app */
  --auth-accent: #007aff; --auth-accent-2: #0068d9;
  --auth-accent-soft: #e6f1ff; --auth-accent-ring: rgba(0, 122, 255, .25); --auth-accent-glow: rgba(0, 122, 255, .24);
  --auth-btn: linear-gradient(180deg, #1a8cff, #007aff); --auth-btn-edge: rgba(0, 80, 180, .6);
  --auth-panel: linear-gradient(155deg, #0b2a55 0%, #0a4d9c 55%, #0a74e8 100%);
  --auth-panel-kicker: #b9d9ff; --auth-panel-sub: #d7e8f7;
  --auth-glow-1: rgba(0, 122, 255, .08); --auth-glow-2: rgba(88, 86, 214, .07);
  /* neutrals (macOS) */
  --auth-bg: #f2f2f7; --auth-text: #1d1d1f; --auth-muted: #6e6e73; --auth-line: #d1d1d6;
  --auth-danger: #b42318; --auth-danger-bg: #fff1ef; --auth-warn: #8a4b00; --auth-warn-bg: #fff6e5;
  --auth-ok: #1b7a3d; --auth-ok-bg: #e9f8ee;
  --auth-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 24px 70px rgba(0, 0, 0, .14);
  font-family: "Google Sans", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", "Leelawadee UI", Tahoma, sans-serif;
  color: var(--auth-text);
  background: radial-gradient(circle at 12% 18%, var(--auth-glow-1), transparent 34%), radial-gradient(circle at 92% 85%, var(--auth-glow-2), transparent 36%), var(--auth-bg);
  min-height: 100vh; min-height: 100dvh; margin: 0; -webkit-font-smoothing: antialiased; color-scheme: light;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page button, .auth-page input, .auth-page select { font: inherit; }
.auth-shell { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(400px, 1.05fr); width: min(1240px, calc(100% - 40px));
  min-height: min(780px, calc(100vh - 48px)); margin: 24px auto; overflow: hidden; border-radius: 22px; background: #fff;
  box-shadow: var(--auth-shadow); animation: authIn .32s cubic-bezier(.2, .8, .2, 1) backwards; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; overflow: hidden; color: #fff; background: var(--auth-panel); }
.auth-brand::before, .auth-brand::after { position: absolute; content: ""; border-radius: 50%; pointer-events: none; }
.auth-brand::before { right: -150px; top: -160px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 0 0 70px rgba(255, 255, 255, .025); }
.auth-brand::after { left: -140px; bottom: -180px; width: 390px; height: 390px; background: rgba(255, 255, 255, .045); }
.auth-brand-top, .auth-brand-copy, .auth-brand-status { position: relative; z-index: 1; }
.auth-brand-top { display: flex; align-items: center; gap: 16px; }
.auth-logo { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px; background: rgba(255, 255, 255, .11); flex: none; overflow: hidden; }
.auth-logo img, .auth-logo svg { width: 42px; height: 42px; display: block; }
.auth-kicker, .auth-eyebrow { margin: 0; color: var(--auth-accent); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
.auth-brand .auth-kicker { color: var(--auth-panel-kicker); }
.auth-brand h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.15; color: #fff; font-weight: 700; }
.auth-brand h1 b { font-weight: 800; }
.auth-brand-copy { max-width: 520px; margin: 60px 0; }
.auth-brand-copy .auth-eyebrow { color: var(--auth-panel-kicker); }
.auth-brand-copy h2 { margin: 12px 0 16px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.auth-brand-copy .auth-sub { max-width: 460px; margin: 0; color: var(--auth-panel-sub); font-size: 15.5px; line-height: 1.8; }
.auth-brand-status { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #f0f0f0; background: rgba(0, 0, 0, .14); font-size: 12.5px; }
.auth-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #36d98c; box-shadow: 0 0 0 5px rgba(54, 217, 140, .13); flex: none; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #fff; min-width: 0; }
.auth-panel-inner { width: min(100%, 460px); }
.auth-panel-inner > * { animation: authUp .3s cubic-bezier(.2, .8, .2, 1) backwards; }
.auth-panel-inner > *:nth-child(2) { animation-delay: 40ms; } .auth-panel-inner > *:nth-child(n+3) { animation-delay: 80ms; }
.auth-panel-heading { position: relative; margin-bottom: 24px; }
.auth-panel-heading h2 { margin: 7px 0 7px; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; color: var(--auth-text); font-weight: 700; }
.auth-panel-heading .auth-lead { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }
.auth-environment { position: absolute; top: -8px; right: 0; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(118, 118, 128, .12); font-size: 12px; font-weight: 700; }
.auth-environment a { padding: 4px 10px; border-radius: 8px; color: var(--auth-muted); text-decoration: none; }
.auth-environment a.on { background: #fff; color: var(--auth-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.auth-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; color: var(--auth-danger); background: var(--auth-danger-bg); box-shadow: inset 0 0 0 1px #f5b5b0; font-size: 13.5px; line-height: 1.55; animation: authShake .3s ease-out; }
.auth-alert.warn { color: var(--auth-warn); background: var(--auth-warn-bg); box-shadow: inset 0 0 0 1px #f1cf8f; animation: none; }
.auth-alert.ok { color: var(--auth-ok); background: var(--auth-ok-bg); box-shadow: inset 0 0 0 1px #a8e0bb; animation: none; }
.auth-alert[hidden] { display: none; }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; color: #3a3a3c; font-size: 13px; font-weight: 600; }
.auth-field small { color: var(--auth-muted); font-weight: 400; font-size: 12px; }
.auth-input-wrap { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; min-height: 52px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px var(--auth-line), inset 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .18s; }
.auth-input-wrap:focus-within { box-shadow: 0 0 0 1px var(--auth-accent), 0 0 0 4px var(--auth-accent-ring); }
.auth-input-wrap > svg { width: 19px; height: 19px; margin-left: 16px; fill: #8e8e93; }
.auth-input-wrap input { width: 100%; height: 50px; padding: 0 16px 0 12px; border: 0; outline: 0; color: var(--auth-text); background: transparent; font-size: 16px; font-weight: 500; min-width: 0; }
.auth-input-wrap input:focus, .auth-input-wrap input:focus-visible { box-shadow: none; outline: none; }
.auth-input-wrap input::placeholder { color: #a0a0a6; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; color: #3a3a3c; font-size: 14px; cursor: pointer; line-height: 1.5; }
.auth-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--auth-accent); flex: none; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: 10px; color: #fff;
  background: var(--auth-btn); box-shadow: 0 0 0 .5px var(--auth-btn-edge), 0 6px 16px var(--auth-accent-glow); font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, filter .12s; }
.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:active:not(:disabled) { transform: scale(.98); filter: brightness(.95); }
.auth-submit:focus-visible { outline: 3px solid var(--auth-accent-ring); outline-offset: 3px; }
.auth-submit:disabled { opacity: .65; cursor: default; transform: none; }
.auth-submit svg { width: 19px; height: 19px; fill: currentColor; }
.auth-submit.secondary { color: var(--auth-accent); background: rgba(118, 118, 128, .12); box-shadow: none; }
.auth-submit.choice { justify-content: space-between; color: var(--auth-text); background: #fff; box-shadow: 0 0 0 1px var(--auth-line); font-weight: 600; }
.auth-help { margin-top: 18px; padding: 13px 15px; border-radius: 10px; color: #6e6e73; background: #f5f5f7; font-size: 12.5px; line-height: 1.55; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.auth-link { border: 0; background: none; color: var(--auth-accent); font-weight: 700; cursor: pointer; padding: 6px 0; font-size: 14px; text-decoration: none; }
.auth-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e5ea; color: #8e8e93; font-size: 11px; }
/* PIN pad (POSx) */
.auth-pins { display: flex; justify-content: center; gap: 12px; min-height: 22px; margin: 4px 0 2px; }
.auth-pins i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--auth-line); }
.auth-pins i.f { background: var(--auth-accent); box-shadow: none; }
.auth-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.auth-keypad button { min-height: 58px; border: 0; border-radius: 12px; background: rgba(118, 118, 128, .10); color: var(--auth-text); font-size: 22px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.auth-keypad button:active { background: var(--auth-accent-soft); transform: scale(.97); }
@keyframes authIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes authUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes authShake { 0%, 100% { transform: none; } 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; width: min(620px, calc(100% - 28px)); min-height: auto; margin: 14px auto; }
  .auth-brand { padding: 28px; } .auth-brand-copy { margin: 30px 0 22px; } .auth-brand-copy h2 { font-size: 28px; } .auth-brand-copy .auth-sub { display: none; }
  .auth-panel { padding: 30px 24px 28px; }
}
@media (max-width: 520px) {
  .auth-shell { width: 100%; min-height: 100vh; min-height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; animation: none; }
  .auth-brand { padding: 18px 16px 20px; flex: none; } .auth-logo { width: 46px; height: 46px; } .auth-logo img, .auth-logo svg { width: 34px; height: 34px; }
  .auth-brand h1 { font-size: 22px; } .auth-brand-copy { margin: 14px 0 0; } .auth-brand-copy .auth-eyebrow { display: none; }
  .auth-brand-copy h2 { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: 0; } .auth-brand-copy h2 br { display: none; } .auth-brand-status { display: none; }
  .auth-panel { align-items: start; padding: 24px 16px; flex: 1; } .auth-panel-heading h2 { font-size: 27px; }
  .auth-environment { position: static; display: inline-flex; margin-bottom: 14px; } .auth-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .auth-shell, .auth-panel-inner > *, .auth-alert { animation: none !important; } .auth-submit { transition: none; } }
/* All Chat tone: magenta → violet → ocean, like the app and the website */
.auth-page.allchat {
  --auth-accent: #8a46b0; --auth-accent-2: #6c2f93;
  --auth-accent-soft: #f3eafa; --auth-accent-ring: rgba(138, 70, 176, .25); --auth-accent-glow: rgba(138, 70, 176, .28);
  --auth-btn: linear-gradient(120deg, #c2379b 0%, #8a46b0 48%, #1f93cf 100%); --auth-btn-edge: rgba(90, 30, 120, .5);
  --auth-panel: linear-gradient(158deg, #4a1658 0%, #3a1f6e 52%, #124a78 100%);
  --auth-panel-kicker: #f2c6f0; --auth-panel-sub: #e6dcf2;
  --auth-glow-1: rgba(194, 55, 155, .09); --auth-glow-2: rgba(31, 147, 207, .09);
}
.auth-plats { display: flex; gap: 10px; margin-top: 26px; }
.auth-plats span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.auth-plats svg { width: 21px; height: 21px; }
.auth-steps { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: st; }
.auth-steps li { flex: 1; counter-increment: st; font-size: 12px; color: var(--auth-muted); line-height: 1.35; padding-top: 10px; border-top: 3px solid var(--auth-line); }
.auth-steps li::before { content: counter(st) ". "; font-weight: 700; }
.auth-steps li.on { color: var(--auth-accent-2); border-top-color: var(--auth-accent); font-weight: 600; }
.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-limits { border-radius: 12px; background: #f7f5fa; box-shadow: inset 0 0 0 1px #e7e1ee; padding: 12px 14px; font-size: 13px; line-height: 1.55; }
.auth-limits b.t { display: block; font-size: 13px; margin-bottom: 6px; color: var(--auth-text); }
.auth-limits .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.auth-limits .row span:last-child { color: var(--auth-accent-2); font-weight: 600; text-align: right; }
.auth-limits details { margin-top: 6px; }
.auth-limits summary { cursor: pointer; color: var(--auth-accent); font-weight: 700; font-size: 12.5px; }
.auth-limits .chlim { background: transparent; border: 0; padding: 8px 0 0; }
.auth-check a { color: var(--auth-accent); font-weight: 600; }
.auth-done { text-align: center; padding: 10px 0; }
.auth-done .ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--auth-ok-bg); color: var(--auth-ok); }
.auth-done .ic svg { width: 32px; height: 32px; fill: currentColor; }
.auth-done h3 { margin: 0 0 8px; font-size: 22px; }
.auth-done p { margin: 0; color: var(--auth-muted); line-height: 1.7; font-size: 14.5px; }
.auth-done p b { color: var(--auth-text); }
@media (max-width: 520px) { .auth-grid2 { grid-template-columns: 1fr; } .auth-plats { display: none; } }/* channel limits (channel-limits.js) on the sign-up page — the app's .chlim look without app.css */
.auth-page .chlim-item + .chlim-item { border-top: 1px solid #e5e5ea; margin-top: 8px; padding-top: 8px; }
.auth-page .chlim-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-page .chlim-head span { color: var(--auth-accent-2); font-weight: 500; }
.auth-page .chlim ul { margin: 4px 0 0; padding-left: 18px; color: var(--auth-muted); }
.auth-page .chlim-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e5ea; color: var(--auth-muted); }
.auth-page [hidden] { display: none !important; }.auth-page.allchat .auth-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.auth-page.allchat .auth-kicker, .auth-page.allchat .auth-eyebrow { letter-spacing: .01em; font-size: 12.5px; }   /* Thai reads badly when spaced out */