:root {
    --blue: #0759ee;
    --deep-blue: #032686;
    --ink: #11162e;
    --muted: #69718b;
    --line: #dce4f3;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 16%, rgba(16, 93, 244, .13) 0 1.5px, transparent 1.8px) 0 0 / 18px 18px,
        linear-gradient(105deg, #f7faff 0%, #ffffff 52%, #eff5ff 100%);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(500px, 48vw) minmax(440px, 520px);
    gap: clamp(34px, 5vw, 78px);
    align-items: center;
    justify-content: start;
    min-height: 100vh;
    padding: 0 clamp(28px, 5vw, 80px) 0 0;
    overflow: hidden;
}

.brand-panel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    border-radius: 0 34px 34px 0;
    background:
        radial-gradient(circle at 78% 27%, rgba(42, 125, 255, .6), transparent 30%),
        linear-gradient(135deg, #051b73 0%, #0045d9 54%, #0076ff 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(0, 59, 170, .24);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.brand-panel::before {
    left: -190px;
    bottom: 35px;
    width: 760px;
    height: 360px;
    border: 2px solid rgba(54, 158, 255, .55);
    border-radius: 50%;
    transform: rotate(-16deg);
}

.brand-panel::after {
    left: -115px;
    bottom: -85px;
    width: 980px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(0, 126, 255, .44), rgba(0, 72, 216, .24));
    transform: rotate(-9deg);
}

.brand-content {
    position: relative;
    z-index: 2;
    padding: clamp(46px, 7vh, 78px) clamp(46px, 6vw, 76px) 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    margin-bottom: clamp(24px, 4vh, 32px);
    font-size: clamp(46px, 4.4vw, 70px);
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.cube-logo {
    position: relative;
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .14));
}

.cube-logo::before,
.cube-logo::after,
.cube-logo span {
    content: "";
    position: absolute;
    background: #fff;
}

.cube-logo::before {
    inset: 5px 13px 23px;
    clip-path: polygon(50% 0, 100% 24%, 50% 50%, 0 24%);
}

.cube-logo::after {
    inset: 23px 37px 4px 9px;
    clip-path: polygon(0 0, 100% 31%, 100% 100%, 0 69%);
}

.cube-logo span {
    inset: 23px 9px 4px 37px;
    clip-path: polygon(0 31%, 100% 0, 100% 69%, 0 100%);
}

.brand-content h1 {
    margin: 0;
    font-size: clamp(24px, 2.05vw, 34px);
    line-height: 1.18;
    letter-spacing: 0;
    white-space: nowrap;
}

.accent-line {
    display: block;
    width: 116px;
    height: 5px;
    margin: clamp(22px, 4vh, 30px) 0 clamp(18px, 3vh, 24px);
    border-radius: 999px;
    background: linear-gradient(90deg, #21ceff 0 45%, #176dff 45% 100%);
}

.brand-content p {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
}

.map-dots {
    position: absolute;
    right: 30px;
    top: 310px;
    z-index: 1;
    width: 310px;
    height: 245px;
    opacity: .26;
    background-image: radial-gradient(circle, #4bb6ff 0 2px, transparent 2.4px);
    background-size: 11px 11px;
    clip-path: polygon(22% 16%, 46% 7%, 68% 17%, 91% 16%, 87% 36%, 75% 52%, 82% 74%, 64% 88%, 42% 78%, 26% 91%, 11% 71%, 19% 49%, 3% 32%);
}

.dashboard-art {
    position: absolute;
    left: clamp(18px, 3vw, 40px);
    right: 18px;
    bottom: clamp(10px, 2vh, 26px);
    z-index: 3;
    height: 265px;
    transform: scale(.82);
    transform-origin: left bottom;
}

.monitor {
    position: absolute;
    left: 120px;
    bottom: 58px;
    width: 430px;
    height: 230px;
    display: grid;
    grid-template-columns: 76px 1fr;
    padding: 13px;
    border: 4px solid #a9c5ff;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 26px 26px rgba(0, 9, 65, .36);
    transform: perspective(900px) rotateX(2deg) rotateZ(1.5deg);
}

.monitor-sidebar {
    padding: 35px 9px 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #0d75ff, #fff 28%);
}

.monitor-sidebar span {
    display: block;
    height: 10px;
    margin: 0 0 14px;
    border-radius: 999px;
    background: #234b9f;
}

.monitor-main {
    position: relative;
    padding: 18px;
}

.monitor-top {
    width: 120px;
    height: 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #1b2753;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-row i {
    height: 38px;
    border-radius: 7px;
    background: linear-gradient(#fff, #eef4ff);
    box-shadow: 0 8px 15px rgba(18, 35, 90, .12);
}

.chart {
    width: 205px;
    height: 105px;
    border-radius: 9px;
    background: linear-gradient(#fff, #eef5ff);
    box-shadow: inset 0 0 0 1px #dde7fa;
}

.chart span {
    display: block;
    width: 170px;
    height: 65px;
    margin: 28px auto 0;
    background: linear-gradient(135deg, transparent 12%, #1368ff 13% 16%, transparent 17% 30%, #1368ff 31% 34%, transparent 35% 48%, #1368ff 49% 52%, transparent 53% 64%, #1368ff 65% 68%, transparent 69%);
}

.donut {
    position: absolute;
    right: 22px;
    bottom: 30px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: conic-gradient(#0d65ff 0 45%, #2eb877 45% 72%, #dbe7ff 72% 100%);
}

.donut::after {
    content: "45%";
    position: absolute;
    inset: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #1e2b58;
    font-weight: 800;
}

.monitor-stand {
    position: absolute;
    left: 300px;
    bottom: 18px;
    width: 92px;
    height: 58px;
    background: linear-gradient(90deg, #8b9bb7, #eff4ff, #798ba9);
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.box-stack {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 250px;
    height: 155px;
}

.box-stack span {
    position: absolute;
    border-radius: 3px;
    background: linear-gradient(135deg, #d88b37, #ffc36f);
    box-shadow: inset 0 0 0 1px rgba(99, 47, 0, .12), 0 12px 18px rgba(0, 23, 82, .22);
}

.box-stack span:nth-child(1) { left: 18px; bottom: 0; width: 78px; height: 64px; }
.box-stack span:nth-child(2) { left: 94px; bottom: 0; width: 86px; height: 78px; }
.box-stack span:nth-child(3) { left: 58px; bottom: 76px; width: 76px; height: 70px; }
.box-stack span:nth-child(4) { left: 176px; bottom: 0; width: 62px; height: 50px; }
.box-stack span:nth-child(5) { left: 4px; bottom: 62px; width: 62px; height: 48px; }

.clipboard {
    position: absolute;
    left: 395px;
    bottom: 20px;
    width: 112px;
    height: 170px;
    padding: 38px 20px 0;
    border-radius: 14px;
    background: linear-gradient(150deg, #ecf3ff, #bfd3ff);
    border: 5px solid #165ae7;
    transform: rotate(-12deg);
    box-shadow: 0 18px 28px rgba(0, 16, 82, .28);
}

.clipboard::before {
    content: "";
    position: absolute;
    left: 34px;
    top: -18px;
    width: 38px;
    height: 34px;
    border-radius: 18px 18px 5px 5px;
    background: #244eb0;
}

.clipboard i {
    display: block;
    height: 14px;
    margin-bottom: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0a63ff 0 18px, #8aa7ee 18px 100%);
}

.truck {
    position: absolute;
    right: 0;
    bottom: 6px;
    width: 250px;
    height: 130px;
}

.truck-box {
    position: absolute;
    left: 0;
    top: 12px;
    width: 142px;
    height: 82px;
    border-radius: 7px;
    background: linear-gradient(135deg, #e7edf9, #bfcce3);
}

.truck-cab {
    position: absolute;
    right: 20px;
    top: 30px;
    width: 100px;
    height: 72px;
    border-radius: 10px 24px 8px 8px;
    background: linear-gradient(135deg, #0050d7, #1592ff);
}

.truck-cab::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 9px;
    width: 42px;
    height: 30px;
    border-radius: 5px;
    background: #122a5c;
}

.truck-wheel {
    position: absolute;
    bottom: 5px;
    width: 36px;
    height: 36px;
    border: 8px solid #17213f;
    border-radius: 50%;
    background: #66738d;
}

.wheel-one { left: 74px; }
.wheel-two { right: 45px; }

.login-card {
    position: relative;
    width: min(100%, 474px);
    margin: 0 auto;
    padding: 26px 44px 21px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 80px rgba(40, 63, 122, .13);
}

.lock-badge {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: #e8efff;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.lock-badge svg {
    width: 36px;
    height: 36px;
    color: #0759ee;
}

.login-card h2 {
    margin: 0 0 7px;
    text-align: center;
    font-size: clamp(32px, 3.1vw, 40px);
    line-height: 1.05;
    letter-spacing: 0;
}

.signin-copy {
    margin: 0 0 24px;
    text-align: center;
    color: #646d85;
    font-size: 17px;
}

.login-form label:not(.remember) {
    display: block;
    margin: 0 0 7px;
    color: #151a2d;
    font-size: 14px;
    font-weight: 800;
}

.field {
    display: flex;
    align-items: center;
    height: 43px;
    margin-bottom: 17px;
    padding: 0 15px;
    border: 1px solid #cbd5e8;
    border-radius: 7px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.field:focus-within {
    border-color: #8fa7d1;
    box-shadow: 0 0 0 3px rgba(7, 89, 238, .08);
}

.field > svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #27304d;
}

.field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #11162e;
    background: transparent;
    font: 500 13px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.field input::placeholder {
    color: #7f88a6;
    font-weight: 500;
}

.field input:focus,
.field input:focus-visible {
    outline: 0;
}

.password-toggle {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #303a5a;
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -1px 0 20px;
    font-size: 14px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #182039;
    cursor: pointer;
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: #0759ee;
}

a {
    color: #035eff;
    font-weight: 700;
    text-decoration: none;
}

.login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #055bed, #0149db);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 14px 22px rgba(0, 75, 225, .18);
    cursor: pointer;
}

.login-button svg {
    position: absolute;
    right: 18px;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.signup-copy {
    margin: 22px 0 0;
    text-align: center;
    color: #19213b;
    font-size: 14px;
}

.login-error {
    margin: -13px 0 16px;
    padding: 9px 12px;
    border: 1px solid #ffc9c9;
    border-radius: 10px;
    background: #fff4f4;
    color: #c4272f;
    font-size: 15px;
    font-weight: 800;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(15, 95, 255, .36);
    outline-offset: 3px;
}

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

    .login-page {
        grid-template-columns: 1fr;
        padding: 28px;
        overflow: visible;
    }

    .brand-panel {
        min-height: 560px;
        border-radius: 28px;
    }
}

@media (max-width: 620px) {
    .login-page {
        padding: 16px;
    }

    .brand-panel {
        min-height: 500px;
    }

    .brand-content {
        padding: 34px 28px 0;
    }

    .dashboard-art {
        transform: scale(.72);
        transform-origin: left bottom;
        width: 720px;
    }

    .login-card {
        padding: 32px 20px 24px;
        border-radius: 22px;
    }

}
