/* ================= Login 2.0 ================= */
.lg { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; background: #fff; }
.lg-hero { position: relative; overflow: hidden; color: #cbd5e1; padding: 36px 52px 44px; display: flex; flex-direction: column;
  background: radial-gradient(55% 45% at 20% 15%, rgba(16,185,129,.32), transparent 60%), radial-gradient(45% 40% at 85% 80%, rgba(139,92,246,.28), transparent 60%),
  radial-gradient(40% 35% at 80% 10%, rgba(245,158,11,.16), transparent 60%), #070d1a; }
.lg-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 70%); }
.lg-hero > * { position: relative; z-index: 1; }
.lg-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.lg-brand img { width: 44px; filter: drop-shadow(0 6px 18px rgba(168,85,247,.45)); }
.lg-brand small { display: block; font-size: 12px; font-weight: 500; color: #6ee7b7; letter-spacing: .01em; }
.lg-copy h2 { display: block; color: #fff; font-size: 38px; line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin: 0 0 12px; max-width: 520px; }
.lg-copy h2 span { background: linear-gradient(90deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-copy p { color: #94a3b8; font-size: 16.5px; max-width: 500px; margin-bottom: 18px; }
.lg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-pills span { font-size: 13.5px; color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

/* animated scene */
.lg-scene { position: relative; flex: 1; min-height: 400px; margin: 10px 0 18px; }
.lg-core { position: absolute; left: 30%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 34px; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px -10px rgba(16,185,129,.45), 0 0 0 1px rgba(255,255,255,.4); animation: floaty 5s ease-in-out infinite; }
.lg-core img { width: 84px; animation: lwspin 14s linear infinite; }
.lg-pulse { position: absolute; inset: -10px; border-radius: 40px; border: 2px solid rgba(52,211,153,.55); animation: ring 2.4s ease-out infinite; }
.lg-pulse.p2 { animation-delay: 1.2s; }
.lg-orbit { position: absolute; left: 30%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: lwspin 22s linear infinite; }
.lg-orbit.o1 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
.lg-orbit.o2 { width: 360px; height: 360px; margin: -180px 0 0 -180px; animation-duration: 34s; animation-direction: reverse; }
.lg-chip { position: absolute; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; font-size: 21px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); color: #53bdeb; animation: lwspin 22s linear infinite reverse; }
.lg-orbit.o2 .lg-chip { animation-duration: 34s; animation-direction: normal; }
.lg-chip .dbl { width: 24px; }
.c1 { top: -22px; left: calc(50% - 22px); } .c2 { bottom: -22px; left: calc(50% - 22px); }
.c3 { top: calc(50% - 22px); left: -22px; } .c4 { top: calc(50% - 22px); right: -22px; } .c5 { top: 8%; right: 12%; }
.lg-phone { position: absolute; right: 2%; top: 50%; transform: translateY(-50%) rotate(3deg); width: 250px; border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #1f2937, #0b1220);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); animation: phoneIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(-40%) rotate(8deg); } }
.lg-phone-top { display: flex; gap: 8px; align-items: center; background: #075e54; color: #fff; padding: 10px 12px; border-radius: 22px 22px 6px 6px; font-size: 13px; }
.lg-phone-top img { width: 30px; height: 30px; background: #fff; border-radius: 50%; padding: 3px; }
.lg-phone-top small { display: block; color: #a7f3d0; font-size: 11px; }
.lg-thread { background: #efeae2; border-radius: 6px 6px 22px 22px; padding: 12px 10px 14px; min-height: 280px; display: flex; flex-direction: column; gap: 8px; }
.lg-msg { max-width: 88%; font-size: 12.5px; line-height: 1.4; padding: 7px 9px; border-radius: 9px; color: #111b21; box-shadow: 0 1px .5px rgba(0,0,0,.12); opacity: 0; animation: msgIn 9s ease-out infinite; }
.lg-msg.in { background: #fff; border-top-left-radius: 2px; align-self: flex-start; }
.lg-msg.out { background: #d9fdd3; border-top-right-radius: 2px; align-self: flex-end; }
.lg-msg.out span { color: #53bdeb; } .lg-msg .dbl { width: 15px; vertical-align: -1px; }
.lg-img { height: 70px; border-radius: 7px; background: linear-gradient(135deg, #0f766e, #7c3aed); display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.lg-img img { width: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.m1 { animation-delay: .4s; } .m2 { animation-delay: 1.6s; } .m3 { animation-delay: 3.2s; } .m4 { animation-delay: 4.4s; }
@keyframes msgIn { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.lg-typing { align-self: flex-start; background: #fff; border-radius: 12px; padding: 8px 10px; display: flex; gap: 4px; opacity: 0; animation: msgIn 9s ease-out infinite; }
.lg-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: dotty 1s infinite; }
.lg-typing i:nth-child(2) { animation-delay: .15s; } .lg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dotty { 50% { transform: translateY(-3px); opacity: .5; } }
.lg-float { position: absolute; font-size: 13px; font-weight: 600; color: #0f172a; background: #fff; padding: 7px 12px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  display: flex; gap: 6px; align-items: center; animation: floaty 4s ease-in-out infinite; }
.lg-float b { color: #53bdeb; } .lg-float .dbl { width: 16px; }
.f1 { left: 4%; top: 10%; } .f2 { left: 46%; bottom: 4%; animation-delay: 1.3s; } .f3 { left: 8%; bottom: 14%; animation-delay: 2.4s; background: #10b981; color: #fff; }

/* form side */
.lg-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background:
  radial-gradient(60% 40% at 100% 0%, rgba(16,185,129,.08), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(139,92,246,.07), transparent 70%), #fff; }
.lg-card { width: 100%; max-width: 410px; animation: rise .5s ease-out; }
.lg-card-logo { position: relative; width: 74px; height: 74px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 14px 34px -12px rgba(15,23,42,.35), 0 0 0 1px var(--border); }
.lg-card-logo img { width: 52px; }
.lg-wa { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff; }
.lg-wa .wa-ico { width: 32px; height: 32px; color: #fff; } .lg-wa .wa-ico path:last-child { stroke: #25d366; }
.lg-card h1 { font-size: 32px; margin-bottom: 4px; }
.lg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: 12px; padding: 4px; margin: 4px 0 6px; }
.lg-tabs button { position: relative; z-index: 1; background: none; border: none; box-shadow: none; color: var(--muted); font-size: 15px; padding: 9px; }
.lg-tabs button:hover { background: none; color: var(--text); box-shadow: none; }
.lg-tabs button.on { color: var(--text); }
.lg-tabs i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(15,23,42,.18); transition: transform .25s cubic-bezier(.3,.7,.3,1); }
.lg-tabs.right i { transform: translateX(100%); }
.lg-field { position: relative; display: flex; align-items: center; }
.lg-field > span { position: absolute; left: 14px; font-size: 16px; opacity: .55; pointer-events: none; }
.lg-field input { padding: 13px 44px 13px 42px !important; border-radius: 12px !important; font-size: 16px; background: #fafbfc !important; }
.lg-field input:focus { background: #fff !important; }
.lg-eye { position: absolute; right: 6px; width: 36px; height: 36px; padding: 0; background: none !important; border: none; box-shadow: none; color: #64748b; opacity: .7; }
.lg-eye:hover, .lg-eye.on { background: #f1f5f9 !important; color: #059669; opacity: 1; box-shadow: none; }
.lg-meter { height: 22px; display: flex; align-items: center; gap: 10px; }
.lg-meter i { display: block; height: 5px; border-radius: 4px; background: #ef4444; width: 0; transition: width .25s, background .25s; flex: 0 0 auto; max-width: 70%; }
.lg-meter[data-s=ok] i { background: #f59e0b; } .lg-meter[data-s=strong] i { background: #10b981; }
.lg-meter small { color: var(--muted); font-size: 13px; }
.lg-go { width: 100%; margin-top: 20px; padding: 14px; font-size: 16.5px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #10b981, #059669 55%, #0d9488) !important; }
.lg-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.lg-arrow { transition: transform .2s; } .lg-go:hover .lg-arrow { transform: translateX(4px); }
.lg-go.busy .t::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lwspin .7s linear infinite; }
.lg-go.busy .lg-arrow { display: none; }
.lg-note { text-align: center; margin-top: 14px; }
.lg-secure { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-2); color: var(--muted); font-size: 13px; text-align: center; display: flex; gap: 6px; align-items: center; justify-content: center; }
.lg-secure .dbl { width: 16px; color: #53bdeb; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* welcome transition */
#lg_welcome { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(16,185,129,.35), transparent 70%), #070d1a; animation: wlIn .35s ease-out; }
#lg_welcome.out { opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .5s; }
@keyframes wlIn { from { opacity: 0; } }
.wl-burst { position: relative; width: 130px; height: 130px; border-radius: 36px; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px -10px rgba(16,185,129,.6); animation: wlPop .6s cubic-bezier(.2,1.4,.4,1) both; }
.wl-burst img { width: 92px; animation: lwspin 1.6s cubic-bezier(.6,.1,.3,1) infinite; }
.wl-burst span { position: absolute; inset: -12px; border-radius: 44px; border: 2px solid rgba(52,211,153,.7); animation: ring 1.4s ease-out infinite; }
.wl-burst span:nth-child(3) { animation-delay: .45s; } .wl-burst span:nth-child(4) { animation-delay: .9s; }
@keyframes wlPop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.wl-bubble { background: #d9fdd3; color: #111b21; font-weight: 600; font-size: 19px; padding: 12px 18px; border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  animation: wlBub .5s .35s cubic-bezier(.2,1.2,.4,1) both; display: flex; gap: 8px; align-items: center; }
.wl-bubble .dbl { width: 20px; color: #53bdeb; }
@keyframes wlBub { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.wl-sub { color: #94a3b8; font-size: 15px; animation: wlBub .5s .6s both, lwfade 1.6s 1s ease-in-out infinite; }

@media (max-width: 1000px) {
  .lg { grid-template-columns: 1fr; }
  .lg-hero { padding: 26px 22px 30px; }
  .lg-scene { min-height: 330px; transform: scale(.85); transform-origin: center; }
  .lg-copy h2 { font-size: 28px; }
  .lg-side { order: -1; min-height: 100vh; }
}
@media (max-width: 600px) { .lg-phone { display: none; } .lg-core, .lg-orbit { left: 50%; } .f2 { left: 60%; } }
