/* หน้าเข้าสู่ระบบ — uxui02 (design-uxui02/v3/Pages.dc.html · 1a) · การ์ดกว้าง 420 กลางจอ · ไม่มีโครงร่วม
   ค่าดีไซน์ START-HERE §4: ปุ่มหลัก #5a6427 (ชี้ #4a5320) · ตัวหนังสือ #1f2937/#4b5565/#667085 · เส้น #e5e7eb · กรอบช่อง #d0d5dd · พื้น #f6f7f5 */
body.lg-body { background: #f6f7f5; margin: 0; color: #1f2937; font-size: 16px; line-height: 1.5; }
.lg-wrap { min-height: calc(100vh / var(--zf, 1)); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.lg-card {
  width: 420px; max-width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}
.lg-head { display: flex; align-items: center; gap: 12px; }
.lg-logo { width: 44px; height: 44px; border-radius: 11px; background: #5a6427; color: #fff; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.lg-logo.img { background: #fff; border: 1px solid #e5e7eb; }
.lg-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lg-ttl { line-height: 1.45; min-width: 0; }
.lg-name { font-size: 22px; font-weight: 700; line-height: 1.45; margin: 0; color: #1f2937; }
.lg-sub { color: #4b5565; font-size: 16px; }
.lg-err { background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 10px 12px; color: #b42318; line-height: 1.5; }
.lg-err .t { font-weight: 700; color: #b42318; font-size: 16px; }
.lg-err .d { font-size: 14px; }
.lg-f, .lg-users { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lg-f > .lbl, .lg-users > .lbl { margin: 0; font-size: 14px; font-weight: 600; color: #344054; }
.lg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-card .lg-chip { height: 40px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid #d0d5dd; background: #fff; color: #344054;
  font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; }
.lg-card .lg-chip:hover { background: #f6f7f5; color: #1f2937; }
.lg-card .lg-chip.on { background: #5a6427; border-color: #5a6427; color: #fff; }
.lg-card input#username, .lg-card input#password {
  height: 48px; min-height: 48px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px; font-size: 18px; width: 100%; box-sizing: border-box; background: #fff; color: #1f2937;
}
.lg-card input#username:focus, .lg-card input#password:focus { outline: 2px solid #5a6427; outline-offset: -1px; border-color: #5a6427; box-shadow: none; }
.lg-card input#password { padding-right: 96px; }
.lg-remembered { font-size: 14px; color: #4b5565; font-weight: 500; }
.lg-remembered button { border: 0; background: transparent; padding: 0; min-height: 0; height: auto; color: #175cd3; text-decoration: underline; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: none; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .pw-eye {
  position: absolute; right: 4px; top: 4px; height: 40px; min-height: 40px; padding: 0 10px; border: 0; background: #f2f4f7;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: #344054; cursor: pointer; box-shadow: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.pw-wrap .pw-eye:hover { background: #eaecf0; color: #1f2937; }
.kbd-warn { font-size: 14px; font-weight: 600; color: #93370d; background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; padding: 4px 8px; line-height: 1.5; }
.remember { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 16px; color: #1f2937; margin: 0; }
.remember input { width: 22px; height: 22px; margin: 0; accent-color: #5a6427; }
.lg-hint { font-size: 13px; color: #667085; text-align: center; line-height: 1.5; }
.lg-go-wrap { display: flex; flex-direction: column; gap: 4px; }
.lg-card .go {
  height: 52px; min-height: 52px; width: 100%; border: 0; border-radius: 10px; background: #5a6427; color: #fff;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: none;
}
.lg-card .go:hover { background: #4a5320; color: #fff; filter: none; }
.lg-card .go:active { background: #4a5320; filter: brightness(.92); }
.lg-card .go:disabled { cursor: not-allowed; opacity: .85; }
.lg-card .go .spin { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: lgspin .8s linear infinite; }
@keyframes lgspin { to { transform: rotate(360deg); } }
.lg-card .btn-reason { text-align: center; font-size: 14px; color: #b54708; }
@media (max-width: 480px) { .lg-wrap { padding: 12px; } .lg-card { padding: 20px 16px; } }
