/* =====================================================================
   WorkNexa sign-in page — product showcase (left) + login card (right)
   Uses the shared tokens from worknexa.css (light + dark).
   ===================================================================== */
.lg-body {
	--lg-bg: #F3F6FC;
	--lg-card: #FFFFFF;
	--lg-blue: var(--wn-primary);
	min-height: 100vh; background: var(--lg-bg); position: relative; overflow-x: hidden;
}
[data-theme="dark"] .lg-body { --lg-bg: #0B0E13; --lg-card: var(--wn-surface); }

/* soft background glows */
.lg-blob { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.lg-blob-1 { width: 520px; height: 520px; left: -120px; top: -140px; background: color-mix(in srgb, var(--wn-primary) 18%, transparent); }
.lg-blob-2 { width: 620px; height: 620px; left: 35%; top: 30%; background: rgba(59, 130, 246, .12); }
.lg-blob-3 { width: 420px; height: 420px; right: -120px; bottom: -120px; background: rgba(124, 58, 237, .10); }

/* top bar */
.lg-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 40px 0; }
.lg-tagline { margin: 0; font-size: 18px; color: var(--wn-title); padding: 8px 24px; background: linear-gradient(90deg, transparent, var(--lg-card) 18%, var(--lg-card) 82%, transparent); }
.lg-tagline strong { font-weight: 700; }
.lg-theme { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--wn-dark); color: #fff; font-size: 20px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .2); }
[data-theme="dark"] .lg-theme { background: #F8FAFC; color: #0F172A; }

/* layout */
.lg-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; padding: 16px 40px 24px; min-height: calc(100vh - 70px); max-width: 1500px; margin: 0 auto; }
.lg-show { display: flex; flex-direction: column; gap: 36px; min-width: 0; }

/* ---------- showcase stage ---------- */
.lg-stage { position: relative; margin: 0 28px; }
.lg-peek { position: absolute; top: 40px; bottom: 40px; width: 60%; border-radius: 16px; background: var(--lg-card); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); opacity: .55; }
.lg-peek::before { content: ''; position: absolute; inset: 14px 14px auto; height: 38%; border-radius: 10px; background: linear-gradient(120deg, #CBD5E1, #E2E8F0); }
.lg-peek-l { left: -28px; transform: scale(.94); }
.lg-peek-r { right: -28px; transform: scale(.94); }
.lg-nav { position: absolute; top: 50%; z-index: 4; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 0; background: var(--wn-primary); color: #fff; font-size: 16px; display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--wn-primary) 40%, transparent); }
.lg-nav:hover { filter: brightness(1.1); }
.lg-prev { left: -17px; }
.lg-next { right: -17px; }

.lg-slide { display: none; position: relative; z-index: 2; background: var(--lg-card); border-radius: 16px; padding: 12px; box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.lg-slide.is-active { display: block; animation: lgIn .45s ease; }
@keyframes lgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg-slide.is-active { animation: none; } }

.lg-banner { position: relative; display: grid; grid-template-columns: 46% 54%; min-height: 220px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--c), var(--c2)); }
.lg-banner-copy { padding: 24px 28px 26px; color: #E2E8F0; position: relative; z-index: 1; }
.lg-badge { display: inline-flex; align-items: center; gap: 8px; margin: -24px 0 18px -28px; padding: 10px 18px; background: var(--lg-card); color: var(--c); border-radius: 0 0 12px 0; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.lg-badge i { font-size: 26px; }
.lg-banner-copy h2 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 10px; }
.lg-banner-copy h2::after { content: ''; display: block; width: 46px; height: 4px; margin-top: 10px; border-radius: 2px; background: #FACC15; }
.lg-banner-copy p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 360px; }
.lg-banner-art { position: relative; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .25)); display: flex; align-items: center; justify-content: center; padding: 18px 10px 0 40px; }
.lg-art-stack { position: relative; width: 100%; max-width: 380px; aspect-ratio: 520 / 380; }
.lg-art-stack img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .7s ease, transform .7s ease; }
.lg-art-stack img.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lg-art-stack img { transition: none; } }
.lg-brandmark { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: #fff; }
.lg-brandmark .wn-logo { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; background: #fff; color: var(--c); }
.lg-brandmark .wn-logo::after { display: none; }

.lg-body-row { display: grid; grid-template-columns: 1fr 300px; gap: 12px; margin-top: 12px; padding-bottom: 20px; }
.lg-features { padding: 10px 14px 6px; border-left: 4px solid var(--c); }
.lg-features h3, .lg-why h3 { font-size: 17px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.lg-features h3::after, .lg-why h3::after { content: ''; width: 34px; height: 4px; border-radius: 2px; background: #FACC15; }
.lg-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.lg-feature { display: flex; gap: 10px; align-items: flex-start; }
.lg-feature > span { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font-size: 15px; }
.lg-feature strong { display: block; font-size: 13px; font-weight: 600; color: var(--wn-title); }
.lg-feature small { display: block; font-size: 11.5px; line-height: 1.4; color: var(--wn-muted); }
.lg-why { background: linear-gradient(160deg, var(--c), var(--c2)); color: #fff; border-radius: 10px; padding: 16px 16px 8px; }
.lg-why h3 { color: #fff; }
.lg-why-item { display: flex; gap: 10px; margin-bottom: 12px; }
.lg-why-item > span { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .5); font-size: 14px; }
.lg-why-item strong { display: block; font-size: 12.5px; color: #fff; }
.lg-why-item small { display: block; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .78); }

.lg-cta { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: fit-content; max-width: 92%; margin: -18px auto 0; padding: 6px 6px 6px 18px; border-radius: 0 0 16px 16px; background: var(--wn-primary); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px color-mix(in srgb, var(--wn-primary) 35%, transparent); }
.lg-cta:hover { color: #fff; filter: brightness(1.06); }
.lg-cta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #F5D58A; color: #1F2937; font-weight: 700; font-size: 14px; }

/* module tabs */
.lg-tabs { display: flex; background: var(--lg-card); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); overflow-x: auto; }
.lg-tab { flex: 1; min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 700; font-size: 15px; color: var(--wn-title); white-space: nowrap; }
.lg-tab i { font-size: 22px; color: var(--c); }
.lg-tab:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.lg-tab.is-active { border-bottom-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--c); }

/* ---------- login side ---------- */
.lg-side { display: flex; flex-direction: column; gap: 14px; }
.lg-card { background: var(--lg-card); border: 1px solid var(--wn-line); border-radius: 6px; padding: 26px 22px 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); }
.lg-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font-size: 22px; font-weight: 700; color: var(--wn-title); }
.lg-logo .wn-logo { width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }
.lg-logo-img { margin-bottom: 18px; }
.lg-logo-img .wnx-logo { height: 96px; }
.lg-brandmark-img { background: rgba(255,255,255,.92); border-radius: 10px; padding: 5px 8px; }
.lg-brandmark-img img { height: 26px; width: auto; display: block; }
.lg-logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--wn-primary); text-align: right; margin-top: -4px; }
.lg-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--wn-line); border-radius: 8px; background: var(--wn-bg); }
.lg-seg button { border: 0; border-radius: 6px; padding: 9px 8px; background: transparent; font-size: 13px; font-weight: 500; color: var(--wn-title); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lg-seg button i { font-size: 18px; }
.lg-seg button.is-active { background: color-mix(in srgb, var(--wn-primary) 12%, var(--lg-card)); color: var(--wn-primary); font-weight: 600; }
.lg-pane { display: none; }
.lg-pane.is-active { display: block; }
.lg-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--wn-title); margin-bottom: 6px; }
.lg-label b { color: #DC2626; font-weight: 500; }
.lg-label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.lg-link { border: 0; background: none; padding: 0; color: var(--wn-primary); font-size: 12px; font-weight: 500; }
.lg-link:hover { text-decoration: underline; }
.lg-input { position: relative; }
.lg-input > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--wn-muted); font-size: 16px; pointer-events: none; }
.lg-input input { width: 100%; height: 40px; border: 1px solid var(--wn-line); border-radius: 4px; padding: 0 38px 0 34px; font-size: 13px; color: var(--wn-title); background: var(--lg-card); outline: none; transition: border-color .15s, box-shadow .15s; }
.lg-input input::placeholder { color: #A3AAB5; }
.lg-input input:focus { border-color: var(--wn-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wn-primary) 15%, transparent); }
.lg-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--wn-primary); font-size: 17px; display: grid; place-items: center; border-radius: 4px; }
.lg-btn { width: 100%; height: 42px; margin-top: 22px; border: 0; border-radius: 4px; background: var(--wn-primary); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: filter .15s; }
.lg-btn:hover { filter: brightness(1.08); }
.lg-geo { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; font-size: 11.5px; line-height: 1.4; color: var(--wn-muted); }
.lg-geo i { font-size: 15px; flex-shrink: 0; }
.lg-geo.ok { color: var(--wn-success); }
.lg-geo.bad { color: var(--wn-danger); }
.lg-btn-light { background: var(--wn-bg); color: var(--wn-title); border: 1px solid var(--wn-line); margin-top: 14px; }
.lg-alert { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; padding: 10px 12px; border-radius: 6px; font-size: 12.5px; background: color-mix(in srgb, var(--wn-danger) 9%, transparent); color: var(--wn-danger); }
.lg-alert i { font-size: 17px; flex-shrink: 0; }
.lg-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: 11.5px; color: var(--wn-muted); }
.lg-divider::before, .lg-divider::after { content: ''; flex: 1; height: 1px; background: var(--wn-line); }
.lg-demo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lg-demo button { grid-column: span 2; justify-content: center; }
.lg-demo button:nth-child(n+4) { grid-column: span 3; }
.lg-demo button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--wn-line); border-radius: 6px; background: var(--wn-bg); font-size: 12px; font-weight: 500; color: var(--wn-title); }
.lg-demo button i { font-size: 15px; color: var(--wn-primary); }
.lg-demo button:hover { border-color: var(--wn-primary); }
.lg-help > div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--wn-line); }
.lg-help > div > i { font-size: 20px; color: var(--wn-primary); flex-shrink: 0; }
.lg-help strong { display: block; font-size: 13px; color: var(--wn-title); }
.lg-help small { display: block; font-size: 12px; line-height: 1.45; color: var(--wn-muted); }
.lg-card-foot { margin: 22px -22px 0; padding: 12px; text-align: center; font-size: 12.5px; color: var(--wn-title); background: var(--wn-bg); border-top: 1px solid var(--wn-line); border-radius: 0 0 6px 6px; }
.lg-card-foot a, .lg-card-foot span { color: var(--wn-primary); font-weight: 500; }

.lg-qr-card { display: flex; gap: 14px; align-items: center; padding: 14px 14px; }
.lg-qr-card p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--wn-title); }
.lg-qr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lg-qr-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: var(--wn-dark); color: #fff; font-size: 10.5px; font-weight: 500; }
[data-theme="dark"] .lg-qr-tags span { background: #334155; }
.lg-qr { flex-shrink: 0; width: 100px; height: 100px; padding: 4px; border-radius: 6px; background: #fff; border: 1px solid var(--wn-line); }
.lg-qr img, .lg-qr canvas { width: 92px !important; height: 92px !important; display: block; }
.lg-qr-fallback { font-size: 9px; word-break: break-all; overflow: hidden; color: #0F172A; }
.lg-copy { text-align: center; font-size: 11.5px; color: var(--wn-muted); margin: 0; }
.lg-copy i { color: var(--wn-success); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
	.lg-body-row { grid-template-columns: 1fr; }
	.lg-why { display: none; }
}
@media (max-width: 1100px) {
	.lg-layout { grid-template-columns: 1fr; max-width: 440px; padding-top: 24px; }
	.lg-show { display: none; }
	.lg-tagline { font-size: 15px; padding-left: 0; background: none; }
	.lg-top { padding: 18px 16px 0; }
}
@media (max-width: 480px) {
	.lg-layout { padding: 12px 16px 24px; }
	.lg-card { padding: 22px 16px 0; }
	.lg-card-foot { margin: 22px -16px 0; }
}

/* =====================================================================
   Sign-in refresh — card accent ribbon, welcome copy, portal badge,
   rounded controls. The Super Admin portal (.lg-super on <body>) gets
   its own indigo accent so the two login URLs look different.
   ===================================================================== */
.lg-card { position: relative; border-radius: 14px; box-shadow: 0 18px 44px -26px rgba(15, 23, 42, .45); }
.lg-side > .lg-card:first-child { padding-top: 32px; overflow: hidden; }
.lg-side > .lg-card:first-child::before {
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
	background: linear-gradient(90deg, var(--wn-primary), color-mix(in srgb, var(--wn-primary) 35%, #4F46E5));
}
.lg-super { --wn-primary: #4F46E5; }
.lg-super .lg-side > .lg-card:first-child::before { background: linear-gradient(90deg, #4F46E5, #9333EA); }
.lg-brandbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; }
.lg-brandbar .lg-logo { margin-bottom: 0; }
.lg-logo-img .wnx-logo { height: 84px; }
.lg-mode-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--wn-primary) 13%, transparent); color: var(--wn-primary); }
.lg-welcome { text-align: center; font-size: 13px; color: var(--wn-muted); margin: 8px 0 16px; }
.lg-seg { border-radius: 10px; }
.lg-seg button { border-radius: 7px; }
.lg-input input { border-radius: 8px; height: 44px; }
.lg-btn { height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--wn-primary), color-mix(in srgb, var(--wn-primary) 62%, #0F172A)); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--wn-primary) 80%, transparent); }
.lg-btn i { transition: transform .15s; }
.lg-btn:hover i { transform: translateX(3px); }
.lg-alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.lg-qr-card { border-radius: 14px; }
