:root {
    --navy-950: #061329;
    --navy-900: #0a1d38;
    --navy-800: #102d50;
    --blue: #2584ff;
    --cyan: #3dd9d2;
    --ink: #122033;
    --muted: #64748b;
    --line: #dbe3ec;
    --surface: #ffffff;
    --danger: #b42318;
    --danger-bg: #fff2f0;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(37, 132, 255, .12), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(61, 217, 210, .12), transparent 26%),
        #eef3f8;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(400px, .84fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(17, 41, 72, .18);
}

.brand-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 44px 52px 38px;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(145deg, var(--navy-950), var(--navy-900) 58%, #0e3152);
    background-size: 34px 34px, 34px 34px, auto;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -150px -210px auto;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(61, 217, 210, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(61,217,210,.025), 0 0 0 140px rgba(61,217,210,.018);
}

.brand-panel__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.brand-panel__glow--one {
    width: 340px;
    height: 340px;
    top: -210px;
    right: -80px;
    background: rgba(37,132,255,.18);
}

.brand-panel__glow--two {
    width: 240px;
    height: 240px;
    left: -150px;
    bottom: 70px;
    background: rgba(61,217,210,.1);
}

.brand-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--navy-950);
    background: var(--cyan);
    box-shadow: 0 8px 24px rgba(61,217,210,.22);
}

.brand-mark svg { width: 22px; fill: currentColor; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 11px;
    color: #c8d8e9;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status-pill i, .vehicle-chip--two i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42e59d;
    box-shadow: 0 0 0 4px rgba(66,229,157,.12);
}

.brand-copy {
    position: relative;
    z-index: 2;
    max-width: 590px;
    margin-top: 88px;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(37px, 4.1vw, 58px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.brand-copy h1 span { color: #6ce6df; }

.brand-lead {
    max-width: 525px;
    margin: 24px 0 0;
    color: #aebfd1;
    font-size: 16px;
    line-height: 1.75;
}

.map-visual {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 220px;
    margin: 12px -52px 0;
}

.route-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-line { fill: none; stroke-linecap: round; }
.map-line--muted { stroke: rgba(255,255,255,.1); stroke-width: 16; }
.map-line--route { stroke: url("#route-gradient"); stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 8 9; }
.route-dot { fill: var(--cyan); }
.route-dot--start { fill: var(--blue); }
.route-ring { fill: rgba(61,217,210,.13); stroke: rgba(61,217,210,.45); stroke-width: 1; }

.vehicle-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    color: #f8fbff;
    background: rgba(7, 24, 45, .88);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.vehicle-chip strong, .vehicle-chip small { display: block; }
.vehicle-chip strong { margin-bottom: 2px; font-size: 12px; }
.vehicle-chip small { color: #91a9c0; font-size: 10px; }
.vehicle-chip--one { left: 27%; top: 38%; }
.vehicle-chip--two { right: 6%; top: 4%; }
.vehicle-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #06172e; background: var(--cyan); border-radius: 10px; }
.vehicle-icon svg { width: 22px; fill: currentColor; }

.benefit-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.benefit-row div { padding-left: 20px; border-left: 2px solid rgba(61,217,210,.5); }
.benefit-row strong, .benefit-row span { display: block; }
.benefit-row strong { margin-bottom: 5px; font-size: 15px; }
.benefit-row span { color: #879eb5; font-size: 11px; }

.form-panel {
    display: grid;
    place-items: center;
    padding: 54px 58px;
    background: #fff;
}

.form-panel__inner { width: min(100%, 390px); }

.company-logo {
    display: block;
    width: 112px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 12px;
}

.eyebrow--dark { margin-bottom: 9px; color: #1879e6; }
.welcome-copy h2 { margin: 0; color: #102139; font-size: 31px; letter-spacing: -.035em; }
.welcome-copy > p:last-child { margin: 11px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -10px 0 20px;
    padding: 12px 14px;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #ffd4cf;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.login-alert svg { flex: 0 0 auto; width: 18px; fill: currentColor; }
.field-group { margin-bottom: 18px; }
.field-group label { display: block; margin-bottom: 8px; color: #26364c; font-size: 13px; font-weight: 700; }

.field-control { position: relative; }
.field-control > svg { position: absolute; top: 50%; left: 15px; width: 18px; transform: translateY(-50%); fill: #8a9aaf; pointer-events: none; }
.field-control input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 45px;
    color: #15263d;
    background: #f9fbfd;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-control input::placeholder { color: #9aa8ba; }
.field-control input:focus { background: #fff; border-color: #4c9cff; box-shadow: 0 0 0 4px rgba(37,132,255,.11); }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    color: #718198;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { color: #1676df; background: #edf5ff; outline: none; }
.password-toggle svg { width: 20px; fill: currentColor; }

.login-button {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    color: #fff;
    background: linear-gradient(135deg, #1476e6, #2464cf);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(37,100,207,.22);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-button:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 15px 30px rgba(37,100,207,.28); }
.login-button:focus-visible { outline: 3px solid rgba(37,132,255,.25); outline-offset: 3px; }
.login-button:disabled { cursor: wait; opacity: .78; transform: none; }
.login-button svg { width: 19px; fill: currentColor; transition: transform .18s ease; }
.login-button:hover svg { transform: translateX(3px); }
.login-button.is-loading svg { animation: pulse-arrow .8s ease-in-out infinite alternate; }

.support-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 30px;
    padding: 13px;
    background: #f4f8fc;
    border: 1px solid #e5edf5;
    border-radius: 14px;
}
.support-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; color: #1879e6; background: #e3f0ff; border-radius: 11px; }
.support-icon svg { width: 19px; fill: currentColor; }
.support-card small, .support-card strong { display: block; }
.support-card small { margin-bottom: 3px; color: #7b8ba0; font-size: 10px; }
.support-card strong { color: #23364f; font-size: 12px; }
.support-card a { margin-left: auto; padding: 8px 10px; color: #176fd0; border: 1px solid #cddff3; border-radius: 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.support-card a:hover { background: #e4f0fd; }
.copyright { margin: 20px 0 0; color: #9aa8b9; font-size: 10px; text-align: center; }

@keyframes pulse-arrow { to { transform: translateX(5px); opacity: .55; } }

@media (max-width: 900px) {
    .login-page { padding: 20px; }
    .login-shell { grid-template-columns: 1fr; max-width: 520px; min-height: auto; }
    .brand-panel { min-height: 290px; padding: 30px 34px; }
    .brand-copy { margin-top: 42px; }
    .brand-copy h1 { font-size: 36px; }
    .brand-lead { max-width: 440px; margin-top: 16px; font-size: 14px; }
    .map-visual, .benefit-row { display: none; }
    .form-panel { padding: 42px 38px 44px; }
    .company-logo { display: none; }
}

@media (max-width: 540px) {
    .login-page { display: block; min-height: 100vh; padding: 0; background: #fff; }
    .login-shell { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .brand-panel { min-height: 230px; padding: 25px 24px; border-radius: 0 0 28px 28px; }
    .brand-copy { margin-top: 30px; }
    .brand-copy .eyebrow, .brand-lead { display: none; }
    .brand-copy h1 { max-width: 330px; font-size: 31px; }
    .status-pill { display: none; }
    .form-panel { align-items: start; padding: 36px 24px 30px; }
    .welcome-copy h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
