/* 2026-11-21 ONEVA หน้าเข้าสู่ระบบ จอคอม (≥1024px) · login.php ?ld=a|b|c · มือถือ/แท็บเล็ตไม่เปลี่ยน */
.lgk-side, .lgk-sw { display: none; }

@media (min-width: 1024px) {
  body.lgk { padding: 0; }
  body.lgk .app { max-width: none; min-height: 100vh; margin: 0; padding: 0; border-radius: 0; box-shadow: none; }
  body.lgk .lg-back { left: 28px; top: 24px; }
  body.lgk .lg-wrap { min-height: 100vh; padding: 0; }
  body.lgk .lg-card { margin-top: 0; }
  body.lgk .lgk-side { display: flex; flex-direction: column; position: relative; overflow: hidden; }

  /* ส่วนประกอบฝั่งแบรนด์ (A, B) */
  .lgk-logo { width: 170px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25)); animation: lgPop .8s cubic-bezier(.2, .9, .3, 1.3) both; }
  body.lgk .lgk-side .lgk-h { margin: 28px 0 0; font-size: 38px; font-weight: 800; line-height: 1.2; color: #fff; animation: lgUp .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
  body.lgk .lgk-side .lgk-h span { color: #a5f3fc; }
  body.lgk .lgk-side .lgk-p { margin: 12px 0 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); animation: lgUp .6s cubic-bezier(.2, .8, .2, 1) .22s both; }
  .lgk-ft { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; max-width: 440px; }
  .lgk-ft li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: lgUp .6s cubic-bezier(.2, .8, .2, 1) both; }
  .lgk-ft li:nth-child(1) { animation-delay: .3s; } .lgk-ft li:nth-child(2) { animation-delay: .38s; } .lgk-ft li:nth-child(3) { animation-delay: .46s; }
  .lgk-ft .fi { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(165, 243, 252, .2); color: #a5f3fc; }
  .lgk-ft .fi svg { width: 22px; height: 22px; }
  body.lgk .lgk-side .lgk-ft b { display: block; font-size: 15px; color: #fff; }
  body.lgk .lgk-side .lgk-ft small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .72); }
  .lgk-pr { position: relative; margin-top: auto; height: 150px; }
  .lgk-pr .q { position: absolute; bottom: 0; width: 104px; height: 130px; object-fit: cover; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .55); animation: lgBob 6s ease-in-out infinite; }
  .lgk-pr .q1 { left: 0; transform: rotate(-8deg); }
  .lgk-pr .q2 { left: 92px; bottom: 14px; transform: rotate(4deg); animation-delay: .7s; }
  .lgk-pr .q3 { left: 184px; transform: rotate(-3deg); animation-delay: 1.3s; }
  .lgk-pr .q4 { left: 276px; bottom: 10px; transform: rotate(9deg); animation-delay: .4s; }

  /* ---------- A แยกสองฝั่ง: ซ้ายแผงแบรนด์ไล่สี · ขวาฟอร์มบนพื้นขาว ---------- */
  body.lgk-a .lg-bg { display: none; }
  body.lgk-a .app { background: var(--bg0, #f6f7fb); } html[data-mode="light"] body.lgk-a .app { background: #f6f7fb; }
  body.lgk-a .lg-wrap { display: grid; grid-template-columns: minmax(520px, 1.1fr) 1fr; align-items: center; justify-items: center; }
  body.lgk-a .lgk-side { align-self: stretch; justify-self: stretch; margin: 20px 0 20px 20px; padding: 96px 64px 48px; border-radius: 32px; background: radial-gradient(70% 60% at 0% 0%, #4f46e5 0, transparent 70%), radial-gradient(60% 60% at 100% 30%, #06b6d4 0, transparent 70%), radial-gradient(80% 70% at 30% 100%, #2563eb 0, transparent 70%), #1e3a8a; background-size: 140% 140%; animation: lgkPan 18s ease-in-out infinite alternate; }
  body.lgk-a .lg-back, html[data-mode="light"] body.lgk-a .lg-back { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); left: 44px; top: 40px; }
  body.lgk-a .lg-logo { display: none; }
  body.lgk-a .lg-card { max-width: 440px; padding: 36px 34px 30px; background: var(--sf, #fff); border: 1px solid var(--ln, #e6e8f0); box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .35); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.lgk-a .lg-card h1 { font-size: 30px; }

  /* ---------- B การ์ดกลางจอ: พื้นออโรร่าเต็มจอ · การ์ดกว้าง 2 คอลัมน์ ---------- */
  body.lgk-b .lg-bg .b1, body.lgk-b .lg-bg .b2, body.lgk-b .lg-bg .b3 { max-width: 900px; max-height: 900px; }
  body.lgk-b .lg-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: min(1040px, calc(100vw - 96px)); min-height: 0; margin: max(48px, calc((100vh - 640px) / 2)) auto 48px; border-radius: 32px; overflow: hidden; background: color-mix(in srgb, var(--sf, #fff) 80%, transparent); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 40px 80px -40px rgba(30, 27, 75, .55); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); animation: lgRise .8s cubic-bezier(.2, .8, .2, 1) both; }
  body.lgk-b .lgk-side { padding: 48px 44px 36px; background: linear-gradient(150deg, #4338ca 0%, #2563eb 55%, #06b6d4 100%); }
  body.lgk-b .lgk-logo { width: 140px; }
  body.lgk-b .lgk-h { margin-top: 22px; font-size: 30px; }
  body.lgk-b .lgk-p { font-size: 14.5px; }
  body.lgk-b .lgk-ft { margin-top: 22px; gap: 10px; }
  body.lgk-b .lgk-ft li { padding: 10px 12px; }
  body.lgk-b .lgk-pr { height: 130px; margin-top: 24px; }
  body.lgk-b .lgk-pr .q { width: 86px; height: 108px; }
  body.lgk-b .lgk-pr .q2 { left: 76px; } body.lgk-b .lgk-pr .q3 { left: 152px; } body.lgk-b .lgk-pr .q4 { left: 228px; }
  body.lgk-b .lg-logo { display: none; }
  body.lgk-b .lg-card { align-self: center; justify-self: center; max-width: 420px; padding: 40px 40px 32px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  body.lgk-b .lg-card h1 { font-size: 28px; }

  /* ---------- C ภาพสินค้าเต็มฝั่ง: ซ้ายแกลเลอรีสินค้า · ขวาแผงขาวเต็มความสูง ---------- */
  body.lgk-c .lg-bg { display: none; }
  body.lgk-c .lg-wrap { display: grid; grid-template-columns: 1fr 520px; align-items: stretch; }
  body.lgk-c .lgk-side { justify-content: flex-end; padding: 0 56px 56px; background: linear-gradient(160deg, #e0e7ff 0%, #dbeafe 50%, #cffafe 100%); }
  body.lgk-c .lgk-gal { position: absolute; inset: 40px 40px 210px; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
  body.lgk-c .lgk-gal .g { position: relative; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 24px 50px -30px rgba(30, 41, 99, .5); animation: lgUp .7s cubic-bezier(.2, .8, .2, 1) both; }
  body.lgk-c .lgk-gal .g1 { grid-row: span 2; } body.lgk-c .lgk-gal .g2 { animation-delay: .1s; } body.lgk-c .lgk-gal .g3 { animation-delay: .2s; } body.lgk-c .lgk-gal .g4 { display: none; }
  body.lgk-c .lgk-gal img { width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; transition: transform 6s ease; }
  body.lgk-c .lgk-gal .g:hover img { transform: scale(1.06); }
  body.lgk-c .lgk-cap b { display: block; font-size: 34px; font-weight: 800; line-height: 1.2; color: var(--tx, #0b1e3f); }
  body.lgk-c .lgk-cap span { display: block; margin-top: 8px; max-width: 460px; font-size: 15.5px; line-height: 1.6; color: var(--tx2, #475569); }
  body.lgk-c .app { background: var(--sf, #fff); }
  html[data-mode="light"] body.lgk-c .app { background: radial-gradient(520px 340px at 100% 0, #b7b0ea 0, transparent 70%), radial-gradient(420px 300px at 70% 0, #a9c4f5 0, transparent 70%), #f7f8fc; }
  html:not([data-mode="light"]) body.lgk-c .lgk-side { background: radial-gradient(80% 60% at 20% 10%, rgba(99, 102, 241, .35), transparent 70%), radial-gradient(70% 60% at 90% 80%, rgba(6, 182, 212, .25), transparent 70%), var(--bg0, #0b1442); }
  body.lgk-c .lg-back { left: auto; right: 40px; top: 70px; }
  body.lgk-c .lg-logo { grid-column: 2; grid-row: 1; align-self: start; justify-self: start; width: 132px; margin: 56px 0 0 64px; padding: 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #1e3a8a, #0b1e3f); box-shadow: 0 14px 30px -14px rgba(11, 30, 63, .6); animation: lgPop .8s cubic-bezier(.2, .9, .3, 1.3) both; }
  body.lgk-c .lg-card { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: 100%; max-width: 392px; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.lgk-c .lg-card h1 { font-size: 30px; }
  body.lgk-c .lg-wrap { border-left: 0; }
  body.lgk-c .lg-wrap::after { content: ""; grid-column: 2; grid-row: 1; border-left: 1px solid var(--ln, #eef0f6); pointer-events: none; }

  /* ปุ่มสลับแบบ (ตัวอย่าง) */
  .lgk-sw { display: flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 900; align-items: center; gap: 6px; padding: 6px; border-radius: 99px; background: #fff; box-shadow: 0 10px 30px rgba(11, 30, 63, .2); font-size: 13px; white-space: nowrap; }
  .lgk-sw span { color: #6b7690; padding: 0 6px; }
  .lgk-sw a { padding: 7px 13px; border-radius: 99px; background: #eef0f7; color: #3d4670; font-weight: 600; text-decoration: none; }
  .lgk-sw a.on { background: #0b1e3f; color: #fff; }
  @keyframes lgkPan { to { background-position: 100% 100%; } }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .lgk-pr { display: none; }
  body.lgk-a .lgk-side { padding-top: 80px; }
}
