/* =====================================================================
   ISWM Login – "Night Route" dark design (Default.aspx only)

   - Every selector starts with #iswmLogin, so no other page and no rule in
     global.css / dark-theme.css is changed; the id also out-ranks the
     generic .login_page rules those files contain.
   - The file name ends in "dark-theme.css" on purpose: js/dark-theme.js skips
     stylesheets with that name, so it will not re-colour this design.
   ===================================================================== */

#iswmLogin {
    --lx-bg: #04070b;
    --lx-panel: rgba(12, 17, 25, 0.78);
    --lx-field: rgba(255, 255, 255, 0.035);
    --lx-line: rgba(255, 255, 255, 0.08);
    --lx-line-2: rgba(255, 255, 255, 0.14);
    --lx-text: #eef4f8;
    --lx-muted: #8fa1b3;
    --lx-dim: #5d6f80;
    --lx-cyan: #4cc9f0;
    --lx-green: #2ee59d;
    --lx-green-2: #10b981;
    --lx-brand: #01503a;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 32px 16px !important;
    color: var(--lx-text);
    /* original login background image, shown exactly as in global.css (no overlay) */
    background: url(../Images/login_background.png) !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-color: var(--lx-bg) !important;
}

    /* keep hero text readable on top of the picture */
    #iswmLogin .lx-hero h2,
    #iswmLogin .lx-lead,
    #iswmLogin .lx-corp,
    #iswmLogin .lx-services figcaption {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
    }

    /* gradient text can't take text-shadow, so the heading uses a drop-shadow filter */
    #iswmLogin .lx-hero h1 {
        filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.8));
    }

    /* Typography (icons keep their own Font Awesome font) */
    #iswmLogin :where(div, p, span, a, label, input, h1, h2, h3, small) {
        font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    }

    #iswmLogin :where(h1, h2, .lx-title) {
        font-family: "Outfit", "Inter", system-ui, sans-serif;
    }


/* ---------- Two-column shell ---------- */
#iswmLogin .lx-shell {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

/* =====================================================================
   LEFT: brand / story
   ===================================================================== */
#iswmLogin .lx-hero {
    text-align: left;
}

#iswmLogin .lx-logos {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
   
}

    #iswmLogin .lx-logos img {
        height: 52px;
        width: auto;
        display: block;
    }

        #iswmLogin .lx-logos img.lx-logo-iswm {
            height: 42px;
        }

    #iswmLogin .lx-logos .lx-sep {
        width: 1px;
        height: 36px;
        background: #e2e8f0;
    }

    #iswmLogin .lx-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 28px 0 14px;
        padding: 7px 16px 7px 12px;
        border: 1px solid rgba(46, 229, 157, 0.32);
        border-radius: 999px;
        background: rgba(46, 229, 157, 0.08);
        color: #a7f3d0;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: 1.7px;
        text-transform: uppercase;
    }

        #iswmLogin .lx-eyebrow .lx-dot {
            width: 8px;
            height: 8px;
        }

    #iswmLogin .lx-eyebrow .lx-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--lx-green);
        box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.6);
        animation: lx-ping 2s infinite;
    }

@keyframes lx-ping {
    0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.55); }
    80%, 100% { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); }
}

#iswmLogin .lx-hero h2 {
    margin: 0;
    color: var(--lx-muted);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

#iswmLogin .lx-hero h1 {
    margin: 4px 0 14px;
    font-size: clamp(38px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.5px;
    white-space: normal;
    color: #ffffff;
}

    #iswmLogin .lx-hero h1 .lx-grad {
        background: linear-gradient(92deg, #a7f3d0 0%, var(--lx-green) 40%, var(--lx-cyan) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

#iswmLogin .lx-lead {
    max-width: 480px;
    margin: 0 0 26px;
    color: var(--lx-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Animated collection-route card ---------- */
#iswmLogin .lx-route {
    position: relative;
    max-width: 540px;
    padding: 14px 16px 6px;
    border: 1px solid var(--lx-line);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

    #iswmLogin .lx-route-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--lx-muted);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }

        #iswmLogin .lx-route-head .lx-live {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--lx-green);
        }

            #iswmLogin .lx-route-head .lx-live::before {
                content: "";
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: currentColor;
                animation: lx-blink 1.4s infinite;
            }

@keyframes lx-blink {
    50% { opacity: 0.25; }
}

#iswmLogin .lx-route svg {
    display: block;
    width: 100%;
    height: auto;
}

#iswmLogin .lx-route .lx-path-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 10;
    stroke-linecap: round;
}

#iswmLogin .lx-route .lx-path {
    fill: none;
    stroke: url(#lxRouteGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 2 9;
    animation: lx-flow 1.2s linear infinite;
}

@keyframes lx-flow {
    to { stroke-dashoffset: -22; }
}

#iswmLogin .lx-route .lx-bin {
    fill: #0b1219;
    stroke: var(--lx-green);
    stroke-width: 2;
}

#iswmLogin .lx-route .lx-bin-halo {
    fill: rgba(46, 229, 157, 0.18);
    transform-box: fill-box;
    transform-origin: center;
    animation: lx-halo 2.4s ease-out infinite;
}

    #iswmLogin .lx-route .lx-bin-halo:nth-of-type(2) { animation-delay: 0.6s; }
    #iswmLogin .lx-route .lx-bin-halo:nth-of-type(3) { animation-delay: 1.2s; }
    #iswmLogin .lx-route .lx-bin-halo:nth-of-type(4) { animation-delay: 1.8s; }

@keyframes lx-halo {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

#iswmLogin .lx-route .lx-depot {
    fill: var(--lx-cyan);
}

#iswmLogin .lx-route text {
    fill: var(--lx-dim);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ---------- Service icon strip ---------- */
#iswmLogin .lx-services {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

    #iswmLogin .lx-services figure {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 76px;
    }

    /* transparent ring around each icon (the picture behind shows through) */
    #iswmLogin .lx-services .lx-ic {
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    }

    /* the green circle is removed by the #lxIconKey filter; only the white symbol is drawn */
    #iswmLogin .lx-services img.swm_icons {
        width: 54px;
        height: 54px;
        min-width: 0;
        max-width: none;
        background: transparent;
        filter: url(#lxIconKey) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
    }

    #iswmLogin .lx-services figure:hover .lx-ic {
        transform: translateY(-5px);
        border-color: var(--lx-green);
        background: rgba(46, 229, 157, 0.10);
    }

    #iswmLogin .lx-services figcaption {
        color: var(--lx-muted);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.4px;
    }

#iswmLogin .lx-corp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--lx-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

    #iswmLogin .lx-corp i {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: rgba(76, 201, 240, 0.10);
        color: var(--lx-cyan);
        font-size: 13px;
    }

    #iswmLogin .lx-corp strong {
        color: var(--lx-text);
        font-weight: 600;
    }

/* =====================================================================
   RIGHT: login card
   ===================================================================== */
#iswmLogin .lx-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    padding: 22px 28px 16px;
    text-align: left;
    /* frosted glass: see-through tint + light sheen from the top-left */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 16, 24, 0.42);
    -webkit-backdrop-filter: blur(35px) saturate(160%);
    backdrop-filter: blur(35px) saturate(160%);
    /* glass edge highlight + soft depth */
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.45);
    margin-bottom: 80px;
    /* keep the form centred when the card stretches to match the left panel */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
    /* gradient hairline border that slowly rotates */
    #iswmLogin .lx-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: inherit;
        background: conic-gradient(from var(--lx-angle, 0deg), rgba(46, 229, 157, 0.65), rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(76, 201, 240, 0.65) 75%, rgba(255, 255, 255, 0.06) 90%, rgba(46, 229, 157, 0.65));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        animation: lx-spin 10s linear infinite;
    }

@property --lx-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes lx-spin {
    to { --lx-angle: 360deg; }
}

#iswmLogin .lx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(76, 201, 240, 0.08);
    border: 1px solid rgba(76, 201, 240, 0.25);
    color: #9be3f8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

#iswmLogin .lx-title {
    margin: 10px auto 2px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    /* theme gradient, same as "Clean India" on the left panel */
    background: linear-gradient(92deg, #a7f3d0 0%, var(--lx-green) 45%, var(--lx-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lx-green); /* fallback for browsers without gradient text */
    /* shrink to the words so the gradient covers the text, then centre that box */
    width: fit-content;
    align-self: center;
}

#iswmLogin .lx-sub {
    margin: 0 0 14px;
    color: var(--lx-muted);
    font-size: 13px;
    line-height: 1.5;
}

#iswmLogin .lx-label {
    display: block;
    margin: 0 0 5px;
    color: #c8d4df;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ---------- Fields (.border-green wrappers) ---------- */
#iswmLogin .border-green {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 12px !important;
    padding: 2px 4px 2px 14px !important;
    background: var(--lx-field) !important;
    border: 1px solid var(--lx-line-2) !important;
    border-radius: 12px !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    #iswmLogin .border-green:hover {
        border-color: rgba(255, 255, 255, 0.24) !important;
    }

    #iswmLogin .border-green:focus-within {
        background: rgba(46, 229, 157, 0.04) !important;
        border-color: rgba(46, 229, 157, 0.65) !important;
        box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.12) !important;
    }

    #iswmLogin .border-green > i {
        width: 18px;
        flex-shrink: 0;
        text-align: center;
        color: var(--lx-dim);
        font-size: 15px;
        transition: color 0.2s ease;
    }

    #iswmLogin .border-green:focus-within > i {
        color: var(--lx-green);
    }

    #iswmLogin .border-green input.form-control {
        flex: 1 1 auto;
        min-width: 0;
        height: 36px !important;
        padding: 0 4px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 500;
        letter-spacing: 0.2px;
    }

        #iswmLogin .border-green input.form-control::placeholder {
            color: var(--lx-dim);
            font-weight: 400;
        }

        #iswmLogin .border-green input.form-control:-webkit-autofill,
        #iswmLogin .border-green input.form-control:-webkit-autofill:hover,
        #iswmLogin .border-green input.form-control:-webkit-autofill:focus {
            /* keep saved (autofilled) username / password on the same transparent field */
            -webkit-text-fill-color: #ffffff;
            -webkit-box-shadow: none !important;
            box-shadow: none !important;
            background-color: transparent !important;
            caret-color: #ffffff;
            transition: background-color 99999s ease-in-out 0s !important;
        }

#iswmLogin .lx-icon-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lx-muted) !important;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    #iswmLogin .lx-icon-btn:hover,
    #iswmLogin .lx-icon-btn:focus-visible {
        background: rgba(255, 255, 255, 0.06);
        color: var(--lx-green) !important;
        outline: none;
    }

    #iswmLogin .lx-icon-btn i {
        transition: transform 0.45s ease;
    }

    #iswmLogin a.lx-icon-btn:hover i {
        transform: rotate(180deg);
    }

/* ---------- Captcha chip ---------- */
#iswmLogin #captchaContainer {
    position: relative;
    flex-shrink: 0;
    min-width: 86px;
    padding: 3px 10px;
    text-align: center;
    border-radius: 10px;
    border: 1px dashed rgba(46, 229, 157, 0.45);
    background:
        repeating-linear-gradient(-45deg, rgba(46, 229, 157, 0.07) 0 5px, transparent 5px 10px),
        #0a1a15;
    color: #b9f6dc;
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    font-size: 17px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(46, 229, 157, 0.45);
    white-space: nowrap;
}

/* ---------- Remember / forgot row ---------- */
#iswmLogin .lx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 14px;
}

#iswmLogin .lx-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--lx-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

    #iswmLogin .lx-check input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--lx-green-2);
        cursor: pointer;
    }

#iswmLogin .lx-link {
    color: var(--lx-green);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

    #iswmLogin .lx-link:hover {
        color: #a7f3d0;
        text-decoration: underline;
    }

/* ---------- Submit ---------- */
#iswmLogin .lx-submit {
    position: relative;
}

    #iswmLogin .lx-submit::after {
        content: "\2192";
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        color: #04140d;
        font-size: 20px;
        font-weight: 700;
        pointer-events: none;
        transition: right 0.2s ease;
    }

    #iswmLogin .lx-submit:hover::after {
        right: 16px;
    }

#iswmLogin .lx-submit .btn {
    width: 100%;
    height: 44px;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(100deg, var(--lx-green) 0%, #34d6b0 55%, var(--lx-cyan) 130%) !important;
    background-size: 160% 100% !important;
    background-position: 0% 0 !important;
    color: #04140d !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(46, 229, 157, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transition: background-position 0.4s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

    #iswmLogin .lx-submit .btn:hover {
        background-position: 100% 0 !important;
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(46, 229, 157, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    }

    #iswmLogin .lx-submit .btn:active {
        transform: translateY(0);
    }

    #iswmLogin .lx-submit .btn:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }

/* ---------- Footer / disclaimer ---------- */
#iswmLogin .lx-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--lx-dim);
    font-size: 11px;
}

    #iswmLogin .lx-secure i {
        color: var(--lx-green);
    }

#iswmLogin .lx-disclaimer {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--lx-line);
    color: var(--lx-dim);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

    #iswmLogin .lx-disclaimer a {
        color: var(--lx-muted);
        font-size: 10px;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.2);
        text-underline-offset: 2px;
    }

        #iswmLogin .lx-disclaimer a:hover {
            color: var(--lx-green);
        }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991.98px) {
    #iswmLogin .lx-shell {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 560px;
    }

    #iswmLogin .lx-hero {
        text-align: center;
    }

    #iswmLogin .lx-lead {
        margin-left: auto;
        margin-right: auto;
    }

    #iswmLogin .lx-route {
        display: none;
    }

    #iswmLogin .lx-services {
        justify-content: center;
    }

    #iswmLogin .lx-card {
        justify-self: center;
    }
}

@media (max-width: 575.98px) {
    #iswmLogin {
        padding: 20px 16px !important;
    }

    #iswmLogin .lx-logos {
        gap: 10px;
        padding: 8px 12px;
    }

        #iswmLogin .lx-logos img { height: 38px; }
        #iswmLogin .lx-logos img.lx-logo-iswm { height: 30px; }
        #iswmLogin .lx-logos .lx-sep { height: 26px; }

    #iswmLogin .lx-eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
        margin-top: 20px;
    }

    #iswmLogin .lx-hero h2 { font-size: 18px; }
    #iswmLogin .lx-hero h1 { letter-spacing: -0.8px; }

    #iswmLogin .lx-lead,
    #iswmLogin .lx-services figcaption,
    #iswmLogin .lx-corp {
        display: none;
    }

    #iswmLogin .lx-services {
        gap: 8px;
        margin-top: 4px;
    }

        #iswmLogin .lx-services figure { width: auto; }
        #iswmLogin .lx-services .lx-ic { width: 48px; height: 48px; }
        #iswmLogin .lx-services img.swm_icons { width: 44px; height: 44px; }

    #iswmLogin .lx-card {
        padding: 20px 18px 14px;
    }

    #iswmLogin .lx-title { font-size: 22px; }

    #iswmLogin #captchaContainer {
        min-width: 72px;
        font-size: 15px;
        letter-spacing: 3px;
        padding: 3px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #iswmLogin *,
    #iswmLogin *::before,
    #iswmLogin *::after {
        animation: none !important;
        transition: none !important;
    }
}

