:root {
    --fleetly-navy: #071b33;
    --fleetly-blue: #0a4f9f;
    --fleetly-sky: #34b7f1;
    --fleetly-ink: #102033;
    --fleetly-muted: #64748b;
    --fleetly-line: #d9e4ef;
    --fleetly-surface: rgba(255, 255, 255, 0.88);
    --fleetly-shadow: 0 30px 90px rgba(7, 27, 51, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    color: var(--fleetly-ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(52, 183, 241, 0.26), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(10, 79, 159, 0.24), transparent 28%),
        linear-gradient(135deg, #f4f9ff 0%, #eaf2fb 46%, #dfeaf5 100%);
}

.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
    position: relative;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-page::before {
    width: 420px;
    height: 420px;
    left: -150px;
    bottom: -180px;
    background: rgba(52, 183, 241, 0.2);
}

.login-page::after {
    width: 220px;
    height: 220px;
    right: 8%;
    top: 8%;
    border: 1px solid rgba(10, 79, 159, 0.18);
}

.login-shell {
    width: min(1160px, 100%);
    height: min(720px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--fleetly-shadow);
    backdrop-filter: blur(22px);
}

.login-visual {
    position: relative;
    min-height: 0;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 22%, rgba(52, 183, 241, 0.24), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(140deg, rgba(7, 27, 51, 0.96), rgba(10, 79, 159, 0.88));
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.login-visual::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: -90px;
    border-radius: 50%;
    background: rgba(52, 183, 241, 0.18);
}

.brand-mark,
.visual-copy,
.visual-card {
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 172px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.brand-mark img,
.mobile-logo img {
    max-width: 100%;
    height: auto;
}

.visual-copy {
    max-width: 560px;
    margin-top: auto;
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fleetly-sky);
}

.eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.visual-copy h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.visual-copy p {
    max-width: 470px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.visual-card {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.metric-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.visual-card strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #d9fff3;
    background: rgba(10, 188, 136, 0.2);
    font-size: 13px;
    font-weight: 800;
}

.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #28e7a3;
    box-shadow: 0 0 0 7px rgba(40, 231, 163, 0.14);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.82));
}

.mobile-logo {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 44px;
    border: 1px solid rgba(217, 228, 239, 0.9);
    border-radius: 30px;
    background: var(--fleetly-surface);
    box-shadow: 0 20px 70px rgba(15, 44, 74, 0.12);
    animation: riseIn 0.65s ease-out both;
}

.login-heading {
    margin-bottom: 30px;
}

.login-heading h2 {
    margin: 0;
    color: var(--fleetly-navy);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.login-heading p {
    margin: 14px 0 0;
    color: var(--fleetly-muted);
    font-size: 15px;
    line-height: 1.6;
}

.form-field {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 9px;
    color: var(--fleetly-ink);
    font-size: 14px;
    font-weight: 800;
}

.input-shell {
    position: relative;
}

.input-shell i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa0b6;
    font-size: 17px;
    pointer-events: none;
}

.input-shell input {
    width: 100%;
    min-height: 56px;
    padding: 15px 18px 15px 50px;
    border: 1px solid var(--fleetly-line);
    border-radius: 18px;
    color: var(--fleetly-ink);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 44, 74, 0.05);
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-shell input::placeholder {
    color: #9aabbb;
    font-weight: 600;
}

.input-shell input:focus {
    border-color: var(--fleetly-sky);
    box-shadow: 0 0 0 5px rgba(52, 183, 241, 0.16), 0 14px 32px rgba(15, 44, 74, 0.08);
    transform: translateY(-1px);
}

.input-shell.has-toggle input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    color: #71869d;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle i {
    position: static;
    transform: none;
    color: currentColor;
    font-size: 16px;
    pointer-events: none;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--fleetly-blue);
    background: rgba(10, 79, 159, 0.08);
    outline: none;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 26px;
    font-size: 14px;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fleetly-muted);
    font-weight: 700;
    cursor: pointer;
}

.remember-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--fleetly-blue);
}

.login-actions a {
    color: var(--fleetly-blue);
    font-weight: 800;
    text-decoration: none;
}

.login-actions a:hover {
    color: var(--fleetly-navy);
}

.login-button {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--fleetly-blue), var(--fleetly-navy));
    box-shadow: 0 18px 40px rgba(10, 79, 159, 0.28);
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(10, 79, 159, 0.34);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.82;
}

.reset-footer {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fleetly-blue);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.back-link:hover {
    color: var(--fleetly-navy);
}

.alert {
    border: 0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.185em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: 0.65s linear infinite spinner-border;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.145em;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    .login-shell {
        height: calc(100vh - 40px);
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 0;
        max-height: 330px;
        padding: 30px;
    }

    .visual-copy h1 {
        max-width: 620px;
    }

    .login-panel {
        padding: 34px;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        display: block;
        padding: 0;
        background: #f4f9ff;
    }

    .login-shell {
        height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        height: 100vh;
        display: block;
        padding: 28px 18px;
    }

    .mobile-logo {
        display: block;
        width: 160px;
        margin: 0 auto 24px;
    }

    .login-card {
        max-width: none;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .login-heading {
        margin-bottom: 24px;
    }

    .login-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-height: 760px) {
    .login-card {
        padding: 30px;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .form-field {
        margin-bottom: 14px;
    }

    .input-shell input {
        min-height: 50px;
    }

    .login-actions {
        margin-bottom: 18px;
    }

    .login-button {
        min-height: 52px;
    }
}

