/* =====================================================================
   Smart IT — Login Pro (SIT-LOGIN-PRO)
   ธีม Network Operations Center: พื้นหลังเครือข่ายเคลื่อนไหว · ศูนย์กลางระบบที่มีข้อมูลวิ่ง
   · คอนโซลพิมพ์สถานะ · กล่องเข้าสู่ระบบแบบกระจกพร้อมขอบแสงหมุน
   ===================================================================== */
body.lp {
  --lp-bg: #050d1f; --lp-ink: #e6eefc; --lp-mute: #8ea6cc; --lp-line: rgba(148,180,230,.16);
  --lp-cyan: #3fd0ff; --lp-blue: #1d4ed8; --lp-green: #7ab72e; --lp-red: #e10a17; --lp-gold: #f3d77a;
  --lp-ease: cubic-bezier(.16, 1, .3, 1);
  margin: 0; min-height: 100vh; background: radial-gradient(1200px 700px at 78% 30%, #0d2a63 0%, transparent 60%), radial-gradient(900px 600px at 10% 90%, #0b3a3f 0%, transparent 60%), var(--lp-bg);
  color: var(--lp-ink); overflow-x: hidden;
}
body.lp .app-bg { display: none; }
#lpNet { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .6; }
.lp-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35; mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%);
  animation: lpGrid 24s linear infinite; }
@keyframes lpGrid { to { background-position: 56px 56px, 56px 56px; } }
.lp-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .28; animation: lpFloat 22s ease-in-out infinite alternate; }
.lp-aurora i:nth-child(1) { background: #1d4ed8; left: -12vmax; top: -16vmax; }
.lp-aurora i:nth-child(2) { background: #009fe3; right: -14vmax; top: 10vmax; animation-delay: -7s; opacity: .22; }
.lp-aurora i:nth-child(3) { background: #7ab72e; left: 20vmax; bottom: -24vmax; animation-delay: -14s; opacity: .16; }
@keyframes lpFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vmax, 4vmax) scale(1.15); } }

.lp-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.18fr 1fr; }

/* ---------- ฝั่งซ้าย ---------- */
.lp-hero { padding: 34px 56px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lp-brand { display: flex; align-items: center; gap: 14px; animation: lpIn .7s var(--lp-ease) both; }
.lp-logo { background: #fff; border-radius: 14px; padding: 7px 12px; box-shadow: 0 10px 30px -12px rgba(0,159,227,.6); display: flex; position: relative; overflow: hidden; }
.lp-logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #7ab72e 0 33.3%, #e10a17 33.3% 66.6%, #009fe3 66.6% 100%); }
.lp-logo img { height: 40px; display: block; }
.lp-app { font-size: 22px; font-weight: 300; color: #cfe3ff; line-height: 1.05; display: flex; flex-direction: column; }
.lp-app b { color: #fff; font-weight: 700; display: inline; }
.lp-app small { font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--lp-gold); font-weight: 600; margin-top: 4px; }

.lp-copy { animation: lpIn .8s var(--lp-ease) .08s both; }
.lp-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 30px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #bfe9ff; background: rgba(63,208,255,.08); border: 1px solid rgba(63,208,255,.25); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: lpPing 1.8s infinite; }
@keyframes lpPing { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lp-copy h1 { margin: 14px 0 10px; font-size: clamp(28px, 3.1vw, 44px); font-weight: 700; letter-spacing: -.8px; line-height: 1.2; color: #fff; }
.lp-rot { background: linear-gradient(90deg, #7ae0ff, #3fd0ff 35%, #7ab72e 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; vertical-align: -0.1em; background: var(--lp-cyan); animation: lpBlink 1s steps(1) infinite; border-radius: 2px; }
@keyframes lpBlink { 50% { opacity: 0; } }
.lp-copy p { color: var(--lp-mute); font-size: 15.5px; max-width: 560px; margin: 0; }

/* เวที: ศูนย์กลางระบบ */
.lp-stage { position: relative; flex: 1; min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 18px; animation: lpIn .9s var(--lp-ease) .16s both; }
.lp-hub { flex: 1 1 auto; min-width: 360px; width: 100%; max-width: 520px; height: auto; overflow: visible; }
.lp-links path { stroke-dasharray: 5 7; animation: lpFlow 1.6s linear infinite; }
.lp-links path:nth-child(even) { animation-direction: reverse; animation-duration: 2.1s; }
@keyframes lpFlow { to { stroke-dashoffset: -24; } }
.lp-core .lp-ring { transform-box: fill-box; transform-origin: center; }
.lp-core .r1 { animation: lpSpin 40s linear infinite; }
.lp-core .r2 { animation: lpSpin 14s linear infinite reverse; }
.lp-core .r3 { animation: lpSpin 22s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-core .lp-pulse { transform-box: fill-box; transform-origin: center; animation: lpCore 3s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(63,208,255,.65)); }
@keyframes lpCore { 50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(63,208,255,.9)); } }
.lp-check { stroke-dasharray: 26; stroke-dashoffset: 26; animation: lpDraw 4s var(--lp-ease) infinite; }
@keyframes lpDraw { 10%, 75% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 26; } }
.lp-node rect { fill: rgba(11,30,68,.88); stroke: rgba(63,208,255,.38); stroke-width: 1.2; }
.lp-node .ic { fill: none; stroke: #a9e2ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-node .ic rect { fill: rgba(63,208,255,.08); stroke: #a9e2ff; }
.lp-node .led { stroke: none; }
.lp-node .led.a { fill: #22c55e; animation: lpBlink 1.1s steps(1) infinite; }
.lp-node .led.b { fill: #3fd0ff; animation: lpBlink .7s steps(1) infinite .2s; }
.lp-node .led.c { fill: #f3d77a; animation: lpBlink 1.7s steps(1) infinite .5s; }
.lp-node text { fill: #8fb3e6; font-size: 11px; text-anchor: middle; font-family: inherit; letter-spacing: .4px; }
.lp-node { animation: lpBob 5s ease-in-out infinite; }
.lp-node.n2 { animation-delay: -1s; } .lp-node.n3 { animation-delay: -2s; } .lp-node.n4 { animation-delay: -3s; } .lp-node.n5 { animation-delay: -1.6s; } .lp-node.n6 { animation-delay: -2.6s; }
@keyframes lpBob { 50% { translate: 0 -5px; } }
.lp-node:hover rect { stroke: var(--lp-cyan); }

/* คอนโซล */
.lp-term { position: relative; flex: 0 0 280px; width: 280px; align-self: center; border-radius: 14px; overflow: hidden;
  background: rgba(4,12,28,.82); border: 1px solid rgba(63,208,255,.22); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; backdrop-filter: blur(6px); }
.lp-term-h { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11px; color: #6f8bb6; }
.lp-term-h i { width: 9px; height: 9px; border-radius: 50%; background: #e10a17; } .lp-term-h i:nth-child(2) { background: #f59e0b; } .lp-term-h i:nth-child(3) { background: #22c55e; }
.lp-term-h span { margin-left: 6px; }
.lp-term pre { margin: 0; padding: 10px 14px 12px; height: 132px; font: 12px/1.6 ui-monospace, 'JetBrains Mono', Consolas, monospace; color: #b8d4ff; white-space: pre-wrap; overflow: hidden; }
.lp-term .ok { color: #4ade80; } .lp-term .dim { color: #5e7aa6; } .lp-term .cy { color: var(--lp-cyan); } .lp-term .gd { color: var(--lp-gold); }
.lp-term .cur { display: inline-block; width: 7px; height: 13px; background: var(--lp-cyan); vertical-align: -2px; animation: lpBlink 1s steps(1) infinite; }

.lp-feat { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; animation: lpIn .9s var(--lp-ease) .24s both; }
.lp-feat li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 13px; color: #cfe0ff; background: rgba(255,255,255,.04); border: 1px solid var(--lp-line); transition: .25s; }
.lp-feat li:hover { border-color: rgba(63,208,255,.45); background: rgba(63,208,255,.08); transform: translateY(-2px); }
.lp-feat i { color: var(--lp-cyan); font-size: 16px; }
.lp-copy-foot { color: #5f78a3; font-size: 12px; }

/* ---------- ฝั่งขวา: การ์ดเข้าสู่ระบบ ---------- */
.lp-panel { display: grid; place-items: center; padding: 32px; perspective: 1200px; }
.lp-card { position: relative; width: 100%; max-width: 430px; border-radius: 26px; padding: 1.5px; transform-style: preserve-3d; transition: transform .25s ease-out;
  animation: lpCardIn .9s var(--lp-ease) .1s both; }
@keyframes lpCardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 0;
  background: conic-gradient(from var(--lp-a, 0deg), rgba(63,208,255,.0), #3fd0ff 12%, rgba(29,78,216,.0) 28%, #7ab72e 46%, rgba(63,208,255,0) 60%, #009fe3 80%, rgba(63,208,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lpBorder 6s linear infinite; }
@property --lp-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes lpBorder { to { --lp-a: 360deg; } }
.lp-card::after { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(29,78,216,.35), transparent); filter: blur(10px); }
.lp-card-in { position: relative; z-index: 1; border-radius: 25px; padding: 34px 34px 22px; background: linear-gradient(160deg, rgba(16,36,78,.82), rgba(7,18,42,.9)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); }
.lp-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.lp-badge { position: relative; flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #bfeaff; overflow: hidden;
  background: linear-gradient(145deg, rgba(63,208,255,.18), rgba(29,78,216,.25)); border: 1px solid rgba(63,208,255,.35); }
.lp-badge::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; top: 8px; border-radius: 2px; background: #3fd0ff; box-shadow: 0 0 10px #3fd0ff; animation: lpScan 2.4s ease-in-out infinite; }
@keyframes lpScan { 0%, 100% { top: 8px; opacity: .9; } 50% { top: 42px; opacity: .5; } }
.lp-card-head h2 { margin: 0; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.lp-card-head p { margin: 2px 0 0; color: var(--lp-mute); font-size: 13.5px; }
.lp-alert { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.lp-alert.warn { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.lp-alert.err { background: rgba(225,10,23,.12); color: #fca5a5; border: 1px solid rgba(225,10,23,.35); }

/* ช่องกรอกแบบป้ายลอย */
.lp-field { position: relative; display: block !important; margin-bottom: 16px; }
.lp-field input { width: 100%; height: 58px; padding: 22px 46px 6px 46px; border-radius: 14px !important; border: 1px solid rgba(148,180,230,.22); background: rgba(255,255,255,.045);
  color: #fff; font: 500 16px inherit; font-family: inherit; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; margin: 0 !important; }
.lp-field input:hover { border-color: rgba(148,180,230,.38); }
.lp-field input:focus { border-color: var(--lp-cyan); background: rgba(63,208,255,.06); box-shadow: 0 0 0 4px rgba(63,208,255,.14), 0 10px 30px -14px rgba(63,208,255,.6); }
.lp-field label { position: absolute; left: 46px; top: 18px; font-size: 15px; color: #8ea6cc; pointer-events: none; transition: .22s var(--lp-ease); transform-origin: left top; }
.lp-field input:focus + label, .lp-field input:not(:placeholder-shown) + label { top: 8px; font-size: 11.5px; color: var(--lp-cyan); letter-spacing: .3px; }
.lp-field .lp-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #6f8bb6; transition: color .25s; z-index: 2; }
.lp-field:focus-within .lp-ico { color: var(--lp-cyan); }
.lp-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #8ea6cc; display: grid; place-items: center; z-index: 2; cursor: pointer; transition: .2s; }
.lp-eye:hover { background: rgba(255,255,255,.07); color: #fff; }
.lp-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #0f2550 inset; caret-color: #fff; transition: background-color 9999s; }
.lp-caps { display: none; align-items: center; gap: 6px; margin: -6px 0 12px; font-size: 12.5px; color: #fcd34d; }
.lp-caps.on { display: flex; animation: lpIn .3s var(--lp-ease); }

/* ปุ่มเข้าสู่ระบบ */
.lp-btn { position: relative; overflow: hidden; width: 100%; height: 54px; margin-top: 6px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 600 16.5px inherit; font-family: inherit;
  background: linear-gradient(110deg, #1d4ed8, #0b8fe0 55%, #009fe3); box-shadow: 0 16px 34px -14px rgba(0,159,227,.85); transition: transform .2s var(--lp-ease), box-shadow .25s, filter .2s; }
.lp-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: lpSweep 3.6s ease-in-out infinite; }
@keyframes lpSweep { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.lp-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 22px 40px -14px rgba(0,159,227,.95); }
.lp-btn:active { transform: scale(.98); }
.lp-btn.alt { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(148,180,230,.3); }
.lp-btn.alt:hover { background: rgba(63,208,255,.1); }
.lp-btn-t { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.lp-btn.busy { pointer-events: none; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px), linear-gradient(110deg, #1d4ed8, #009fe3); background-size: 34px 34px, 100% 100%; animation: lpStripes .8s linear infinite; }
@keyframes lpStripes { to { background-position: 34px 0, 0 0; } }
.lp-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lpSpin .8s linear infinite; }
.lp-btn.done { background: linear-gradient(110deg, #15803d, #22c55e); box-shadow: 0 16px 34px -14px rgba(34,197,94,.85); }

.lp-ms { margin-bottom: 4px; }
.lp-note { text-align: center; color: var(--lp-mute); font-size: 12.5px; margin-top: 10px; }
.lp-note i { margin-right: 4px; }
.lp-or { color: #6f8bb6 !important; } .lp-or::before, .lp-or::after { background: rgba(148,180,230,.2) !important; } .lp-or a { color: #bfe0ff !important; }
.lp-secure { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px dashed rgba(148,180,230,.18); font-size: 12px; color: #6f8bb6; }
.lp-secure i { color: #4ade80; }
.lp-secure #lpClock { font-family: ui-monospace, Consolas, monospace; }

/* สถานะ */
.lp-card.shake { animation: lpShake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes lpShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.lp-card.ok .lp-card-in { box-shadow: 0 0 0 1px rgba(34,197,94,.5), 0 40px 90px -30px rgba(34,197,94,.45); }
.lp-go { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(5,13,31,.0); backdrop-filter: blur(0); pointer-events: none; transition: background .5s, backdrop-filter .5s; }
.lp-go.on { background: rgba(5,13,31,.75); backdrop-filter: blur(6px); pointer-events: auto; }
.lp-go-in { text-align: center; color: #fff; opacity: 0; transform: translateY(10px); transition: .5s var(--lp-ease) .1s; }
.lp-go.on .lp-go-in { opacity: 1; transform: none; }
.lp-go-in .ring { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #22c55e;
  background: radial-gradient(circle, rgba(34,197,94,.18), transparent 70%); box-shadow: 0 0 0 2px rgba(34,197,94,.5); animation: lpOk .7s var(--lp-ease); }
@keyframes lpOk { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-go-in b { display: block; font-size: 20px; } .lp-go-in span { color: var(--lp-mute); font-size: 14px; }
.lp-go-bar { width: 220px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.lp-go-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7ab72e, #009fe3); transition: width .9s var(--lp-ease); }
.lp-go.on .lp-go-bar i { width: 100%; }

@keyframes lpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ปุ่มขนาดตัวอักษร / หุ่นยนต์ บนพื้นมืด */
body.lp .fs-ctrl { background: rgba(10,24,54,.7) !important; border-color: rgba(148,180,230,.22) !important; backdrop-filter: blur(8px); }
body.lp .fs-ctrl button, body.lp .fs-ctrl span { color: #cfe0ff !important; }
body.lp .fs-ctrl button:hover { background: rgba(63,208,255,.12) !important; color: #fff !important; }
body.lp .sitbot { filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }

/* ---------- จอเล็ก ---------- */
@media (max-width: 1399.98px) { .lp-term { flex-basis: 260px; width: 260px; } .lp-term pre { font-size: 11px; } }
@media (max-width: 1199.98px) { .lp-hero { padding: 30px 34px 22px; } .lp-term { display: none; } .lp-stage { justify-content: center; } }
@media (max-width: 991.98px) {
  .lp-wrap { grid-template-columns: 1fr; }
  .lp-hero { padding: 24px 22px 0; gap: 12px; }
  .lp-stage, .lp-feat, .lp-copy-foot, .lp-copy p { display: none; }
  .lp-copy h1 { font-size: 24px; margin: 10px 0 0; }
  .lp-panel { padding: 18px 16px 40px; align-items: start; }
  .lp-card-in { padding: 26px 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.lp *, body.lp *::before, body.lp *::after { animation: none !important; transition: none !important; }
  #lpNet { display: none; }
}
