/* Professional split-screen login — Whitevue / JAZAN ERP */
:root {
    --lp-brand: var(--primary);
    --lp-brand-dark: var(--primary);
    --lp-brand-soft: #e8f3f9;
    --lp-text: #0f172a;
    --lp-muted: #64748b;
    --lp-line: #e2e8f0;
    --lp-wa: #128c7e;
}

.lp-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 440px) 1fr;
    background: #fff;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.lp-panel {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.85rem 1.4rem;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--lp-line);
}

.lp-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none !important;
    color: inherit;
}

.lp-brand img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.lp-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
}

.lp-brand__name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--lp-text);
    line-height: 1.15;
}

.lp-brand__tag {
    display: block;
    font-size: 0.72rem;
    color: var(--lp-muted);
    font-weight: 600;
}

.lp-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--lp-line);
    color: var(--lp-brand) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    background: #fff;
}

.lp-home-link:hover {
    background: var(--lp-brand-soft);
}

.lp-panel__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
}

.lp-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--lp-text);
    letter-spacing: -0.02em;
}

.lp-lead {
    margin: 0 0 1.35rem;
    color: var(--lp-muted);
    font-size: 0.92rem;
}

.lp-lead strong { color: var(--lp-brand); }

/* Demo accounts — compact quick-fill panel */
.lp-demo-accounts {
    margin: 0 0 1.1rem;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid var(--lp-line);
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lp-demo-accounts__head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    padding: 0 0.15rem 0.55rem;
    border-bottom: 1px solid var(--lp-line);
}

.lp-demo-accounts__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 0.45rem;
    border-radius: 6px;
    background: var(--lp-brand, var(--primary, #2f6d93));
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-demo-accounts__head strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--lp-text);
    line-height: 1.2;
}

.lp-demo-accounts__head span:last-child {
    display: block;
    margin-top: 1px;
    font-size: 0.68rem;
    color: var(--lp-muted);
    line-height: 1.3;
}

.lp-demo-accounts__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lp-demo-account {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.55rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.lp-demo-account:hover {
    border-color: rgba(var(--primary-rgb, 47, 109, 147), 0.35);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.lp-demo-account:focus-visible {
    outline: 2px solid var(--lp-brand, var(--primary, #2f6d93));
    outline-offset: 2px;
}

.lp-demo-account.is-active {
    border-color: var(--lp-brand, var(--primary, #2f6d93));
    background: rgba(var(--primary-rgb, 47, 109, 147), 0.06);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb, 47, 109, 147), 0.12);
}

.lp-demo-account__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 47, 109, 147), 0.1);
    color: var(--lp-brand, var(--primary, #2f6d93));
    font-size: 0.85rem;
}

.lp-demo-account.is-active .lp-demo-account__icon {
    background: var(--lp-brand, var(--primary, #2f6d93));
    color: #fff;
}

.lp-demo-account__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lp-demo-account__label {
    font-size: 0.76rem;
    font-weight: 750;
    color: var(--lp-text);
    line-height: 1.2;
}

.lp-demo-account__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.3rem;
    font-size: 0.66rem;
    color: var(--lp-muted);
    line-height: 1.25;
}

.lp-demo-account__meta code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 650;
    color: #334155;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0.05rem 0.28rem;
}

.lp-demo-account__sep { opacity: 0.45; }

.lp-demo-account__action {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 750;
    color: var(--lp-brand, var(--primary, #2f6d93));
    opacity: 0.85;
}

.lp-demo-account:hover .lp-demo-account__action,
.lp-demo-account.is-active .lp-demo-account__action {
    opacity: 1;
}

.lp-demo-account__action i {
    font-size: 0.58rem;
    transition: transform 0.15s ease;
}

.lp-demo-account:hover .lp-demo-account__action i {
    transform: translateX(2px);
}

.lp-input.is-demo-filled {
    animation: lpDemoFill 0.65s ease;
}

@keyframes lpDemoFill {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 47, 109, 147), 0); }
    35% { box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 47, 109, 147), 0.28); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 47, 109, 147), 0); }
}

html[dir="rtl"] .lp-demo-account {
    text-align: right;
}

html[dir="rtl"] .lp-demo-account__action i {
    transform: scaleX(-1);
}

html[dir="rtl"] .lp-demo-account:hover .lp-demo-account__action i {
    transform: scaleX(-1) translateX(2px);
}

.lp-field { margin-bottom: 0.95rem; }

.lp-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.lp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lp-input-wrap .lp-ico {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.lp-input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 2.6rem 0.65rem 2.5rem;
    border: 1.5px solid #dbe3ec;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--lp-text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.lp-input:focus {
    border-color: var(--lp-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 109, 147, 0.16);
}

.lp-toggle {
    position: absolute;
    right: 10px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 4px;
    cursor: pointer;
}

.lp-toggle:hover { color: var(--lp-brand); }

.lp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 1.15rem;
}

.lp-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.lp-check input { accent-color: var(--lp-brand); }

.lp-forgot {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--lp-brand) !important;
    text-decoration: none !important;
}

.lp-forgot:hover { text-decoration: underline !important; }

.lp-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.lp-btn--primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(47, 109, 147, 0.28);
}

.lp-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(47, 109, 147, 0.34);
}

.lp-btn--ghost {
    margin-top: 0.65rem;
    background: #fff;
    color: var(--lp-brand-dark) !important;
    border: 1.5px solid var(--lp-line);
    text-decoration: none !important;
}

.lp-btn--ghost:hover { background: var(--lp-brand-soft); }

.lp-btn:disabled { opacity: 0.75; cursor: wait; }

.lp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ERP circle */
.lp-circle-wrap {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lp-line);
}

.lp-circle-head {
    text-align: center;
    margin-bottom: 0.85rem;
}

.lp-circle-head span {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-brand);
    background: var(--lp-brand-soft);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.lp-circle-head p {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--lp-muted);
}

.lp-circle {
    --size: 250px;
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 0.5rem auto 0.25rem;
}

.lp-circle__ring {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1.5px dashed rgba(47, 109, 147, 0.28);
}

.lp-circle__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 12px 28px rgba(47, 109, 147, 0.35);
    z-index: 2;
}

.lp-circle__core i,
.lp-circle__core strong {
    color: #ffffff !important;
}

.lp-circle__core i { font-size: 1.2rem; }
.lp-circle__core strong {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.lp-circle__node {
    --n: 9;
    --i: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    margin-left: -32px;
    margin-top: -28px;
    transform:
        rotate(calc(360deg / var(--n) * var(--i)))
        translateY(-108px)
        rotate(calc(-360deg / var(--n) * var(--i)));
    text-align: center;
}

.lp-circle__bubble {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.25rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--lp-line);
    color: var(--lp-brand);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
}

.lp-circle__node span {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.15;
}

.lp-panel__foot {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
}

.lp-panel__foot strong { color: #64748b; }

/* Right slideshow */
.lp-stage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0b2545;
    color: #ffffff;
}

.lp-stage__slides {
    position: absolute;
    inset: 0;
}

.lp-stage__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 6s ease;
}

.lp-stage__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.lp-stage__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(11, 37, 69, 0.72) 0%, rgba(11, 37, 69, 0.28) 55%, rgba(11, 37, 69, 0.45) 100%),
        linear-gradient(180deg, rgba(11, 37, 69, 0.15), rgba(11, 37, 69, 0.55));
    z-index: 1;
}

.lp-stage__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 3rem 2.25rem;
    max-width: 720px;
    color: #ffffff;
}

.lp-stage__kicker {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.lp-stage__title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.lp-stage__caption {
    margin: 0.85rem 0 1.25rem;
    font-size: 1.02rem;
    color: #ffffff !important;
    max-width: 34rem;
    min-height: 1.5em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}

.lp-stage__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lp-stage__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.lp-stage__btn:hover { background: rgba(255,255,255,.22); }

.lp-stage__dots {
    display: inline-flex;
    gap: 0.4rem;
    margin-inline-start: 0.35rem;
}

.lp-stage__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.35);
    padding: 0;
    cursor: pointer;
}

.lp-stage__dot.is-active {
    width: 22px;
    background: #fff;
}

@media (max-width: 980px) {
    .lp-shell { grid-template-columns: 1fr; }
    .lp-stage { min-height: 42vh; order: -1; }
    .lp-stage__content {
        min-height: 42vh;
        padding: 1.5rem 1.25rem 1.35rem;
        max-width: none;
    }
    .lp-stage__title { font-size: 1.45rem; }
    .lp-panel { border-right: 0; }
    .lp-circle { --size: 230px; }
    .lp-circle__node {
        transform:
            rotate(calc(360deg / var(--n) * var(--i)))
            translateY(-98px)
            rotate(calc(-360deg / var(--n) * var(--i)));
    }
}

@media (max-width: 520px) {
    .lp-panel { padding: 1.15rem 1rem 1.1rem; }
    .lp-circle-wrap { display: none; }
}
