/* ============================================================
   BLS COURIER SYSTEM — LOGIN PAGE
   Booysen Logistics | Operations Portal
   Self-contained styles scoped under .bls-login-page
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    /* Brand palette */
    --bls-navy:        #0f1e30;
    --bls-navy-mid:    #16293f;
    --bls-navy-light:  #1e3550;
    --bls-blue:        #2e86de;
    --bls-blue-hover:  #1a73c8;
    --bls-amber:       #f5a623;
    --bls-amber-dark:  #d4891a;
    --bls-white:       #ffffff;
    --bls-off-white:   #f4f7fa;
    --bls-form-bg:     #f8fafc;
    --bls-border:      #dde5ef;
    --bls-text-dark:   #0f1e30;
    --bls-text-mid:    #4a5e72;
    --bls-text-muted:  #8498ac;
    --bls-error-bg:    #fff1f0;
    --bls-error-border:#ffc9c9;
    --bls-error-text:  #b02a37;

    /* Typography */
    --bls-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global reset for this page ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   PAGE SHELL
   ============================================================ */
.bls-login-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;          /* dynamic viewport — accounts for mobile chrome */
    font-family: var(--bls-font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bls-navy);
    display: flex;
    align-items: stretch;
    overflow: hidden;         /* never scroll — content must fit */
}

/* ============================================================
   SPLIT SHELL — two equal columns
   ============================================================ */
.bls-shell {
    display: grid;
    grid-template-columns: 58fr 42fr;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    animation: blsReveal 0.55s var(--ease-out-expo) both;
}

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

/* ============================================================
   LEFT PANEL — Brand / Logistics Scene
   ============================================================ */
.bls-scene {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 52px 56px 44px;
    gap: 0;
    min-height: 0;            /* allow flex shrinking inside fixed-height grid */

    /* Layered dark-navy background */
    background: var(--bls-navy);
}

/* ---- Background texture: angled accent stripe ---- */
.bls-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Subtle grid dots — world-map feel */
    background-image:
        radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 110% 80% at 60% 45%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 110% 80% at 60% 45%, #000 30%, transparent 80%);
    pointer-events: none;
}

/* ---- Amber accent stripe — bottom-left corner ---- */
.bls-scene::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bls-amber) 0%, var(--bls-blue) 100%);
}

/* Floating glow orbs for depth */
.bls-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.bls-orb-1 {
    top: -12%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(46,134,222,0.18) 0%, transparent 65%);
    animation: blsOrbDrift 18s ease-in-out infinite;
}
.bls-orb-2 {
    bottom: -10%;
    left: -15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, transparent 65%);
    animation: blsOrbDrift 24s ease-in-out infinite reverse;
}

@keyframes blsOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(5%, 4%) scale(1.06); }
}

/* All direct children above the decorative layers */
.bls-scene > *:not(.bls-orb) { position: relative; z-index: 2; }

/* ---- Brand lockup ---- */
.bls-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bls-brand-logo img {
    max-height: 72px;
    max-width: 240px;
    object-fit: contain;
    filter: brightness(1) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Icon badge when no custom logo */
.bls-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bls-blue) 0%, #1a5fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(46,134,222,0.5),
        0 8px 20px rgba(46,134,222,0.35);
}

.bls-brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bls-white);
    letter-spacing: 0.2px;
    line-height: 1.1;
}
.bls-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bls-amber);
    margin-top: 3px;
    font-weight: 600;
}

/* ---- Centre content area (headline + route) ---- */
.bls-scene-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 32px;
    gap: 32px;
}

/* Tagline headline */
.bls-headline {
    max-width: 36ch;
}
.bls-headline h2 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--bls-white);
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}
.bls-headline h2 em {
    font-style: normal;
    color: var(--bls-amber);
}
.bls-headline p {
    font-size: 0.97rem;
    color: #7b9ab5;
    line-height: 1.65;
    margin: 0;
    max-width: 38ch;
}

/* ---- Delivery route animation ---- */
.bls-route {
    position: relative;
    height: 78px;
}

/* Dashed base line */
.bls-route-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.18) 0 12px,
        transparent 12px 22px
    );
}

/* Animated progress fill */
.bls-route-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    border-radius: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--bls-blue), var(--bls-amber));
    animation: blsFill 7s ease-in-out infinite;
}

@keyframes blsFill {
    0%   { width: 0%; opacity: 0; }
    6%   { opacity: 1; }
    68%  { width: 100%; opacity: 1; }
    78%  { width: 100%; opacity: 0; }
    79%  { width: 0%; opacity: 0; }
    100% { width: 0%; opacity: 0; }
}

/* Node pins */
.bls-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bls-white);
    border: 3px solid var(--bls-blue);
    box-shadow: 0 0 0 4px rgba(46,134,222,0.22);
    z-index: 3;
}
.bls-pin.start {
    left: 0;
    border-color: var(--bls-amber);
    box-shadow: 0 0 0 4px rgba(245,166,35,0.22);
}
.bls-pin.end {
    left: 100%;
    border-color: var(--bls-blue);
}

/* Pin labels */
.bls-pin::after {
    content: attr(data-label);
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bls-text-muted);
    white-space: nowrap;
}

/* Moving truck icon */
.bls-truck {
    position: absolute;
    top: 50%;
    font-size: 1.75rem;
    color: var(--bls-white);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
    transform: translate(-50%, -90%);
    z-index: 4;
    animation: blsDrive 7s ease-in-out infinite;
}

@keyframes blsDrive {
    0%   { left: 0%;   opacity: 0; }
    7%   { opacity: 1; }
    68%  { left: 100%; opacity: 1; }
    75%  { left: 100%; opacity: 0; }
    76%  { left: 0%;   opacity: 0; }
    100% { left: 0%;   opacity: 0; }
}

/* ---- Feature pills ---- */
.bls-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bls-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: #a8bfce;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}
.bls-pill i {
    color: var(--bls-amber);
    font-size: 0.85rem;
}

/* ---- Bottom stats strip ---- */
.bls-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    flex-shrink: 0;
}

.bls-stat {
    flex: 1;
    padding: 0 0 0 24px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.bls-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.bls-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bls-white);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.bls-stat-num span {
    /* accent colour on the key number suffix */
    color: var(--bls-amber);
}
.bls-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #546e82;
}

/* Decorative floating boxes */
.bls-decor {
    position: absolute;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
    z-index: 1;
    animation: blsFloat 10s ease-in-out infinite;
}
.bls-decor-1 { top: 14%;  right: 8%;  font-size: 5rem;  animation-delay: 0s; }
.bls-decor-2 { top: 52%;  right: 18%; font-size: 3.2rem; animation-delay: -3.5s; }
.bls-decor-3 { bottom: 18%; right: 5%;  font-size: 2.4rem; animation-delay: -7s; }

@keyframes blsFloat {
    0%, 100% { transform: translateY(0)    rotate(-6deg); }
    50%      { transform: translateY(-20px) rotate(6deg);  }
}

/* ============================================================
   RIGHT PANEL — Login Form
   ============================================================ */
.bls-form-side {
    background: var(--bls-off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
    min-height: 0;            /* allow shrinking when stacked */
}

/* Subtle top accent bar */
.bls-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bls-blue) 0%, var(--bls-amber) 100%);
}

/* Faint corner logo watermark */
.bls-form-side::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,134,222,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Inner card wrapper — pure white */
.bls-form-card {
    width: 100%;
    max-width: 400px;
    background: var(--bls-white);
    border-radius: 18px;
    padding: 44px 40px 36px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.05),
        0 4px 6px -1px rgba(0,0,0,0.06),
        0 24px 48px -8px rgba(0,0,0,0.10);
    animation: blsCardIn 0.5s 0.1s var(--ease-out-expo) both;
}

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

/* ---- Form head ---- */
.bls-form-head {
    margin-bottom: 32px;
}

.bls-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bls-blue);
    margin-bottom: 10px;
}
.bls-form-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--bls-blue);
    border-radius: 2px;
}

.bls-form-head h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bls-text-dark);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.bls-form-head p {
    font-size: 0.88rem;
    color: var(--bls-text-muted);
    margin: 0;
}

/* ---- Error alert ---- */
.bls-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bls-error-bg);
    border: 1px solid var(--bls-error-border);
    border-left: 3px solid #e53e3e;
    color: var(--bls-error-text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.84rem;
    margin-bottom: 24px;
    line-height: 1.5;
}
.bls-alert i {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

/* ---- Field groups ---- */
.bls-field {
    margin-bottom: 20px;
}

.bls-field label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bls-text-mid);
    margin-bottom: 8px;
}

/* Input wrapper with icon and optional toggle */
.bls-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Leading icon */
.bls-input-icon {
    position: absolute;
    left: 15px;
    color: var(--bls-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

/* The actual input */
.bls-input-wrap input {
    width: 100%;
    border: 1.5px solid var(--bls-border);
    border-radius: 10px;
    padding: 13px 44px 13px 44px; /* room for both icons */
    font-size: 0.93rem;
    font-family: var(--bls-font);
    color: var(--bls-text-dark);
    background: var(--bls-form-bg);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bls-input-wrap input::placeholder {
    color: #bec9d4;
    font-size: 0.88rem;
}

.bls-input-wrap input:focus {
    outline: none;
    border-color: var(--bls-blue);
    background: var(--bls-white);
    box-shadow: 0 0 0 4px rgba(46,134,222,0.12);
}

/* Change icon colour on focus */
.bls-input-wrap:focus-within .bls-input-icon {
    color: var(--bls-blue);
}

/* Password toggle button */
.bls-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--bls-text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 1rem;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.bls-pw-toggle:hover {
    color: var(--bls-blue);
    background: rgba(46,134,222,0.08);
}
.bls-pw-toggle:focus-visible {
    outline: 2px solid var(--bls-blue);
    outline-offset: 1px;
}

/* ---- Submit button ---- */
.bls-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--bls-font);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--bls-white);
    border-radius: 10px;
    background: var(--bls-navy-mid);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.12),
        0 6px 16px rgba(15,30,48,0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.bls-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent,
        rgba(255,255,255,0.10),
        transparent
    );
    transition: left 0.4s ease;
}

.bls-submit:hover {
    background: var(--bls-blue);
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.12),
        0 12px 24px rgba(46,134,222,0.30);
}
.bls-submit:hover::after {
    left: 160%;
}
.bls-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.14);
}
.bls-submit:focus-visible {
    outline: 3px solid rgba(46,134,222,0.5);
    outline-offset: 2px;
}

/* ---- Footer ---- */
.bls-form-foot {
    margin-top: 24px;
    text-align: center;
    font-size: 0.74rem;
    color: var(--bls-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
}
.bls-form-foot i {
    color: #27ae60;
    font-size: 0.8rem;
}

/* Form footer below card */
.bls-page-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 0.72rem;
    color: #7090a8;
    letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE — FIT-TO-VIEWPORT (no scroll, ever)
   Strategy: clamp typography, scale padding to viewport units,
   and progressively drop decorative content as space shrinks.

   Breakpoints (max-width):
     1280 → small laptops:  tighten padding, scale headline
     1100 → narrow desktops: shrink type, drop a decor item
      900 → tablet: stack to single column, scene becomes header bar
      560 → mobile: compact header, hide pills, 16px inputs
      400 → very small: edge-to-edge card

   Height-based queries handle short viewports (landscape phones,
   resized desktop windows) so the form always fits.
   ============================================================ */

/* --- Small laptops (≤1280px) --- */
@media (max-width: 1280px) {
    .bls-scene       { padding: 40px 40px 36px; }
    .bls-form-side   { padding: 40px 36px; }
    .bls-headline h2 { font-size: 2.2rem; }
    .bls-headline p  { font-size: 0.92rem; }
    .bls-stat-num    { font-size: 1.35rem; }
    .bls-brand-logo img { max-height: 60px; max-width: 200px; }
    .bls-decor-1 { font-size: 4rem; }
    .bls-decor-2 { font-size: 2.6rem; }
}

/* --- Narrow desktops (≤1100px) --- */
@media (max-width: 1100px) {
    .bls-shell { grid-template-columns: 55fr 45fr; }
    .bls-scene { padding: 32px 30px 28px; }
    .bls-form-side { padding: 32px 24px; }
    .bls-form-card { padding: 32px 30px 26px; }
    .bls-headline h2 { font-size: 1.9rem; }
    .bls-headline { max-width: 30ch; }
    .bls-stats { padding-top: 18px; }
    .bls-stat-num { font-size: 1.2rem; }
    .bls-stat-lbl { font-size: 0.62rem; letter-spacing: 1.2px; }
    .bls-scene-body { padding: 24px 0 20px; gap: 24px; }
    .bls-decor-3 { display: none; }
}

/* --- Tablet (≤900px): stack to single column, scene becomes header bar --- */
@media (max-width: 900px) {
    .bls-shell {
        /* Scene gets a fixed compact height so form gets ALL remaining space */
        grid-template-columns: 1fr;
        grid-template-rows: 84px 1fr;
    }

    .bls-scene {
        padding: 0 28px;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }

    /* Hide all desktop-scene decoration on stacked layout */
    .bls-scene-body,
    .bls-stats,
    .bls-decor,
    .bls-orb,
    .bls-scene::before {
        display: none;
    }

    .bls-brand { flex: 0 1 auto; min-width: 0; gap: 12px; }
    .bls-brand-mark { width: 44px; height: 44px; font-size: 1.2rem; }
    .bls-brand-name { font-size: 1.1rem; }
    .bls-brand-sub  { font-size: 0.62rem; letter-spacing: 2px; }
    .bls-brand-logo img { max-height: 44px; max-width: 170px; }

    .bls-pills {
        gap: 6px;
        flex: 0 1 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    .bls-pill {
        font-size: 0.66rem;
        padding: 5px 10px;
        white-space: nowrap;
    }

    .bls-form-side {
        padding: 24px 24px 20px;
        justify-content: center;
        overflow: hidden;
    }
    .bls-form-card {
        max-width: 460px;
        padding: 28px 30px 22px;
    }
    .bls-form-side::after { display: none; }
    .bls-form-head { margin-bottom: 22px; }
    .bls-form-head h1 { font-size: 1.55rem; }
    .bls-page-foot { margin-top: 14px; }
}

/* --- Mobile (≤560px) --- */
@media (max-width: 560px) {
    .bls-shell { grid-template-rows: 70px 1fr; }

    .bls-scene { padding: 0 16px; gap: 12px; }

    .bls-brand-mark { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 10px; }
    .bls-brand-name { font-size: 0.98rem; }
    .bls-brand-sub  { font-size: 0.56rem; letter-spacing: 1.8px; }
    .bls-brand-logo img { max-height: 38px; max-width: 140px; }

    /* Pills take too much room on small phones */
    .bls-pills { display: none; }

    .bls-form-side { padding: 18px 14px 16px; }
    .bls-form-card {
        max-width: 100%;
        padding: 22px 20px 18px;
        border-radius: 14px;
    }
    .bls-form-head { margin-bottom: 18px; }
    .bls-form-head h1 { font-size: 1.35rem; }
    .bls-form-head p { font-size: 0.82rem; }

    .bls-field { margin-bottom: 14px; }
    .bls-field label { margin-bottom: 6px; font-size: 0.7rem; }

    /* 16px inputs prevent iOS auto-zoom */
    .bls-input-wrap input { font-size: 16px; padding: 11px 44px; }
    .bls-input-wrap input::placeholder { font-size: 0.88rem; }

    /* Larger touch target */
    .bls-pw-toggle { padding: 10px; right: 6px; font-size: 1.05rem; }

    .bls-submit { padding: 12px 18px; margin-top: 4px; }
    .bls-form-foot { margin-top: 16px; }
    .bls-page-foot { margin-top: 10px; }
}

/* --- Very small screens (≤400px) --- */
@media (max-width: 400px) {
    .bls-login-page { background: var(--bls-white); }
    .bls-form-side  { padding: 14px 10px 12px; }
    .bls-form-card  {
        box-shadow: none;
        border-radius: 0;
        padding: 18px 14px;
        background: var(--bls-white);
    }
    .bls-form-side::before { display: none; }
    .bls-page-foot { display: none; }
}

/* ============================================================
   SHORT VIEWPORTS — drop non-essential content so form fits
   without scrolling.
   ============================================================ */

/* Short desktop windows (e.g. half-screen on a laptop) */
@media (max-height: 720px) and (min-width: 901px) {
    .bls-scene { padding: 28px 40px 24px; }
    .bls-scene-body { padding: 16px 0 12px; gap: 18px; }
    .bls-headline h2 { font-size: 1.85rem; margin-bottom: 8px; }
    .bls-headline p { font-size: 0.88rem; }
    .bls-route { height: 64px; }
    .bls-stats { padding-top: 14px; }
    .bls-stat-num { font-size: 1.15rem; }
    .bls-form-side { padding: 28px 32px; }
    .bls-form-card { padding: 28px 30px 22px; }
    .bls-form-head { margin-bottom: 22px; }
    .bls-form-head h1 { font-size: 1.55rem; }
    .bls-field { margin-bottom: 16px; }
}

/* Very short desktop windows */
@media (max-height: 600px) and (min-width: 901px) {
    .bls-scene-body { gap: 12px; }
    .bls-headline p { display: none; }
    .bls-route { height: 48px; }
    .bls-pin::after { display: none; }       /* drop the origin/destination labels */
    .bls-stats { display: none; }
    .bls-form-side { padding: 18px 32px; }
    .bls-form-card { padding: 22px 28px 18px; }
    .bls-form-head { margin-bottom: 16px; }
    .bls-form-head p { display: none; }      /* hide subtitle */
    .bls-field { margin-bottom: 12px; }
    .bls-form-foot { margin-top: 12px; }
    .bls-page-foot { display: none; }
}

/* Landscape phones / short stacked viewports (≤640px tall, stacked) */
@media (max-height: 640px) and (max-width: 900px) {
    .bls-shell { grid-template-rows: 56px 1fr; }
    .bls-scene { padding: 0 16px; }
    .bls-brand-mark { width: 34px; height: 34px; font-size: 0.95rem; }
    .bls-brand-name { font-size: 0.9rem; }
    .bls-brand-sub  { display: none; }
    .bls-pills { display: none; }

    .bls-form-side { padding: 14px 18px 10px; }
    .bls-form-card { padding: 18px 22px 16px; }
    .bls-form-head { margin-bottom: 14px; }
    .bls-form-head h1 { font-size: 1.2rem; }
    .bls-form-head p { display: none; }
    .bls-form-eyebrow { margin-bottom: 6px; }
    .bls-field { margin-bottom: 10px; }
    .bls-field label { margin-bottom: 4px; }
    .bls-input-wrap input { padding: 9px 42px; }
    .bls-submit { padding: 10px 16px; }
    .bls-form-foot { margin-top: 10px; }
    .bls-page-foot { display: none; }
}

/* Extreme short (≤480px tall) — strip to absolute essentials */
@media (max-height: 480px) {
    .bls-shell { grid-template-rows: 48px 1fr; }
    .bls-form-eyebrow { display: none; }
    .bls-form-foot { display: none; }
    .bls-alert { padding: 8px 12px; margin-bottom: 12px; font-size: 0.78rem; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bls-shell,
    .bls-form-card,
    .bls-orb-1,
    .bls-orb-2,
    .bls-route-fill,
    .bls-truck,
    .bls-decor-1,
    .bls-decor-2,
    .bls-decor-3 {
        animation: none !important;
        transition: none !important;
    }
    .bls-route-fill { width: 100%; opacity: 1; }
    .bls-truck { left: 50%; opacity: 1; }
}

/* ============================================================
   HIGH CONTRAST — honour system preferences
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* The login page is intentionally always dark on the left,
       but the form panel stays light for readability. No changes
       needed — the design already accounts for this. */
}
