/* Sign-in / account pages — the app's orange theme. Sarabun is bundled by `npm run package` (assets/fonts). */
@font-face { font-family: 'Sarabun'; font-weight: 400; font-display: swap; src: url(fonts/sarabun-thai-400-normal.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 400; font-display: swap; src: url(fonts/sarabun-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: 'Sarabun'; font-weight: 700; font-display: swap; src: url(fonts/sarabun-thai-700-normal.woff2) format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 700; font-display: swap; src: url(fonts/sarabun-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026; }

:root { --orange: #C2410C; --orange-bright: #F97316; --bg: #FDF0E8; --text: #1F2937; --muted: #4B5563; --line: #FED7AA; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; min-height: 100vh; font-family: 'Sarabun', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif; color: var(--text); line-height: 1.6;
  background: radial-gradient(circle at 15% 10%, #FFE4CC 0, transparent 45%), radial-gradient(circle at 90% 85%, #FFD9B8 0, transparent 40%), var(--bg); }
a { color: var(--orange); font-weight: 600; }
.auth-shell { width: 100%; max-width: 460px; margin: 0 auto; padding: 32px 16px 48px; }
.auth-shell.wide { max-width: 980px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-bottom: 18px; }
.logo-icon { background: var(--orange); color: #fff; font-weight: 700; border-radius: 12px; padding: 8px 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.tagline { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.app-name { font-weight: 700; }
.card { background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(194, 65, 12, 0.12); backdrop-filter: blur(10px); }
.eyebrow { margin: 0; color: var(--orange); font-weight: 700; font-size: 0.85rem; }
h1 { font-size: 1.45rem; line-height: 1.35; margin: 4px 0 6px; }
h2 { font-size: 1.05rem; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.lede { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); font-weight: 400; }
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; font-weight: 600; font-size: 0.92rem; }
input[type=text], input[type=email], input[type=password] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #D6B8A0; border-radius: 12px; background: #fff; color: var(--text); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.6); outline-offset: 2px; }
.pw-wrap { display: flex; gap: 8px; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-toggle { font: inherit; font-size: 0.85rem; padding: 0 12px; border-radius: 12px; border: 1px solid #D6B8A0; background: #FFF7ED; color: var(--orange); font-weight: 600; cursor: pointer; }
.btn { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 12px; border: 1px solid #D6B8A0; background: #fff; color: var(--orange); cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #D9480F, #C2410C); border-color: #C2410C; color: #fff; box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3); }
.btn-sm { padding: 5px 10px; font-size: 0.82rem; font-weight: 600; }
.btn-danger { color: #B91C1C; border-color: #FCA5A5; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--orange); font-weight: 600; text-decoration: underline; cursor: pointer; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: 0.92rem; }
.alert { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 0.92rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-ok { background: #D1FAE5; color: #065F46; }
.copy-field { margin: 8px 0; font-size: 0.82rem; }
.steps { padding-left: 20px; margin: 0 0 8px; }
.steps li { margin-bottom: 6px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.92rem; }
.checks .ok { color: #065F46; }
.checks .bad { color: #991B1B; font-weight: 700; }
.user-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 4px 12px; font-size: 0.9rem; }
.inline-form { display: inline; margin: 0; }
.inline-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 16px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #FFEDD5; vertical-align: top; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions form { margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 18px 0 0; }
