/* ============================================================
   AMS — login-v3.css  (2026-10-15)  "Live Studio" sign-in page
   Fixed look (no user theme). Segoe UI. Responsive:
     • ≥1600px wide  — roomier, capped widths
     • 981–1279px    — tighter columns, floating chip hidden
     • ≤980px        — single column: form only, logo on top
     • short screens — showcase compacts (≤820px / ≤700px tall)
   ============================================================ */

:root { --ls-ink: #0b1020; --ls-muted: #5d667a; --ls-v: #0b1020; --ls-c: #475569; --ls-p: #94a3b8; --ls-line: rgba(15,23,42,.08); }

html, body.ls-body { height: 100%; }
body.ls-body { margin: 0; background: #fff; color: var(--ls-ink); -webkit-font-smoothing: antialiased; }
.ls-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ── Left showcase ── */
.ls-show { position: relative; z-index: 2; margin: 0; border-radius: 0 72px 72px 0; overflow: hidden; box-shadow: 24px 0 60px -34px rgba(76,29,149,.35); isolation: isolate; display: flex; flex-direction: column;
    padding: clamp(24px, 3.2vw, 44px) clamp(24px, 3.6vw, 56px) clamp(24px, 3.2vw, 44px) clamp(28px, 3.6vw, 56px); background: linear-gradient(150deg, #eef2ff 0%, #f5f3ff 35%, #ecfeff 75%, #fdf2f8 100%); }
#ls-ribbons { position: absolute; inset: 0; z-index: -1; }
.ls-show-top { display: flex; align-items: center; gap: 12px; }
.ls-logo { height: 30px; width: auto; display: block; }
.ls-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #047857; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(16,185,129,.25); }
.ls-live b { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: lsBlink 1.4s infinite; }
@keyframes lsBlink { 50% { opacity: .3; } }

.ls-copy { margin: clamp(22px, 4vh, 40px) 0 clamp(18px, 3vh, 28px); max-width: 560px; }
.ls-copy h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 2.9vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.ls-copy h2 span { color: #64748b; }
.ls-copy p { margin: 0; color: var(--ls-muted); font-size: 1rem; }

.ls-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: stretch; padding-bottom: 4vh; justify-content: center; min-height: 0; }
.ls-app { position: relative; width: 100%; max-width: 680px; border-radius: 20px; background: rgba(255,255,255,.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 40px 80px -40px rgba(30,27,75,.5); overflow: hidden;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .3s ease-out; }
.ls-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--ls-line); }
.ls-chrome i { width: 10px; height: 10px; border-radius: 50%; }
.ls-chrome i:nth-child(1) { background: #fca5a5; } .ls-chrome i:nth-child(2) { background: #fcd34d; } .ls-chrome i:nth-child(3) { background: #86efac; }
.ls-url { margin-left: 12px; flex: 1; max-width: 300px; height: 24px; border-radius: 8px; background: #f1f3f9; font-size: .72rem; color: #94a3b8; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.ls-body-grid { display: grid; grid-template-columns: 54px 1fr; }
.ls-rail { border-right: 1px solid var(--ls-line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ls-rail span { width: 30px; height: 30px; border-radius: 9px; background: #f1f3f9; }
.ls-rail span.on { background: linear-gradient(135deg, var(--ls-v), var(--ls-c)); box-shadow: 0 6px 14px -6px rgba(15,23,42,.8); }
.ls-work { padding: 18px 20px 72px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ls-prompt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ls-line); font-size: .86rem; }
.ls-ai { width: 28px; height: 28px; flex: none; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; background: linear-gradient(135deg, var(--ls-v), var(--ls-c)); }
.ls-ptxt { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; }
.ls-cur { display: inline-block; width: 2px; height: 1em; background: var(--ls-v); margin-left: 1px; animation: lsBlink 1s steps(2) infinite; }
.ls-post { display: grid; grid-template-columns: 1fr minmax(110px, 150px); gap: 14px; }
.ls-cap { padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ls-line); font-size: .84rem; line-height: 1.55; color: #1f2937; min-height: 132px; }
.ls-cap-h { margin-bottom: 8px; font-size: .7rem; font-weight: 700; color: var(--ls-muted); text-transform: uppercase; letter-spacing: .05em; }
.ls-cap .tag { color: var(--ls-v); font-weight: 600; }
.ls-imgs { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.ls-im { border-radius: 12px; position: relative; overflow: hidden; background: #eef0f6; min-height: 56px; }
.ls-im:after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); background-size: 200% 100%; animation: lsShimmer 1.3s linear infinite; }
.ls-im.done:after { display: none; }
.ls-im.done.a { background: radial-gradient(circle at 70% 30%, #fde68a, transparent 40%), linear-gradient(135deg, #a78bfa, #f472b6); }
.ls-im.done.b { background: radial-gradient(circle at 30% 70%, #a5f3fc, transparent 45%), linear-gradient(135deg, #22d3ee, #6366f1); }
.ls-im.done:before { content: ""; position: absolute; left: 12%; bottom: 16%; width: 46%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.8); box-shadow: 0 14px 0 -1px rgba(255,255,255,.55); }
@keyframes lsShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.ls-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.ls-st { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; font-size: .74rem; font-weight: 600; color: #94a3b8; background: #f6f7fb; transition: all .3s; }
.ls-st b { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; box-sizing: border-box; }
.ls-st.on { color: #0b1020; background: #eef0f4; }
.ls-st.on b { border-color: #cbd5e1; border-top-color: #0b1020; animation: lsSpin .8s linear infinite; }
.ls-st.ok { color: #047857; background: #ecfdf5; }
.ls-st.ok b { border: 0; background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; }
@keyframes lsSpin { to { transform: rotate(360deg); } }
.ls-toast { position: absolute; right: 18px; bottom: 18px; left: 72px; max-width: max-content; margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
    background: #0b1020; color: #fff; font-size: .8rem; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(11,16,32,.7); opacity: 0; transform: translateY(14px); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.ls-toast.show { opacity: 1; transform: none; }
.ls-toast i { width: 22px; height: 22px; flex: none; border-radius: 7px; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.ls-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ls-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ls-chips .ls-chip { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; font-size: .78rem;
    background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 12px 26px -16px rgba(30,27,75,.4); }
.ls-chips .ls-chip b { display: block; font-size: .98rem; }
.ls-chips .ls-chip small { color: var(--ls-muted); }
.ls-chips[data-scene="content"] .c-cs, .ls-chips[data-scene="cs"] .c-ct { display: none; }
.ls-chip-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: #0b1020; font-size: .8rem; }
@keyframes lsBob { 50% { transform: translateY(-8px); } }

/* ── Right: form column ── */
.ls-auth { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 80px) 22px; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.ls-auth-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ls-logo-mobile { display: none; height: 30px; margin-right: auto; }
.ls-new { font-size: .88rem; color: var(--ls-muted); white-space: nowrap; }
.ls-new a { color: var(--ls-ink); font-weight: 600; text-decoration: none; margin-left: 8px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ls-line); transition: all .15s; }
.ls-new a:hover { box-shadow: 0 0 0 1px rgba(15,23,42,.45); color: var(--ls-v); }

.ls-form { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.ls-form h1 { margin: 0; font-size: clamp(2.1rem, 3.4vw, 3rem); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
.ls-lead { margin: 10px 0 32px; color: var(--ls-muted); font-size: 1rem; }

.ls-fl { position: relative; margin-bottom: 16px; }
.ls-fl input { width: 100%; box-sizing: border-box; height: 60px; border-radius: 16px; border: 1.5px solid #e4e7ef; background: #fbfbfe; font: inherit; font-size: 1rem; color: var(--ls-ink);
    padding: 22px 50px 6px 18px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.ls-fl label { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: #8a93a6; font-size: 1rem; pointer-events: none; transition: all .18s ease; }
.ls-fl input:focus, .ls-fl input:not(:placeholder-shown) { background: #fff; }
.ls-fl input:focus { border-color: var(--ls-v); box-shadow: 0 0 0 4px rgba(15,23,42,.12); }
.ls-fl input:focus + label, .ls-fl input:not(:placeholder-shown) + label, .ls-fl input:-webkit-autofill + label { top: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ls-v); }
.ls-fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ls-ink); }
.ls-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: #8a93a6; cursor: pointer; font-size: 1rem; }
.ls-eye:hover { background: #f1f3f9; color: var(--ls-ink); }

.ls-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 2px 24px; font-size: .88rem; color: var(--ls-muted); }
.ls-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.ls-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ls-check span { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #cbd2df; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.ls-check input:checked + span { background: var(--ls-v); border-color: var(--ls-v); }
.ls-check input:checked + span:after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ls-check input:focus-visible + span { outline: 2px solid var(--ls-v); outline-offset: 2px; }
.ls-meta .lforgot { color: var(--ls-v); font-weight: 600; text-decoration: none; }
.ls-meta .lforgot:hover { text-decoration: underline; }

.ls-btn { position: relative; width: 100%; height: 58px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-size: 1.02rem; font-weight: 700; color: #fff; overflow: hidden; isolation: isolate;
    background: #0b1020; display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 18px 36px -18px rgba(11,16,32,.8); transition: transform .15s; }
.ls-btn:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--ls-v), var(--ls-c) 50%, var(--ls-p)); opacity: 0; transition: opacity .35s; }
.ls-btn:hover:before, .ls-btn:focus-visible:before { opacity: 1; }
.ls-btn:hover { transform: translateY(-1px); }
.ls-btn i { transition: transform .2s; }
.ls-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.ls-btn:disabled { cursor: wait; opacity: .85; }

.ls-err { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: .86rem; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }

.ls-trust { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ls-line); font-size: .8rem; color: var(--ls-muted); }
.ls-trust i { color: #10b981; margin-right: 6px; }

.ls-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: #a0a8b9; }
.ls-foot a { color: #8a93a6; text-decoration: none; margin-left: 14px; }
.ls-foot a:first-child { margin-left: 0; }
.ls-foot a:hover { color: var(--ls-ink); }

/* ── Large screens ── */
@media (min-width: 1600px) {
    .ls-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(480px, 1fr); }
    .ls-app { max-width: 760px; }
    .ls-cap { font-size: .9rem; min-height: 150px; }
    .ls-form { max-width: 440px; }
}

/* ── Laptops / small desktops ── */
@media (max-width: 1279px) {
    .ls-wrap { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); }
    .ls-chips { display: none; }
    .ls-post { grid-template-columns: 1fr 110px; }
    .ls-url { display: none; }
}

/* ── Short screens (e.g. 1366×768 laptops): compact the showcase so nothing gets cut ── */
@media (max-height: 820px) and (min-width: 981px) {
    .ls-copy p { display: none; }
    .ls-copy h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
    .ls-work { padding: 14px 16px 64px; gap: 10px; }
    .ls-cap { min-height: 104px; font-size: .8rem; }
    .ls-form { padding: 16px 0; }
    .ls-lead { margin-bottom: 22px; }
    .ls-fl input { height: 54px; }
    .ls-btn { height: 52px; }
    .ls-trust { margin-top: 20px; padding-top: 16px; }
}
@media (max-height: 700px) and (min-width: 981px) {
    .ls-steps { display: none; }
    .ls-work { padding-bottom: 60px; }
    .ls-cap { min-height: 84px; }
    .ls-trust { display: none; }
}

/* ── Tablet & phone: form only ── */
@media (max-width: 980px) {
    .ls-wrap { grid-template-columns: 1fr; }
    .ls-show { display: none; }
    .ls-logo-mobile { display: block; }
    .ls-auth { background: radial-gradient(700px 400px at 100% 0%, #f5f3ff, transparent 70%), radial-gradient(600px 400px at 0% 100%, #ecfeff, transparent 70%), #fff; }
}
@media (max-width: 480px) {
    .ls-auth { padding: 18px 18px 16px; }
    .ls-new { font-size: 0; }
    .ls-new a { font-size: .84rem; margin-left: 0; }
    .ls-form h1 { font-size: 2rem; }
    .ls-lead { margin-bottom: 24px; }
    .ls-meta { font-size: .84rem; }
    .ls-foot { justify-content: center; text-align: center; }
    .ls-foot > span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ls-live b, .ls-cur, .ls-im:after, .ls-st.on b, .ls-chip { animation: none !important; }
    .ls-app, .ls-toast, .ls-btn { transition: none !important; }
}

/* ── Customer Service scene (2026-10-19): the demo alternates "content" and "inbox" ── */
.ls-app .ls-work-cs { display: none; }
.ls-app[data-scene="cs"] .ls-work-content { display: none; }
.ls-app[data-scene="cs"] .ls-work-cs { display: flex; }
.ls-work-cs { flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px 72px; }
.ls-cs-head { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ls-line); }
.ls-cs-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.ls-cs-who b { display: block; font-size: .86rem; line-height: 1.2; }
.ls-cs-who small { color: var(--ls-muted); font-size: .72rem; }
.ls-cs-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0b1020; background: #f5f3ff; transition: all .3s; }
.ls-cs-badge b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ls-cs-badge.ai { color: #0e7490; background: #ecfeff; }
.ls-cs-badge.done { color: #047857; background: #ecfdf5; }
.ls-cs-thread { display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ls-line); }
.ls-bub { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: .83rem; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.ls-bub.show { opacity: 1; transform: none; }
.ls-bub.in { align-self: flex-start; background: #f1f3f9; color: #1f2937; border-bottom-left-radius: 5px; }
.ls-bub.out { align-self: flex-end; color: #fff; background: #0b1020; border-bottom-right-radius: 5px; }
.ls-bub.out .tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.22); }
.ls-dots { align-self: flex-end; display: none; gap: 4px; padding: 10px 13px; border-radius: 16px; border-bottom-right-radius: 5px; background: #ede9fe; }
.ls-dots.show { display: inline-flex; }
.ls-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; animation: lsDot 1s infinite; }
.ls-dots i:nth-child(2) { animation-delay: .15s; } .ls-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lsDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-height: 820px) and (min-width: 981px) { .ls-work-cs { padding: 14px 16px 64px; gap: 10px; } .ls-cs-thread { min-height: 132px; } }
@media (max-height: 700px) and (min-width: 981px) { .ls-cs-thread { min-height: 100px; } }
@media (prefers-reduced-motion: reduce) { .ls-dots i { animation: none !important; } .ls-bub { transition: none !important; } }

/* ── Centred container (like the register page): on wide screens the whole sign-in sits in a max-width box ── */
@media (min-width: 981px) {
    body.ls-body { background: radial-gradient(900px 520px at 0% 0%, #f1ecff, transparent 70%), radial-gradient(800px 500px at 100% 100%, #e6fbff, transparent 70%), #fbfaff; }
    .ls-wrap { max-width: 1280px; margin: 0 auto; padding: 28px; box-sizing: border-box; column-gap: 12px; }
    .ls-show { border-radius: 40px; box-shadow: 0 30px 70px -40px rgba(76,29,149,.45); }
    .ls-auth { background: transparent; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
}
.ls-stage .ls-app { margin-left: auto; margin-right: auto; }
