/* ==========================================================================
   LNX BILLING — SIGN IN
   Two panels: a drawn counter scene on the left, the form on the right.
   The scene animates gently and stops for anyone who asks for less motion.
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    background: #f5f7fb;
}

.lg-page {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

@media (max-width: 980px) {
    .lg-page { grid-template-columns: 1fr; }
    .lg-art { display: none; }
}

/* ==========================================================================
   LEFT PANEL
   ========================================================================== */
.lg-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    background: linear-gradient(140deg, #1e1b4b 0%, #312e81 45%, #1e3a8a 100%);
    color: #e0e7ff;
}

    .lg-art::before,
    .lg-art::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(2px);
        opacity: .16;
    }

    .lg-art::before {
        width: 460px; height: 460px;
        top: -160px; left: -140px;
        background: radial-gradient(circle at 30% 30%, #818cf8, transparent 65%);
    }

    .lg-art::after {
        width: 520px; height: 520px;
        bottom: -220px; right: -180px;
        background: radial-gradient(circle at 60% 40%, #22d3ee, transparent 65%);
    }

.lg-art-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    text-align: center;
}

.lg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.lg-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #c7d2fe;
}

.lg-brand-text {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: .5px;
    color: #e0e7ff;
}

    .lg-brand-text b { font-weight: 800; }

.lg-scene {
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.lg-art-copy h2 {
    margin: 18px 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.lg-art-copy p {
    margin: 0 auto;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(224, 231, 255, .75);
}

/* ---------------- the scene, moving ---------------- */
@keyframes lgPrint {
    0%, 8%    { transform: translateY(-248px); }
    46%, 88%  { transform: translateY(0); }
    100%      { transform: translateY(-248px); }
}

@keyframes lgStamp {
    0%, 52%  { opacity: 0; transform: scale(.4) rotate(-18deg); }
    62%      { opacity: 1; transform: scale(1.12) rotate(4deg); }
    70%, 88% { opacity: 1; transform: scale(1) rotate(0); }
    100%     { opacity: 0; transform: scale(.4) rotate(-18deg); }
}

@keyframes lgBlink {
    0%, 45%  { fill: #34d399; }
    50%, 95% { fill: #065f46; }
}

@keyframes lgSwing {
    0%, 100% { transform: rotate(-5deg); }
    50%      { transform: rotate(5deg); }
}

@keyframes lgFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@keyframes lgCoin {
    0%       { transform: translateY(16px) scale(.7); opacity: 0; }
    30%, 70% { transform: translateY(0) scale(1); opacity: 1; }
    100%     { transform: translateY(-18px) scale(.85); opacity: 0; }
}

.lg-bill   { animation: lgPrint 7s cubic-bezier(.4, 0, .2, 1) infinite; }
.lg-stamp  { animation: lgStamp 7s ease-in-out infinite; transform-origin: 316px 374px; }
.lg-led    { animation: lgBlink 1.6s steps(1, end) infinite; }
.lg-tag    { animation: lgSwing 3.4s ease-in-out infinite; transform-origin: 430px 96px; }
.lg-blob-1 { animation: lgFloat 9s ease-in-out infinite; }
.lg-blob-2 { animation: lgFloat 7s ease-in-out infinite reverse; }
.lg-blob-3 { animation: lgFloat 6s ease-in-out infinite; }

.lg-coin        { animation: lgCoin 3.2s ease-in-out infinite; }
.lg-coin-2      { animation-delay: .5s; }
.lg-coin-3      { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
    .lg-bill, .lg-stamp, .lg-led, .lg-tag,
    .lg-blob-1, .lg-blob-2, .lg-blob-3, .lg-coin {
        animation: none;
    }

    .lg-bill { transform: translateY(0); }
    .lg-stamp { opacity: 1; transform: none; }
}

/* ==========================================================================
   RIGHT PANEL
   ========================================================================== */
.lg-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #f5f7fb;
}

.lg-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
    padding: 30px 30px 24px;
    animation: lgCardIn .5s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes lgCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.lg-logo { text-align: center; margin-bottom: 18px; }

    .lg-logo img { max-width: 168px; height: auto; }

.lg-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #111827;
    letter-spacing: -.3px;
}

.lg-sub {
    margin: 4px 0 22px;
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
}

/* ---------------- fields ---------------- */
.lg-field { margin-bottom: 14px; }

    .lg-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: #6b7280;
    }

.lg-input {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    background: #f9fafb;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .lg-input:focus-within {
        border-color: #4f46e5;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    }

    .lg-input > i {
        width: 18px;
        margin-right: 8px;
        font-size: 13px;
        color: #9ca3af;
        text-align: center;
    }

    .lg-input:focus-within > i { color: #4f46e5; }

    .lg-input input,
    .lg-input select {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: 0;
        outline: none;
        background: transparent;
        font-size: 14px;
        color: #111827;
        font-family: inherit;
    }

    .lg-input select { cursor: pointer; }

.lg-eye {
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 2px 4px 8px;
    font-size: 13px;
}

    .lg-eye:hover { color: #4f46e5; }

/* ---------------- remember ---------------- */
.lg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.lg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

    .lg-check input { position: absolute; opacity: 0; pointer-events: none; }

    .lg-check span {
        width: 18px;
        height: 18px;
        border: 1.5px solid #cbd5e1;
        border-radius: 5px;
        background: #fff;
        transition: all .16s ease;
        position: relative;
    }

    .lg-check input:checked + span {
        background: #4f46e5;
        border-color: #4f46e5;
    }

        .lg-check input:checked + span::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 10px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

/* ---------------- submit ---------------- */
.lg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

    .lg-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .lg-submit:active { transform: translateY(0); }
    .lg-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

    .lg-submit i { transition: transform .18s ease; }
    .lg-submit:hover i { transform: translateX(3px); }

.lg-foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.7;
    color: #9ca3af;
}

    .lg-foot b { color: #6b7280; }

/* the template's loader markup is gone, but its class may linger in caches */
.loader-wrapper { display: none !important; }
