/* หน้าเข้าสู่ระบบ — ดีไซน์ใหม่ (design-handoff/Login.dc.html) · การ์ดกว้าง 440 กลางจอ */
body.lg-body { background: var(--bg-soft, #f5f7fa); margin: 0; }
.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: 440px; max-width: 100%; background: #fff; border: 1px solid #e1e6ec; border-radius: 12px;
  padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box;
}
.lg-head { display: flex; align-items: center; gap: 12px; }
.lg-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--nav, #2a2e35); color: #eef0e4; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.lg-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lg-name { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; color: var(--text, #1a2230); }
.lg-sub { color: var(--text-2, #4b5565); font-size: 17px; }
.lg-err { background: var(--danger-bg, #fdecec); border: 2px solid var(--danger-text, #b91c1c); border-radius: 10px; padding: 10px 12px; color: #9b1515; }
.lg-err .t { font-weight: 700; color: var(--danger-text, #b91c1c); font-size: 17px; }
.lg-err .d { font-size: 16px; }
.lg-f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lg-f > .lbl { margin: 0; font-size: 15px; font-weight: 700; color: var(--text, #1a2230); }
.lg-card input#username, .lg-card input#password {
  height: 52px; min-height: 52px; border: 2px solid var(--line-strong, #d5dbe3); border-radius: 10px; padding: 0 14px; font-size: 19px; width: 100%; box-sizing: border-box;
}
.lg-card input#username:focus, .lg-card input#password:focus { border-color: var(--brand, #5a6427); }
.lg-card input#password { padding-right: 96px; }
.lg-remembered { font-size: 14px; color: var(--text-2, #4b5565); font-weight: 500; }
.lg-remembered button { border: 0; background: transparent; padding: 0; min-height: 0; color: var(--nav, #2a2e35); text-decoration: underline; cursor: pointer; font-size: 14px; font-weight: 600; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .pw-eye {
  position: absolute; right: 6px; top: 6px; height: 40px; min-height: 40px; padding: 0 10px; border: 0; background: var(--chip, #eef1f5);
  border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text, #1a2230); cursor: pointer; box-shadow: none;
}
.pw-wrap .pw-eye:hover { filter: brightness(.95); background: var(--chip, #eef1f5); color: var(--text, #1a2230); }
.kbd-warn { font-size: 15px; font-weight: 700; color: var(--warn-text, #8f4407); background: var(--warn-bg, #fdf1e1); border-radius: 6px; padding: 4px 8px; }
.remember { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--text, #1a2230); margin: 0; }
.remember input { width: 24px; height: 24px; margin: 0; accent-color: var(--go, #3f6212); }
.lg-hint { font-size: 14px; color: var(--text-2, #4b5565); text-align: center; }
.lg-go-wrap { display: flex; flex-direction: column; gap: 4px; }
.lg-card .go {
  height: 58px; min-height: 58px; width: 100%; border: 0; border-radius: 10px; background: var(--go, #3f6212); color: #fff;
  font-size: 21px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
}
.lg-card .go:hover { filter: brightness(.9); background: var(--go, #3f6212); }
.lg-card .go:active { filter: brightness(.8); }
.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; }
@media (max-width: 480px) { .lg-wrap { padding: 12px; } .lg-card { padding: 20px 16px; } }
