/* ==========================================================================
   Mash.LojisTech — Premium Login
   Split layout: left hero (dark navy + animated logistics motifs) / right form
   ========================================================================== */

.ljx-login {
    min-height: 100vh;
    background: #0b1220;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ------- page layout ------- */
.ljx-login-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 100vh;
}
@media (max-width: 991.98px) {
    .ljx-login-shell { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LEFT HERO
   ========================================================================== */
.ljx-login-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #e2e8f0;
    background:
        radial-gradient(1100px 600px at 10% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(14, 165, 233, 0.22), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #111a34 50%, #0c1935 100%);
}
@media (max-width: 991.98px) {
    .ljx-login-hero { display: none; }
}

/* soft grid overlay adds high-end depth */
.ljx-login-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 30%, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 35%, transparent 75%);
    pointer-events: none;
}

/* drifting aurora glow */
.ljx-login-hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(500px 260px at 20% 40%, rgba(129, 140, 248, 0.25), transparent 60%),
        radial-gradient(420px 220px at 80% 70%, rgba(56, 189, 248, 0.22), transparent 60%);
    filter: blur(6px);
    animation: ljx-aurora 22s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ljx-aurora {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(2%, -2%, 0) scale(1.04); }
}

/* ------ brand row ------ */
.ljx-hero-brand {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 0.9rem;
}
.ljx-hero-brand .mark {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ljx-hero-brand .wordmark strong {
    font-size: 1.2rem; letter-spacing: -0.01em; color: #f8fafc;
}
.ljx-hero-brand .wordmark small {
    display: block; color: #94a3b8; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
}

/* ------ centerpiece visualization (globe + orbits + cargo) ------ */
.ljx-hero-stage {
    position: relative; z-index: 2;
    flex-grow: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem 0;
}

.ljx-stage-globe {
    position: relative;
    width: min(420px, 70%);
    aspect-ratio: 1;
}

.ljx-globe-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.25);
}
.ljx-globe-ring.r2 { inset: 8%;  border-style: solid; border-color: rgba(148, 163, 184, 0.16); }
.ljx-globe-ring.r3 { inset: 18%; border-style: dashed; border-color: rgba(148, 163, 184, 0.22); animation: ljx-spin 60s linear infinite reverse; }

.ljx-globe-core {
    position: absolute; inset: 28%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 32%, rgba(255,255,255,0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.45), transparent 65%),
        linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow:
        inset 0 0 40px rgba(56, 189, 248, 0.2),
        0 10px 40px rgba(14, 23, 42, 0.6),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    overflow: hidden;
}
.ljx-globe-core::before {
    /* latitude lines */
    content: "";
    position: absolute; inset: 0; border-radius: 50%;
    background: repeating-linear-gradient(to bottom, transparent 0 18%, rgba(148, 163, 184, 0.12) 18% calc(18% + 1px));
}
.ljx-globe-core::after {
    /* meridian arc */
    content: "";
    position: absolute; inset: 0; border-radius: 50%;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    transform: rotateY(60deg);
}

/* orbiting container icon */
.ljx-orbit {
    position: absolute; inset: 0;
    animation: ljx-spin 24s linear infinite;
}
.ljx-orbit.orbit-2 { animation-duration: 36s; animation-direction: reverse; }
.ljx-orbit.orbit-3 { animation-duration: 48s; }
.ljx-orbit .chip {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #f8fafc; font-size: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(67, 56, 202, 0.95));
    box-shadow: 0 12px 25px -10px rgba(99, 102, 241, 0.75), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: ljx-counter-spin 24s linear infinite;
}
.ljx-orbit.orbit-2 .chip {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(3, 105, 161, 0.95));
    box-shadow: 0 12px 25px -10px rgba(56, 189, 248, 0.75), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: ljx-counter-spin 36s linear infinite reverse;
}
.ljx-orbit.orbit-3 .chip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    box-shadow: 0 12px 25px -10px rgba(16, 185, 129, 0.75), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: ljx-counter-spin 48s linear infinite;
}
@keyframes ljx-spin {
    from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes ljx-counter-spin {
    from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); }
}

/* radar pulse on the globe */
.ljx-pulse {
    position: absolute; top: 50%; left: 50%;
    width: 10px; height: 10px; border-radius: 50%;
    background: #38BDF8;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
    animation: ljx-pulse-ring 3s ease-out infinite;
}
@keyframes ljx-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
    70%  { box-shadow: 0 0 0 56px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* floating stat badges around the globe */
.ljx-stat {
    position: absolute;
    padding: 0.55rem 0.9rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f1f5f9;
    font-size: 0.78rem;
    line-height: 1.1;
    min-width: 130px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    animation: ljx-float 6s ease-in-out infinite;
}
.ljx-stat .label {
    display: block; color: #94a3b8; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
}
.ljx-stat .value { font-weight: 700; font-size: 0.95rem; color: #f8fafc; }
.ljx-stat .value .accent { color: #38BDF8; }
.ljx-stat .value .accent-success { color: #34d399; }

.ljx-stat.stat-1 { top: 12%;  left: -4%;  animation-delay: 0s; }
.ljx-stat.stat-2 { top: 22%;  right: -6%; animation-delay: 1.2s; }
.ljx-stat.stat-3 { bottom: 14%; left: 0%;  animation-delay: 2.4s; }
.ljx-stat.stat-4 { bottom: 6%;  right: -2%; animation-delay: 3.6s; }

@keyframes ljx-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ------ features panel beneath the globe ------ */
.ljx-hero-foot {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.ljx-feature {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ljx-feature .fi {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #f8fafc; flex-shrink: 0;
}
.ljx-feature:nth-child(1) .fi { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ljx-feature:nth-child(2) .fi { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.ljx-feature:nth-child(3) .fi { background: linear-gradient(135deg, #10b981, #059669); }
.ljx-feature:nth-child(4) .fi { background: linear-gradient(135deg, #f59e0b, #b45309); }
.ljx-feature h5 { font-size: 0.92rem; margin: 0 0 2px 0; color: #f8fafc; font-weight: 600; }
.ljx-feature p  { font-size: 0.78rem; margin: 0; color: #94a3b8; line-height: 1.45; }

/* marquee-style tagline above features */
.ljx-hero-tag {
    position: relative; z-index: 2;
    margin-bottom: 1.5rem;
}
.ljx-hero-tag .eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 999px;
    color: #c7d2fe;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.ljx-hero-tag .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: ljx-live-dot 2s ease-out infinite;
}
@keyframes ljx-live-dot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.ljx-hero-tag h1 {
    font-size: 2.2rem; line-height: 1.15;
    color: #f8fafc;
    font-weight: 800; letter-spacing: -0.02em;
    margin: 0.9rem 0 0.4rem;
}
.ljx-hero-tag h1 .grad {
    background: linear-gradient(90deg, #a5b4fc 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ljx-hero-tag p {
    color: #94a3b8; font-size: 0.95rem; max-width: 440px; margin: 0;
}

/* ==========================================================================
   RIGHT FORM PANEL
   ========================================================================== */
.ljx-login-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem;
    background: #f8fafc;
    position: relative;
}
.ljx-login-panel::before {
    /* soft corner texture */
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(400px 260px at 100% 0%, rgba(99, 102, 241, 0.06), transparent 60%),
        radial-gradient(380px 240px at 0% 100%, rgba(14, 165, 233, 0.05), transparent 60%);
    pointer-events: none;
}

.ljx-login-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
}

/* shown on mobile only — mini brand so we don't lose identity */
.ljx-login-mini-brand {
    display: none;
    align-items: center; gap: 0.6rem;
    margin-bottom: 2rem;
    color: #0f172a;
}
.ljx-login-mini-brand .mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ljx-login-mini-brand strong { font-size: 1rem; }
@media (max-width: 991.98px) {
    .ljx-login-mini-brand { display: inline-flex; }
    .ljx-login-panel { min-height: 100vh; }
}

.ljx-login-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}
.ljx-login-sub {
    color: #64748b;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* form inputs */
.ljx-field {
    position: relative;
    margin-bottom: 1.1rem;
}
.ljx-field label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.ljx-field .wrap {
    position: relative;
}
.ljx-field .wrap i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}
.ljx-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    font-family: inherit;
}
.ljx-field input::placeholder { color: #cbd5e1; }
.ljx-field input:hover { border-color: #cbd5e1; }
.ljx-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: #fff;
}
.ljx-field:focus-within i { color: #6366f1; }

/* password visibility toggle */
.ljx-field .toggle-password {
    position: absolute;
    right: 12px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    border: 0; background: transparent;
    transition: color .2s ease, background .2s ease;
}
.ljx-field .toggle-password:hover { color: #0f172a; background: #f1f5f9; }

/* row below password — remember me + forgot */
.ljx-login-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.ljx-remember {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.ljx-remember input {
    width: 16px; height: 16px; accent-color: #6366f1;
}
.ljx-forgot {
    color: #6366f1; font-size: 0.85rem; text-decoration: none; font-weight: 600;
}
.ljx-forgot:hover { color: #4338ca; text-decoration: underline; }

/* primary CTA */
.ljx-login-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    box-shadow: 0 18px 32px -14px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform .18s ease, box-shadow .25s ease, filter .18s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.ljx-login-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 22px 36px -14px rgba(99, 102, 241, 0.7); }
.ljx-login-btn:active { transform: translateY(0); }
.ljx-login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.ljx-login-btn .spin {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; border-radius: 50%;
    animation: ljx-spin-btn 0.7s linear infinite;
    display: none;
}
.ljx-login-btn.is-loading .spin { display: inline-block; }
.ljx-login-btn.is-loading .label { display: none; }
@keyframes ljx-spin-btn { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* error alert */
.ljx-login-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.85rem;
    border-radius: 10px;
    display: none;
}
.ljx-login-error.is-shown { display: block; }

/* footer strip under the form */
.ljx-login-foot {
    margin-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    color: #94a3b8;
    font-size: 0.75rem;
}
.ljx-login-foot a { color: #64748b; text-decoration: none; }
.ljx-login-foot a:hover { color: #0f172a; }
.ljx-login-foot .pill {
    padding: 0.2rem 0.55rem;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .ljx-login-hero::after,
    .ljx-orbit, .ljx-orbit .chip,
    .ljx-pulse, .ljx-stat, .ljx-globe-ring.r3,
    .ljx-hero-tag .eyebrow .dot,
    .ljx-login-btn .spin {
        animation: none !important;
    }
}
