:root {
    --login-bg: #030812;
    --login-panel: rgba(6, 14, 31, 0.78);
    --login-panel-strong: rgba(10, 25, 58, 0.88);
    --login-blue: #116dff;
    --login-sky: #25d7ff;
    --login-cyan: #43f2ff;
    --login-text: #f5f9ff;
    --login-muted: #a9b8d6;
    --login-line: rgba(80, 145, 255, 0.44);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #030812;
    color: var(--login-text);
    overflow: hidden;
}

.neon-login-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 11% 2%, rgba(28, 102, 255, 0.45) 0 12%, transparent 25%),
        radial-gradient(circle at 78% 38%, rgba(19, 109, 255, 0.42) 0 18%, transparent 36%),
        radial-gradient(circle at 92% 18%, rgba(37, 215, 255, 0.18), transparent 25%),
        linear-gradient(135deg, #02060f 0%, #050b18 43%, #07112a 100%);
}

.neon-login-shell::before {
    content: '';
    position: absolute;
    inset: 14px 34px;
    border: 1px solid rgba(67, 242, 255, 0.06);
    pointer-events: none;
    z-index: -1;
}

.ambient-ring {
    position: absolute;
    border-radius: 50%;
    border: 20px solid rgba(17, 109, 255, 0.20);
    filter: blur(.2px);
    pointer-events: none;
    z-index: 0;
}

.ring-left {
    width: 430px;
    height: 430px;
    left: -220px;
    top: -130px;
    box-shadow: 0 0 70px rgba(17, 109, 255, 0.22);
}

.ring-right {
    width: 520px;
    height: 520px;
    right: -190px;
    top: 120px;
    border-width: 28px;
    border-color: rgba(18, 119, 255, 0.35);
    box-shadow: 0 0 90px rgba(33, 145, 255, 0.45);
}

.ambient-dots {
    position: absolute;
    top: 72px;
    right: 82px;
    width: 102px;
    height: 102px;
    opacity: .58;
    background-image: radial-gradient(#116dff 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}

.login-panel,
.neon-login-hero {
    position: relative;
    z-index: 2;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(26px, 5vw, 95px);
}

.login-card-wrap {
    width: min(100%, 438px);
}

.neon-login-card {
    position: relative;
    width: 100%;
    min-height: 585px;
    padding: 44px 34px 30px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(8, 17, 35, 0.88), rgba(8, 19, 49, 0.78)),
        radial-gradient(circle at 50% 0%, rgba(30, 126, 255, 0.22), transparent 42%);
    border: 1px solid rgba(83, 166, 255, 0.82);
    box-shadow:
        0 0 0 1px rgba(34, 129, 255, 0.12) inset,
        0 0 34px rgba(16, 100, 255, 0.46),
        0 26px 75px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.login-card-glow {
    position: absolute;
    inset: -120px -80px auto auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(43, 137, 255, 0.22);
    filter: blur(34px);
    pointer-events: none;
}

.neon-login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 32%, rgba(37,215,255,0.06));
    pointer-events: none;
}

.neon-login-brand {
    display: flex;
    justify-content: center;
    margin: 0 0 24px;
    position: relative;
    z-index: 2;
}

.neon-login-brand img {
    width: 122px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(67,242,255,.22));
}

.login-heading-block {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 30px;
}

.login-heading-block h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-shadow: 0 0 18px rgba(255,255,255,0.12);
}

.login-heading-block p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(218, 229, 255, 0.72);
}

.login-field-group {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.login-field-group label {
    display: block;
    margin: 0 0 9px;
    color: #f7fbff;
    font-size: 12px;
    font-weight: 800;
}

.input-shell {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 15px;
    border-radius: 9px;
    color: rgba(227, 238, 255, 0.82);
    background: linear-gradient(180deg, rgba(17, 27, 57, 0.72), rgba(11, 20, 45, 0.72));
    border: 1px solid rgba(116, 159, 235, 0.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input-shell:focus-within {
    border-color: var(--login-sky);
    box-shadow: 0 0 0 3px rgba(37, 215, 255, 0.13), 0 0 22px rgba(17, 109, 255, 0.26);
    transform: translateY(-1px);
}

.input-shell i {
    width: 17px;
    text-align: center;
    color: rgba(233, 243, 255, 0.9);
    font-size: 15px;
}

.input-shell input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
}

.input-shell input::placeholder {
    color: rgba(184, 201, 229, 0.72);
}

.input-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(231, 241, 255, .76);
}

.login-actions-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    margin: -4px 0 20px;
}

.forgot-link {
    color: #1bb8ff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.forgot-link:hover {
    color: #65ddff;
    text-decoration: none;
}

.login-submit-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 850;
    background: linear-gradient(100deg, #0649ff 0%, #116dff 56%, #26d5ff 100%);
    box-shadow: 0 0 28px rgba(17,109,255,.36), 0 16px 32px rgba(0,0,0,.38);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit-btn i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #ffffff;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.12);
    box-shadow: 0 0 36px rgba(37,215,255,.44), 0 20px 38px rgba(0,0,0,.42);
}

.login-divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px 0 17px;
    color: rgba(223, 233, 255, .84);
    font-size: 11px;
    font-weight: 600;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(136, 169, 230, .40);
}

.login-sso-pill {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    min-width: 95px;
    height: 43px;
    padding: 0 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f8fbff;
    background: rgba(9, 20, 47, 0.72);
    border: 1px solid rgba(91, 154, 255, 0.56);
    font-size: 13px;
    font-weight: 850;
    box-shadow: inset 0 0 18px rgba(17,109,255,.12);
}

.login-sso-pill i {
    color: var(--login-sky);
}

.alert {
    position: relative;
    z-index: 2;
    border: 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.neon-login-hero {
    min-height: 100vh;
    padding: 74px 62px 42px 18px;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 5;
    max-width: 470px;
    margin-left: 20px;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: #ffffff;
    text-shadow: 0 0 22px rgba(255,255,255,.10);
}

.hero-copy h2 span {
    color: var(--login-sky);
}

.hero-copy h2::after {
    content: '';
    display: block;
    width: 112px;
    height: 4px;
    margin-top: 22px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--login-blue), var(--login-sky));
    box-shadow: 0 0 18px rgba(37,215,255,.45);
}

.hero-copy p {
    margin: 20px 0 0;
    max-width: 375px;
    color: rgba(230, 239, 255, .86);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

.neon-hero-visual {
    position: absolute;
    z-index: 3;
    right: 32px;
    bottom: 92px;
    width: min(61vw, 785px);
    height: min(49vw, 505px);
}

.warehouse-scene,
.hero-wave {
    position: absolute;
    inset: 0;
}

.hero-wave {
    border-radius: 50%;
    pointer-events: none;
}

.wave-one {
    width: 660px;
    height: 320px;
    right: 0;
    top: 12px;
    background: linear-gradient(160deg, rgba(22, 115, 255, .72), rgba(20, 77, 224, .10));
    box-shadow: inset 0 24px 34px rgba(75, 185, 255, .20), 0 0 58px rgba(17,109,255,.25);
    transform: rotate(-7deg);
}

.wave-two {
    width: 590px;
    height: 280px;
    right: -75px;
    top: 128px;
    background: linear-gradient(160deg, rgba(10, 67, 201, .74), rgba(35, 200, 255, .10));
    box-shadow: inset 0 18px 30px rgba(75, 185, 255, .18);
    transform: rotate(-8deg);
}

.dashboard-mockup {
    position: absolute;
    right: 172px;
    bottom: 88px;
    width: 400px;
    min-height: 260px;
    padding: 15px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(11, 27, 65, .96), rgba(16, 47, 116, .96));
    border: 1px solid rgba(101, 177, 255, .62);
    box-shadow: 0 24px 54px rgba(0,0,0,.42), 0 0 28px rgba(22,111,255,.18);
    transform: perspective(950px) rotateY(-9deg) rotateX(3deg);
}

.mockup-top {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border-bottom: 1px solid rgba(149, 187, 255, .18);
    margin-bottom: 13px;
}

.mockup-top strong {
    margin-right: auto;
    font-size: 11px;
    font-weight: 900;
}

.mockup-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.mockup-stats div {
    position: relative;
    min-height: 56px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.06);
}

.mockup-stats small {
    display: block;
    margin-bottom: 4px;
    font-size: 8px;
    font-weight: 700;
    color: rgba(231,240,255,.72);
}

.mockup-stats strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.mockup-stats i {
    position: absolute;
    right: 8px;
    bottom: 8px;
    color: #2fd8ff;
    opacity: .9;
}

.mockup-lower {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 12px;
    min-height: 120px;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}

.mini-chart span {
    flex: 1;
    border-radius: 99px 99px 3px 3px;
    background: linear-gradient(180deg, #2bdcff, #116dff);
    box-shadow: 0 0 12px rgba(37,215,255,.25);
}

.mini-chart span:nth-child(1) { height: 34%; }
.mini-chart span:nth-child(2) { height: 56%; }
.mini-chart span:nth-child(3) { height: 45%; }
.mini-chart span:nth-child(4) { height: 78%; }
.mini-chart span:nth-child(5) { height: 66%; }
.mini-chart span:nth-child(6) { height: 91%; }

.mockup-donut {
    position: relative;
    margin: auto;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: conic-gradient(#176dff 0 58%, #ffb13f 58% 78%, #ff5a5f 78% 100%);
    box-shadow: 0 0 18px rgba(23,109,255,.22);
}

.mockup-donut::after {
    content: '';
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    background: #0c1d47;
}

.box,
.check-board,
.shield-badge,
.trolley {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 4;
}

.box {
    width: 96px;
    height: 76px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b97837, #efb867);
    box-shadow: 0 28px 34px rgba(0,0,0,.28);
    font-size: 32px;
}

.box-a { left: 104px; bottom: 80px; }
.box-b { left: 205px; bottom: 44px; transform: scale(.82); }
.box-c { left: 154px; bottom: 157px; transform: scale(.86); }

.trolley {
    left: 82px;
    bottom: 64px;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    color: #f2b35e;
    font-size: 42px;
}

.plant {
    position: absolute;
    left: 4px;
    bottom: 80px;
    width: 95px;
    height: 150px;
    z-index: 4;
}

.plant::after {
    content: '';
    position: absolute;
    left: 34px;
    bottom: 0;
    width: 46px;
    height: 44px;
    border-radius: 6px 6px 16px 16px;
    background: #e7f5ff;
}

.plant span {
    position: absolute;
    bottom: 38px;
    width: 34px;
    height: 82px;
    border-radius: 34px 34px 4px 34px;
    background: linear-gradient(160deg, #3fffd4, #0f9d76);
    transform-origin: bottom center;
}

.plant span:nth-child(1) { left: 10px; transform: rotate(-32deg); }
.plant span:nth-child(2) { left: 36px; height: 112px; transform: rotate(8deg); }
.plant span:nth-child(3) { left: 56px; transform: rotate(36deg); }

.check-board {
    right: 5px;
    bottom: 94px;
    width: 118px;
    height: 170px;
    flex-direction: column;
    gap: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(246,250,255,.96), rgba(209,228,255,.96));
    color: #18c88f;
    font-size: 27px;
    box-shadow: 0 24px 46px rgba(0,0,0,.34);
}

.shield-badge {
    right: 40px;
    bottom: 49px;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #064dff, #1ba4ff);
    box-shadow: 0 0 32px rgba(17,109,255,.52);
    font-size: 34px;
}

.hero-features {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 44px;
    bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hero-features div {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    min-height: 62px;
    padding-right: 18px;
    border-right: 1px solid rgba(255,255,255,.22);
}

.hero-features div:last-child {
    border-right: 0;
}

.hero-features i {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--login-sky);
    border: 1px solid rgba(37,215,255,.36);
    background: rgba(10, 27, 62, .7);
    box-shadow: 0 0 16px rgba(37,215,255,.12);
    font-size: 22px;
}

.hero-features strong {
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
}

.hero-features small {
    font-size: 10px;
    font-weight: 600;
    color: rgba(231,240,255,.72);
}

@media (max-width: 1220px) {
    .neon-login-shell {
        grid-template-columns: 42% 58%;
    }

    .neon-hero-visual {
        transform: scale(.88);
        transform-origin: right bottom;
        right: 4px;
    }
}

@media (max-width: 992px) {
    body {
        overflow-y: auto;
    }

    .neon-login-shell {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .login-panel {
        min-height: 100vh;
        padding: 34px 18px;
    }

    .neon-login-hero {
        min-height: 700px;
        padding: 42px 24px 34px;
    }

    .hero-copy {
        margin-left: 0;
    }

    .neon-hero-visual {
        width: 760px;
        max-width: 100%;
        right: -10px;
        bottom: 126px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        right: 20px;
        left: 20px;
        gap: 10px;
    }

    .hero-features div {
        border-right: 0;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .neon-login-card {
        min-height: auto;
        padding: 34px 22px 26px;
        border-radius: 20px;
    }

    .login-heading-block h1 {
        font-size: 24px;
    }

    .neon-login-hero {
        min-height: 620px;
    }

    .dashboard-mockup {
        transform: perspective(950px) rotateY(-9deg) rotateX(3deg) scale(.68);
        right: 10px;
        bottom: 104px;
    }

    .check-board,
    .shield-badge,
    .plant,
    .trolley,
    .box {
        opacity: .82;
        transform: scale(.72);
    }
}

/* Fix neon login logo contrast: make dark logo readable on dark glass card */
.neon-login-brand img {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 0 10px rgba(37, 215, 255, 0.35))
        drop-shadow(0 0 18px rgba(17, 109, 255, 0.28));
}

.neon-login-brand::before {
    content: '';
    position: absolute;
    width: 124px;
    height: 58px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 215, 255, 0.12), transparent 68%);
    pointer-events: none;
}

/* Fix neon login card sizing */
.login-card-wrap {
    width: min(100%, 500px);
}

.neon-login-card {
    min-height: 650px;
    padding: 54px 42px 42px;
    border-radius: 28px;
}

.neon-login-brand img {
    width: 142px;
}

.login-heading-block h1 {
    font-size: 32px;
}

.input-shell {
    height: 56px;
    border-radius: 11px;
}

.login-submit-btn {
    height: 58px;
    border-radius: 14px;
}

@media (max-width: 576px) {
    .login-card-wrap {
        width: min(100%, 440px);
    }

    .neon-login-card {
        min-height: auto;
        padding: 38px 24px 30px;
    }
}

/* Custom login logo: cyan mark with white SteVe text */
.custom-steve-logo {
    align-items: center;
    gap: 12px;
}

.custom-steve-logo img {
    width: 70px !important;
    height: 96px;
    object-fit: cover;
    object-position: left center;
    filter: hue-rotate(172deg) saturate(1.7) brightness(1.25) drop-shadow(0 0 14px rgba(37, 215, 255, .38)) !important;
}

.custom-steve-logo span {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
    text-shadow: 0 0 18px rgba(255,255,255,.16), 0 0 24px rgba(37,215,255,.16);
}

.custom-steve-logo::before {
    width: 170px;
    height: 70px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fix logo color: use mask instead of hue filter so mark stays cyan */
.custom-steve-logo img {
    display: none !important;
}

.custom-steve-logo .steve-mark {
    width: 58px;
    height: 92px;
    display: inline-block;
    background: linear-gradient(180deg, #5ff5ff 0%, #20d7ff 48%, #13a9df 100%);
    -webkit-mask: url('../img/logo-dark-login.png') left center / 138px auto no-repeat;
    mask: url('../img/logo-dark-login.png') left center / 138px auto no-repeat;
    filter: drop-shadow(0 0 14px rgba(37, 215, 255, .46));
}

/* Fix logo mask crop: remove leftover S from original logo */
.custom-steve-logo .steve-mark {
    width: 42px !important;
    height: 92px;
    -webkit-mask-size: 138px auto;
    mask-size: 138px auto;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.custom-steve-logo {
    gap: 10px;
}
