/* Creative sign-in screen. Everything is prefixed .lg- so it cannot leak into the app styles. */
:root { --lg-ink: #07202e; --lg-deep: #0a3550; --lg-brand: #0b7a9e; --lg-mint: #5eead4; --lg-amber: #f59e0b; }
html:has(.lg-stage), body:has(.lg-stage) { overflow: hidden; }

/* Cover the public header/footer so the screen is full-bleed. */
.lg-stage { position: fixed; inset: 0; z-index: 2000; overflow: auto; display: grid; place-items: center; padding: 28px 20px; color: #e6f3f8; font-family: var(--font-product, "Product Sans", "Segoe UI", Arial, sans-serif); background: radial-gradient(1200px 700px at 12% 8%, #0f5c80 0%, transparent 60%), radial-gradient(900px 600px at 95% 100%, #0b3d5c 0%, transparent 60%), linear-gradient(135deg, #061a26 0%, #082b40 55%, #0a3a57 100%); }

/* ---- background ---- */
.lg-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); }
.lg-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: lg-float 14s ease-in-out infinite; }
.lg-orb-1 { width: 380px; height: 380px; background: #0ea5c6; left: -90px; top: -60px; }
.lg-orb-2 { width: 320px; height: 320px; background: #f59e0b; right: -70px; bottom: -60px; opacity: .28; animation-delay: -5s; }
.lg-orb-3 { width: 260px; height: 260px; background: #2dd4bf; left: 38%; bottom: -120px; opacity: .25; animation-delay: -9s; }
.lg-gear { position: absolute; color: rgba(255,255,255,.07); line-height: 1; }
.lg-gear-1 { font-size: 300px; left: -70px; bottom: -60px; animation: lg-spin 60s linear infinite; }
.lg-gear-2 { font-size: 180px; right: 6%; top: -30px; animation: lg-spin 40s linear infinite reverse; }

/* ---- layout ---- */
.lg-shell { position: relative; width: min(1120px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }

/* ---- story side ---- */
.lg-story { animation: lg-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.lg-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.lg-logo { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lg-logo img { height: 66px; width: auto; display: block; }
.lg-brand-text { font-size: .72rem; font-weight: 800; letter-spacing: .22em; color: #8fd3e6; }
.lg-headline { margin: 0 0 18px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.lg-headline span { background: linear-gradient(90deg, var(--lg-mint), #38bdf8 55%, var(--lg-amber)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: lg-shine 7s ease-in-out infinite alternate; }
.lg-lead { max-width: 520px; margin: 0 0 28px; font-size: 1.02rem; line-height: 1.65; color: #b9d6e2; }

/* decorative pareto */
.lg-viz { max-width: 520px; padding: 16px 18px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.lg-viz-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; color: #cfe8f2; margin-bottom: 12px; }
.lg-viz-head em { font-style: normal; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #7fb3c7; border: 1px solid rgba(255,255,255,.16); padding: 2px 8px; border-radius: 99px; }

.lg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 540px; }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: .8rem; color: #e6f3f8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); animation: lg-bob 5s ease-in-out infinite; }
.lg-chip i { color: var(--lg-mint); }
.lg-chip b { font-weight: 800; }
.lg-chip small { color: #9cc3d3; }
.lg-chip-2 { animation-delay: -1.2s; } .lg-chip-3 { animation-delay: -2.4s; } .lg-chip-4 { animation-delay: -3.6s; }
.lg-chip-2 i { color: #fbbf24; } .lg-chip-4 i { color: #fb7185; }

/* ---- card ---- */
.lg-card { position: relative; padding: clamp(26px, 4vw, 40px); border-radius: 26px; color: #12212b; background: rgba(255,255,255,.96); box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.5) inset; animation: lg-rise .8s cubic-bezier(.2,.8,.2,1) .12s both; overflow: hidden; }
.lg-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #0b7a9e, var(--lg-mint), var(--lg-amber)); }
.lg-card-glow { position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(14,165,198,.22), transparent 70%); pointer-events: none; }
.lg-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .2em; color: var(--lg-brand); }
.lg-card h2 { margin: 10px 0 6px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--lg-ink); }
.lg-sub { margin: 0 0 26px; color: #6b7f8c; font-size: .92rem; }

/* floating-label fields */
.lg-field { position: relative; margin-bottom: 22px; }
.lg-input { width: 100%; height: 56px; padding: 22px 46px 6px 46px; font: inherit; font-size: 1rem; color: var(--lg-ink); background: #f3f8fb; border: 1.5px solid #d6e4ec; border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-input:hover { border-color: #b4cddb; }
.lg-input:focus { background: #fff; border-color: var(--lg-brand); box-shadow: 0 0 0 4px rgba(11,122,158,.15); }
.lg-label { position: absolute; left: 46px; top: 17px; margin: 0; font-size: .95rem; color: #7a8e9b; pointer-events: none; transition: all .18s ease; transform-origin: left top; }
.lg-input:focus + .lg-label, .lg-input:not(:placeholder-shown) + .lg-label { top: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-brand); }
.lg-icon { position: absolute; left: 16px; top: 17px; font-size: 1.15rem; color: #8aa0ad; transition: color .2s; }
.lg-input:focus ~ .lg-icon { color: var(--lg-brand); }
.lg-eye { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #7a8e9b; cursor: pointer; transition: background .2s, color .2s; }
.lg-eye:hover { background: #e4eff5; color: var(--lg-brand); }
.lg-error { display: block; margin: 6px 4px 0; font-size: .78rem; color: #dc2626; }
.lg-alert { margin-bottom: 16px; padding: 0; color: #dc2626; font-size: .88rem; }
.lg-alert ul { margin: 0 0 14px; padding: 12px 14px 12px 30px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; }
.lg-caps { display: block; margin: 6px 4px 0; font-size: .78rem; font-weight: 700; color: #b45309; }

/* switch */
.lg-switch { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; cursor: pointer; user-select: none; }
.lg-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.lg-track { position: relative; width: 44px; height: 24px; border-radius: 99px; background: #cbd9e1; transition: background .25s; }
.lg-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.lg-switch input:checked + .lg-track { background: linear-gradient(90deg, var(--lg-brand), #14b8a6); }
.lg-switch input:checked + .lg-track::after { transform: translateX(20px); }
.lg-switch input:focus-visible + .lg-track { box-shadow: 0 0 0 4px rgba(11,122,158,.25); }
.lg-switch-text { font-size: .9rem; color: #4b6070; }

/* button */
.lg-btn { position: relative; width: 100%; height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 14px; font: inherit; font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; color: #fff; cursor: pointer; overflow: hidden; background: linear-gradient(120deg, #0a4f70, #0b7a9e 55%, #0e9bb8); box-shadow: 0 14px 30px rgba(11,122,158,.4); transition: transform .15s, box-shadow .2s; }
.lg-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(11,122,158,.5); }
.lg-btn:hover::before { transform: translateX(120%); }
.lg-btn:hover i { transform: translateX(5px); }
.lg-btn i { transition: transform .25s; }
.lg-btn:active { transform: translateY(0); }
.lg-btn.is-loading { pointer-events: none; opacity: .85; }
.lg-btn.is-loading i { display: none; }
.lg-btn.is-loading::after { content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
.lg-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e3edf3; text-align: center; font-size: .78rem; color: #7a8e9b; }
.lg-foot i { color: var(--lg-brand); margin-right: 6px; }

/* ---- motion ---- */
@keyframes lg-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lg-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes lg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@keyframes lg-shine { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .lg-stage *, .lg-stage *::before, .lg-stage *::after { animation: none !important; transition: none !important; } .lg-curve path { stroke-dashoffset: 0; } }

/* ---- responsive ---- */
@media (max-width: 991.98px) {
    .lg-stage { place-items: start center; }
    .lg-shell { grid-template-columns: 1fr; gap: 28px; }
    .lg-viz, .lg-chips { display: none; }
    .lg-brand { margin-bottom: 20px; }
    .lg-headline { font-size: 2.2rem; }
    .lg-lead { margin-bottom: 0; }
}
@media (max-width: 480px) { .lg-stage { padding: 18px 14px; } .lg-card { border-radius: 20px; } }

/* developer credit on the card */
.lg-dev { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .74rem; color: #7a8e9b; }
.lg-dev img { height: 20px; width: auto; display: block; }

/* ---- always-animated Pareto hero ---- */
.lg-bars { position: relative; height: 128px; display: flex; align-items: flex-end; gap: 7px; overflow: hidden; }
.lg-bar { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #38bdf8, #0b7a9e); transform-origin: bottom; transform-box: fill-box;
    animation: lg-grow .9s cubic-bezier(.2,.9,.2,1) both, lg-breathe calc(2.6s + var(--i) * .22s) ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 70ms + .3s), calc(var(--i) * 70ms + 1.3s); }
.lg-bar:nth-of-type(n+2):nth-of-type(-n+4) { background: linear-gradient(180deg, #fbbf24, #f97316); }
.lg-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lg-curve polyline { fill: none; stroke: var(--lg-mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(94,234,212,.8)); animation: lg-draw-loop 6s ease-in-out 1.1s infinite; }
.lg-dot { position: absolute; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--lg-mint); box-shadow: 0 0 10px rgba(94,234,212,.9); opacity: 0; animation: lg-dot-loop 6s ease-in-out infinite; animation-delay: calc(var(--i) * .2s + 1.1s); }
.lg-scan { position: absolute; top: 0; bottom: 0; width: 38px; left: 0; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); transform: translateX(-60px); animation: lg-scan 5s linear infinite; pointer-events: none; }
.lg-live { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: lg-ping 1.8s ease-out infinite; vertical-align: middle; }
.lg-viz { animation: lg-glow 6s ease-in-out infinite; }
.lg-chip { animation: lg-bob 4.5s ease-in-out infinite, lg-chip-glow 6s ease-in-out infinite; }
.lg-chip i { display: inline-block; animation: lg-icon 3s ease-in-out infinite; }
.lg-chip-1 { animation-delay: 0s, 0s; } .lg-chip-2 { animation-delay: -1.1s, 1.5s; } .lg-chip-3 { animation-delay: -2.2s, 3s; } .lg-chip-4 { animation-delay: -3.3s, 4.5s; }
.lg-chip-2 i { animation-delay: -.7s; } .lg-chip-3 i { animation-delay: -1.4s; } .lg-chip-4 i { animation-delay: -2.1s; animation-name: lg-icon-spin; animation-duration: 4s; }

@keyframes lg-breathe { from { scale: 1 .84; } to { scale: 1 1; } }
@keyframes lg-draw-loop { 0% { stroke-dashoffset: 1; opacity: 1; } 50% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lg-dot-loop { 0% { opacity: 0; scale: .2; } 6% { opacity: 1; scale: 1.5; } 12% { opacity: 1; scale: 1; } 85% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .2; } }
@keyframes lg-scan { to { transform: translateX(560px); } }
@keyframes lg-ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }
@keyframes lg-glow { 0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 rgba(94,234,212,0); } 50% { box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 34px rgba(94,234,212,.18); } }
@keyframes lg-chip-glow { 0%, 80%, 100% { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); } 90% { border-color: rgba(94,234,212,.7); background: rgba(94,234,212,.16); } }
@keyframes lg-icon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes lg-icon-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-curve polyline { stroke-dashoffset: 0; } .lg-dot { opacity: 1; } }
