/* หน้าเข้าสู่ระบบ — โทนน้ำเงิน nTik (ไม่ขึ้นกับ Theme ภายในโปรแกรม) */
.lg-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: #0f2a6b;
  background: radial-gradient(120% 70% at 50% 0%, #2f7bff 0%, #0b4fd6 38%, #06308f 72%, #041d5c 100%);
  font-family: 'IBM Plex Sans Thai', system-ui, sans-serif; overflow-x: hidden;
}
.lg { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 170px; box-sizing: border-box; }
.lg-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lg-glow::before, .lg-glow::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid rgb(120 200 255 / .35);
  filter: blur(1px); width: 140vmax; height: 60vmax; left: -20vmax; }
.lg-glow::before { top: -38vmax; transform: rotate(-12deg); box-shadow: 0 0 40px rgb(80 170 255 / .35); }
.lg-glow::after { bottom: -30vmax; transform: rotate(8deg); border-color: rgb(120 200 255 / .25); }

/* ---------- ตราสัญลักษณ์ ---------- */
.lg-mark { position: relative; text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: 22px; }
.lg-wave { width: 92px; height: 64px; margin-bottom: -22px; margin-left: 64px; position: relative; z-index: 1; }
.lg-wave path { fill: none; stroke: #39d5ff; stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(57 213 255 / .8)); }
.lg-wave circle { fill: #39d5ff; filter: drop-shadow(0 0 6px rgb(57 213 255 / .8)); }
.lg-word { font-family: 'Kanit', sans-serif; font-style: italic; font-weight: 800; font-size: clamp(64px, 19vw, 104px);
  line-height: .9; letter-spacing: -2px; text-shadow: 0 6px 18px rgb(0 20 80 / .45); }
.lg-word .n { color: #ff2a2a; -webkit-text-stroke: 1px #c40000; }
.lg-word .t { color: #fff; }
.lg-tag { color: #fff; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(17px, 5vw, 22px); letter-spacing: .4px;
  text-shadow: 0 2px 10px rgb(0 20 80 / .5); margin-top: 4px; }
.lg-swoosh { width: min(250px, 66vw); height: 14px; margin-top: -4px; }
.lg-swoosh path { fill: #fff; filter: drop-shadow(0 0 4px rgb(255 255 255 / .6)); }

/* ---------- การ์ด ---------- */
.lg-card { position: relative; z-index: 1; width: 100%; max-width: 440px; box-sizing: border-box; padding: 26px 24px 24px;
  border-radius: 26px; background: rgb(244 248 255 / .96); border: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 24px 60px rgb(0 18 70 / .45), inset 0 1px 0 #fff; display: grid; gap: 10px; }
.lg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.lg-ico { flex: none; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #3f8bff, #1d4fd8); box-shadow: 0 8px 18px rgb(29 79 216 / .4); }
.lg-ico svg { width: 42px; height: 42px; }
.lg-head h1 { margin: 0; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(18px, 5vw, 22px); color: #0d2a78; line-height: 1.25; }
.lg-head p { margin: 2px 0 0; color: #4a5a7f; font-size: 14px; }

.lg-lbl { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 16px; color: #0d2a78; }
.lg-lbl svg { width: 20px; height: 20px; fill: #1d64f0; color: #1d64f0; }
.lg-field { position: relative; }
.lg-field > svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: #7d879c; color: #7d879c; pointer-events: none; }
.lg-field input { width: 100%; box-sizing: border-box; padding: 14px 48px 14px 46px; border-radius: 14px; font: inherit; font-size: 16px;
  color: #0f2a6b; background: linear-gradient(#eef3fc, #e6edf9); border: 1.5px solid #8fb1ef; outline: none; transition: border-color .15s, box-shadow .15s; }
.lg-field input::placeholder { color: #8590a6; }
.lg-field input:focus { border-color: #1d64f0; box-shadow: 0 0 0 4px rgb(29 100 240 / .18); background: #fff; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: transparent; color: #56627c; cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover { background: rgb(29 100 240 / .08); }
.lg-eye svg { width: 22px; height: 22px; }
.lg-eye[aria-pressed="true"] .slash { display: none; }

.lg-btn { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px; border: 0; border-radius: 999px;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 19px; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #2a7bff, #0b45d0); box-shadow: 0 10px 22px rgb(11 69 208 / .45), inset 0 1px 0 rgb(255 255 255 / .35);
  transition: transform .1s, filter .15s; }
.lg-btn:hover { filter: brightness(1.08); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn svg { width: 26px; height: 26px; }
.lg-err { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #ffe9e9; color: #b3261e; font-size: 14px; }
.lg-warn { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff6dc; color: #7a5600; font-size: 13px; }
.lg-warn code { background: rgb(0 0 0 / .06); color: #5a3f00; padding: 0 4px; border-radius: 4px; }

/* ---------- เมืองด้านล่าง ---------- */
.lg-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; }
.lg-city .bld rect { fill: url(#lgWin); opacity: .35; }
.lg-city .arcs path { fill: none; stroke: #d6f0ff; stroke-width: 1.6; opacity: .85; filter: drop-shadow(0 0 3px #7fd3ff); }
.lg-city .dot circle { fill: #fff; filter: drop-shadow(0 0 6px #7fd3ff) drop-shadow(0 0 12px #7fd3ff); }

@media (max-width: 600px) { .lg-city { height: 96px; } .lg { padding-bottom: 120px; } }
@media (max-height: 760px) { .lg { padding-top: 16px; } .lg-mark { margin-bottom: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .lg-city .dot circle { animation: lgPulse 2.4s ease-in-out infinite; }
  .lg-city .dot circle:nth-child(2n) { animation-delay: 1.2s; }
  @keyframes lgPulse { 50% { opacity: .45; } }
}
