/* sc-3844 (PCB-94): หน้า Login — สไตล์เฉพาะหน้า (แทน template sidebar เดิมที่ซ่อนฟอร์มบนมือถือ) */
:root {
  --lp-ink: #1f2933;
  --lp-muted: #52606d;
  --lp-line: #9aa5b1;
  --lp-primary: #0b5cad;
  --lp-primary-dark: #084a8c;
  --lp-danger: #b42318;
  --lp-radius: 10px;
}
* { box-sizing: border-box; }
.lp-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-ink);
  /* sc-6430 (PCB-199) ภาพสำรอง : ปกติ Login.cshtml สุ่มภาพจาก img/bg/ ใส่ inline style ทับ background-image */
  background: #2b3440 url("../PortalAsset/img/bg/bg-img-1.jpg") center / cover no-repeat fixed;
}
.lp-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px 16px;
}
.lp-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 20px;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.lp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lp-logo { display: block; flex: none; }
.lp-title { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--lp-primary); letter-spacing: .03em; }
.lp-sub { display: block; font-size: 1rem; font-weight: 400; color: var(--lp-muted); letter-spacing: 0; }
.lp-social { margin: 0; }
.lp-social form { margin: 0; }
.lp-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--lp-muted); font-size: .875rem; }
.lp-divider::before, .lp-divider::after { content: ""; flex: 1; height: 1px; background: #cbd2d9; }
.lp-field { margin-bottom: 14px; }
.lp-label { display: block; margin-bottom: 4px; font-size: .9375rem; font-weight: 600; color: var(--lp-ink); }
.lp-input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; /* 16px กัน iOS zoom */ color: var(--lp-ink);
  background: #fff; border: 1.5px solid var(--lp-line); border-radius: var(--lp-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-input::placeholder { color: #6b7785; }
.lp-input:focus { outline: none; border-color: var(--lp-primary); box-shadow: 0 0 0 3px rgba(11, 92, 173, .3); }
.lp-input.input-validation-error { border-color: var(--lp-danger); }
.lp-pw { position: relative; }
.lp-input-pw { padding-right: 52px; }
.lp-eye {
  position: absolute; top: 0; right: 0; width: 48px; height: 48px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--lp-muted); background: transparent; border: 0; border-radius: 0 var(--lp-radius) var(--lp-radius) 0; cursor: pointer;
}
.lp-eye:hover { color: var(--lp-ink); }
.lp-eye:focus-visible { outline: 3px solid rgba(11, 92, 173, .6); outline-offset: -3px; }
.lp-eye .lp-eye-off { display: none; }
.lp-eye.is-on .lp-eye-on { display: none; }
.lp-eye.is-on .lp-eye-off { display: block; }
.lp-alert { min-height: 0; }
.lp-error, .lp-error ul { display: block; margin: 4px 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; color: var(--lp-danger); }
#lpSummary .lp-error { margin: 0 0 14px; padding: 10px 12px; background: #fdecea; border: 1px solid #f1b5ae; border-radius: var(--lp-radius); }
.field-validation-valid, .validation-summary-valid { display: none; }
.lp-remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.lp-check { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--lp-primary); cursor: pointer; }
/* sc-6559 (PCB-204) แถวจดจำการเข้าสู่ระบบ: label ขยายเต็มแถว สูง >= 44px กดได้ทั้งแถว */
.lp-check-label { display: flex; align-items: center; flex: 1; min-height: 44px; margin: 0; cursor: pointer; font-size: .9375rem; }
.lp-lead { margin: 0 0 16px; font-size: .9375rem; color: var(--lp-muted); }
.lp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px;
  font: inherit; font-size: 1rem; font-weight: 600; border-radius: var(--lp-radius); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.lp-btn:focus-visible, .lp-link:focus-visible, .lp-social-links a:focus-visible { outline: 3px solid rgba(11, 92, 173, .6); outline-offset: 2px; }
.lp-btn-primary { color: #fff; background: var(--lp-primary); border: 1.5px solid var(--lp-primary); }
.lp-btn-primary:hover { background: var(--lp-primary-dark); border-color: var(--lp-primary-dark); }
.lp-btn-primary:disabled { cursor: progress; opacity: .85; }
.lp-btn-primary.is-loading::before {
  content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%;
  animation: lp-spin .8s linear infinite;
}
.lp-btn-google { color: #1f1f1f; background: #fff; border: 1.5px solid #747775; font-weight: 500; }
.lp-btn-google:hover { background: #f4f6f8; }
.lp-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; color: var(--lp-primary); font-size: .9375rem; font-weight: 600; text-decoration: underline; }
.lp-social-links { display: flex; justify-content: center; gap: 4px; margin: 8px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid #e4e7eb; }
.lp-social-links a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--lp-muted); border-radius: 50%; }
.lp-social-links a:hover { color: var(--lp-primary); background: #eef2f6; }
.lp-intro {
  width: 100%; max-width: 440px; padding: 28px 32px; color: var(--lp-ink);
  background: rgba(255, 255, 255, .88); border-radius: 14px;
}
.lp-intro-title { margin: 0 0 12px; font-size: 1.5rem; font-weight: 600; color: var(--lp-primary); letter-spacing: .03em; }
.lp-intro-text { margin: 0; line-height: 1.8; font-size: .9375rem; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (max-width: 991px) { .lp-intro { display: none; } }
@media (max-width: 420px) { .lp-wrap { padding: 12px; } .lp-card { padding: 22px 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .lp-btn-primary.is-loading::before { animation-duration: 3s; } .lp-input, .lp-btn { transition: none; } }
/* sc-6676 (PCB-211) หน้า Account ที่เหลือ (เข้าสู่ระบบไม่สำเร็จ / ลงทะเบียน Google / ตั้งรหัสผ่านใหม่ / ถูกล็อก) ใช้การ์ดเดียวกับ Login */
.lp-status { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--lp-radius); font-size: .9375rem; }
.lp-status svg { flex: none; margin-top: 2px; }
.lp-status p { margin: 0; }
.lp-status-warn { color: #7a2e0e; background: #fff4e5; border: 1px solid #f5c48b; }
.lp-status-ok { color: #05603a; background: #ecfdf3; border: 1px solid #a6f4c5; }
.lp-email { display: inline-block; max-width: 100%; font-weight: 600; overflow-wrap: anywhere; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.lp-chips li { padding: 4px 12px; font-size: .875rem; font-weight: 600; color: var(--lp-ink); background: #eef2f6; border: 1px solid #cbd2d9; border-radius: 999px; white-space: nowrap; }
.lp-chips-label { margin: 0 0 8px; font-size: .9375rem; color: var(--lp-muted); }
.lp-hint { margin: 12px 0 0; font-size: .875rem; color: var(--lp-muted); }
.lp-input[readonly] { color: var(--lp-muted); background: #f4f6f8; }
.lp-nw { white-space: nowrap; }
