/* Login + profile pages (Pom, 2026-09-29). Same tokens as styles.css. */
body.auth { min-height: 100%; height: auto; display: grid; justify-items: center; align-content: safe center; gap: 18px; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #6b3fc0 0%, var(--page) 60%) no-repeat var(--page); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); color: var(--ink); border-radius: 22px;
  box-shadow: var(--shadow); padding: 28px 24px 22px; }
.auth-card.wide { max-width: 480px; }
.auth-top { text-align: center; }
.auth-top img { width: 92px; height: 92px; border-radius: 50%; image-rendering: pixelated; background: #efe6fd;
  border: 3px solid #9b6ce8; padding: 3px; }
.auth-top h1 { font-family: Mitr, "IBM Plex Sans Thai", sans-serif; font-weight: 500; font-size: 24px; margin: 10px 0 2px; }
.auth-top p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.providers { display: grid; gap: 10px; margin: 22px 0 6px; }
.pbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px;
  font: 500 15.5px "IBM Plex Sans Thai", sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.pbtn svg { width: 22px; height: 22px; flex: none; }
.pbtn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.pbtn.google:hover { background: #f7f8f8; }
.pbtn.line { background: #06c755; color: #fff; }
.pbtn.line:hover { background: #05b34c; }
.auth-note { color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.6; margin: 14px 0 0; }
.auth-alert { border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 16px; line-height: 1.5; }
.auth-alert.err { background: rgba(236, 59, 59, .1); color: var(--warn-ink); }
.auth-alert.ok { background: rgba(47, 191, 91, .12); color: #1b7a3a; }
@media (prefers-color-scheme: dark) { .auth-alert.ok { color: #7fe0a0; } }

/* profile form */
.pform { display: grid; gap: 14px; margin-top: 20px; }
.pform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .pform .two { grid-template-columns: 1fr; } }
.pform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.pform label small { color: var(--muted); font-weight: 400; }
.pform input[type=text], .pform input[type=tel], .pform input[type=email] { height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 15px "IBM Plex Sans Thai", sans-serif; }
.pform input:focus { outline: 2px solid var(--accent-fill); outline-offset: 0; border-color: transparent; }
.pform input.bad { border-color: var(--red); }
.pform .err { color: var(--warn-ink); font-size: 12.5px; font-weight: 400; min-height: 0; }
.pform .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; line-height: 1.55; }
.pform .consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-fill); flex: none; }
.pform .from { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.pform button[type=submit] { height: 48px; border-radius: 12px; background: var(--accent-fill); color: #fff; border: 0;
  font: 600 16px "IBM Plex Sans Thai", sans-serif; cursor: pointer; }
.pform button[disabled] { opacity: .6; cursor: default; }
.who { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.auth-note a, .pform .consent a { color: var(--accent); }
.auth-top .th-name { color: var(--muted); font-weight: 400; font-size: 20px; }
.about { width: 100%; max-width: 420px; color: rgba(255,255,255,.86); font-size: 13.5px; line-height: 1.7; }
.about h2 { font-size: 14.5px; margin: 10px 0 2px; color: #fff; }
.about p { margin: 4px 0; }
.about .links { margin-top: 10px; font-size: 12.5px; }
.about a { color: #fff; }
