/* ============================================================================
   DOXAP Login — modern enterprise SaaS auth page.
   Two-column desktop layout with continuous animated gradient background,
   transparent SVG data-wave layer, frosted-glass login card on the right.
   ============================================================================ */

:root {
    --doxap-navy-950: #07122A;
    --doxap-navy-900: #0B0F1A;
    --doxap-navy-800: #101A3D;

    --doxap-blue-500: #4F64E5;
    --doxap-purple-500: #7C3AED;
    --doxap-green-500: #22C55E;

    --doxap-text-primary: #0F172A;
    --doxap-text-secondary: #64748B;
    --doxap-text-muted: #94A3B8;

    --doxap-surface: rgba(255, 255, 255, 0.88);
    --doxap-surface-strong: rgba(255, 255, 255, 0.96);
    --doxap-border: rgba(148, 163, 184, 0.32);

    --doxap-footer-bg: rgba(255, 255, 255, 0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body.auth-page {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--doxap-text-primary);
    background:
        radial-gradient(circle at 76% 22%, rgba(194, 210, 255, 0.64), transparent 32%),
        radial-gradient(circle at 91% 72%, rgba(228, 212, 255, 0.44), transparent 30%),
        linear-gradient(110deg, #07122A 0%, #0B1741 38%, #5F75B2 62%, #EEF3FF 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ─────────────── Animated background drift ─────────────── */
.auth-page__bg-drift {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 30% 80%, rgba(124, 58, 237, 0.22), transparent 28%),
        radial-gradient(circle at 52% 44%, rgba(34, 197, 94, 0.14), transparent 24%),
        radial-gradient(circle at 68% 30%, rgba(79, 100, 229, 0.18), transparent 30%);
    filter: blur(42px);
    animation: doxap-background-drift 18s ease-in-out infinite alternate;
}
@keyframes doxap-background-drift {
    0%   { transform: translate3d(-2%, 1%, 0) scale(1);    opacity: 0.85; }
    100% { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 1;    }
}

/* ─────────────── Milky Way nebula bands ─────────────── */
/* Two slightly different diagonal streaks create depth — a galaxy slash. */
.auth-page__milky-way,
.auth-page__milky-way-2 {
    position: fixed;
    inset: -10% -20%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    mix-blend-mode: screen;
}
.auth-page__milky-way {
    background:
        radial-gradient(ellipse 110% 30% at 50% 50%,
            rgba(124, 58, 237, 0.32) 0%,
            rgba(79, 100, 229, 0.22) 35%,
            rgba(34, 197, 94, 0.10) 60%,
            transparent 80%);
    transform: rotate(-22deg);
    opacity: 0.85;
    animation: milky-drift 24s ease-in-out infinite alternate;
}
.auth-page__milky-way-2 {
    background:
        radial-gradient(ellipse 90% 22% at 55% 45%,
            rgba(199, 210, 254, 0.22) 0%,
            rgba(125, 211, 252, 0.16) 40%,
            transparent 75%);
    transform: rotate(-18deg) translateY(8%);
    opacity: 0.7;
    animation: milky-drift 30s ease-in-out infinite alternate-reverse;
}
@keyframes milky-drift {
    0%   { transform: rotate(-22deg) translate3d(-2%, 1%, 0); }
    100% { transform: rotate(-20deg) translate3d(2%, -1%, 0); }
}

/* ─────────────── Data-wave SVG layer ─────────────── */
.auth-page__data-wave {
    position: fixed;
    left: 0;
    bottom: 0;
    width: min(72vw, 1280px);
    height: auto;
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

/* ─────────────── Floating particles (stars) ─────────────── */
.auth-page__particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* Stars belong to the background layer — below the page content
       (.auth-page__scroller is z-index: 2). */
    z-index: 1;
    overflow: hidden;
}
.auth-page__particles .particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    border-radius: 50%;
    opacity: calc(var(--o) / 100);
    animation: particle-twinkle var(--d) ease-in-out infinite alternate;
}

/* Cross-shaped lens-flare rays for the bright sparkles — horizontal and
   vertical thin lines that fade out, mimicking a starburst glint. Applied
   via pseudo-elements so we don't need extra DOM nodes. */
.particle--sparkle::before, .particle--sparkle::after,
.particle--green::before,   .particle--green::after,
.particle--cyan::before,    .particle--cyan::after,
.particle--purple::before,  .particle--purple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* Horizontal flare = ::before, vertical flare = ::after */
.particle--sparkle::before, .particle--green::before,
.particle--cyan::before,    .particle--purple::before {
    width: 28px; height: 1px;
}
.particle--sparkle::after,  .particle--green::after,
.particle--cyan::after,     .particle--purple::after {
    width: 1px; height: 28px;
}
/* White sparkles */
.particle--sparkle::before { background: linear-gradient(to right,  transparent, rgba(255,255,255,0.9), transparent); }
.particle--sparkle::after  { background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9), transparent); }
/* Green sparkles */
.particle--green::before   { background: linear-gradient(to right,  transparent, rgba(34,197,94,0.95),  transparent); width: 34px; }
.particle--green::after    { background: linear-gradient(to bottom, transparent, rgba(34,197,94,0.95),  transparent); height: 34px; }
/* Cyan sparkles */
.particle--cyan::before    { background: linear-gradient(to right,  transparent, rgba(103,232,249,0.95), transparent); width: 32px; }
.particle--cyan::after     { background: linear-gradient(to bottom, transparent, rgba(103,232,249,0.95), transparent); height: 32px; }
/* Purple sparkles */
.particle--purple::before  { background: linear-gradient(to right,  transparent, rgba(196,181,253,0.95), transparent); width: 34px; }
.particle--purple::after   { background: linear-gradient(to bottom, transparent, rgba(196,181,253,0.95), transparent); height: 34px; }

/* Tiny dust — barely visible, just adds depth */
.particle--dust {
    width: 1.5px;
    height: 1.5px;
    background: rgba(199, 210, 254, 0.95);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
/* Medium stars — clearly visible white pinpoints */
.particle--star {
    width: 2.5px;
    height: 2.5px;
    background: white;
    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.85),
        0 0 14px rgba(199, 210, 254, 0.55);
}
/* Bright sparkles — white hero dots with multi-color glow halo */
.particle--sparkle {
    width: 4px;
    height: 4px;
    background: white;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 22px rgba(124, 58, 237, 0.6),
        0 0 40px rgba(79, 100, 229, 0.4);
    animation:
        particle-twinkle var(--d) ease-in-out infinite alternate,
        sparkle-pulse calc(var(--d) * 1.4) ease-in-out infinite;
}
/* Colored hero stars to match brand palette */
.particle--green {
    width: 4.5px; height: 4.5px;
    background: #22C55E;
    box-shadow:
        0 0 8px rgba(34, 197, 94, 1),
        0 0 24px rgba(34, 197, 94, 0.7),
        0 0 50px rgba(34, 197, 94, 0.35);
    animation:
        particle-twinkle var(--d) ease-in-out infinite alternate,
        sparkle-pulse calc(var(--d) * 1.6) ease-in-out infinite;
}
.particle--cyan {
    width: 4px; height: 4px;
    background: #67E8F9;
    box-shadow:
        0 0 8px rgba(103, 232, 249, 1),
        0 0 22px rgba(34, 211, 238, 0.7),
        0 0 44px rgba(6, 182, 212, 0.4);
    animation:
        particle-twinkle var(--d) ease-in-out infinite alternate,
        sparkle-pulse calc(var(--d) * 1.5) ease-in-out infinite;
}
.particle--purple {
    width: 4.5px; height: 4.5px;
    background: #C4B5FD;
    box-shadow:
        0 0 8px rgba(196, 181, 253, 1),
        0 0 24px rgba(167, 139, 250, 0.7),
        0 0 50px rgba(124, 58, 237, 0.45);
    animation:
        particle-twinkle var(--d) ease-in-out infinite alternate,
        sparkle-pulse calc(var(--d) * 1.7) ease-in-out infinite;
}
@keyframes particle-twinkle {
    0%   { transform: translateY(0) scale(1);   opacity: calc(var(--o) / 100); }
    100% { transform: translateY(-6px) scale(1.5); opacity: calc(var(--o) / 220); }
}
@keyframes sparkle-pulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(2); }
}

/* ─────────────── Top bar ─────────────── */
.auth-page__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    /* Soft glass effect so the brand stays readable above any section. */
    background: linear-gradient(180deg, rgba(7, 18, 42, 0.65) 0%, rgba(7, 18, 42, 0) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.auth-page__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: white;
}
.auth-page__brand-logo {
    /* Source asset is ~5.5:1 — width-constrained keeps the brand compact. */
    width: 170px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.auth-page__brand-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    margin-left: 4px;
}

/* Top-right language switcher */
.auth-lang-switcher { position: relative; }
.auth-lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.15s, border-color 0.15s;
}
.auth-lang-toggle:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
.auth-lang-toggle .auth-lang-current-flag {
    width: 18px; height: 13px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.auth-lang-toggle .bi-chevron-down { font-size: 12px; opacity: 0.7; }

.auth-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}
.auth-lang-switcher.is-open .auth-lang-menu { display: flex; }
.auth-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--doxap-text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.12s;
}
.auth-lang-item:hover { background: #f5f3ff; color: var(--doxap-text-primary); }
.auth-lang-item.is-active { font-weight: 600; color: var(--doxap-blue-500); }
.auth-lang-item .fi {
    width: 20px; height: 14px; border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ─────────────── Scroll-snap landing ─────────────── */
html {
    /* `proximity` (not mandatory) so the footer below the last section is
       still reachable. We still snap when the user is close to a section
       boundary — the Apple-style "page snap" feel. */
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}
.auth-page__scroller {
    position: relative;
    z-index: 2;
}
.auth-section {
    /* Section height accounts for the fixed topbar above and fixed footer
       below so content never slides under either. */
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 96px;
    padding-bottom: 110px;
}
.auth-section__inner {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(480px, 0.85fr);
    align-items: center;
    padding: 0 40px 80px;
    gap: 48px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

/* Animated scroll-down indicator (Apple style) */
.scroll-indicator {
    position: absolute;
    bottom: 70px;   /* Above the fixed footer (~50px) with breathing room */
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    z-index: 5;
}
.scroll-indicator:hover {
    color: white;
}
.scroll-indicator__label {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}
.scroll-indicator__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0);   opacity: 0.85; }
    50%      { transform: translateY(8px); opacity: 1;    }
}

/* ─────────────── Left panel ─────────────── */
.auth-page__left { color: white; }
.auth-page__left-inner {
    max-width: 560px;
    padding-left: 24px;
    /* Stack inline-flex children (secure note, Book a Demo) on their own
       lines, each only as wide as its content. */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.auth-hero {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
}
.auth-hero__highlight {
    color: var(--doxap-green-500);
}
.auth-intro {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 460px;
}

.auth-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
    /* Slight indent relative to the headline + intro above. */
    margin-left: 32px;
}
.auth-benefit {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    color: white;
}
.auth-benefit__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    background:
        radial-gradient(circle at center, rgba(34, 197, 94, 0.06), transparent 70%);
}
/* Gradient ring around the icon — matches the brand green→cyan→blue. */
.auth-benefit__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, #22C55E 0%, #06B6D4 55%, #4F64E5 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.auth-benefit h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}
.auth-benefit p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-secure-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    /* Align with the headline/intro (no indent), add space above to separate
       from the benefits list. */
    margin-left: 0;
    margin-top: 12px;
}

/* Secondary CTA — Book a Demo. Glass / outline style so it complements the
   primary "Sign in" button on the right without competing with it. */
.btn-book-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-book-demo:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, rgba(79, 100, 229, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(79, 100, 229, 0.32);
}
.btn-book-demo svg { flex-shrink: 0; }
.auth-secure-note svg { flex-shrink: 0; }

/* ─────────────── Right panel: login card ─────────────── */
.auth-page__right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: min(100%, 480px);
    padding: 40px 44px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: card-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    /* Pull the card above the starfield/particles so no sparkle ever lands
       inside the sign-in form. */
    position: relative;
    z-index: 5;
}
@keyframes card-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.login-card__logo {
    text-align: center;
    margin-bottom: 20px;
}
.login-card__logo img {
    height: 32px;
    width: auto;
    display: block;
    margin: 0 auto;
}
.login-card__subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--doxap-text-secondary);
    margin-bottom: 28px;
}

/* ─────────────── Form ─────────────── */
.login-form .form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--doxap-text-primary);
    margin-bottom: 8px;
}
.input-wrapper { position: relative; }
.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--doxap-text-muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}
.login-form .form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--doxap-border);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    color: var(--doxap-text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form .form-control:focus {
    outline: none;
    border-color: var(--doxap-blue-500);
    box-shadow: 0 0 0 4px rgba(79, 100, 229, 0.12);
}
.login-form .form-control::placeholder { color: var(--doxap-text-muted); }

.show-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--doxap-text-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 18px;
    z-index: 2;
    transition: color 0.15s;
}
.show-password:hover { color: var(--doxap-blue-500); }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 22px;
}
.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--doxap-text-primary);
    cursor: pointer;
    margin: 0;
}
.remember-me input {
    accent-color: var(--doxap-blue-500);
    width: 16px;
    height: 16px;
}
.forgot-link {
    font-size: 14px;
    color: var(--doxap-blue-500);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { color: var(--doxap-purple-500); }

.btn-signin {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, var(--doxap-blue-500) 0%, var(--doxap-purple-500) 100%);
    box-shadow: 0 10px 24px rgba(79, 100, 229, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    position: relative;
    overflow: hidden;
}
.btn-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 100, 229, 0.36);
}
.btn-signin:active { transform: translateY(0); }
.btn-signin.is-loading { pointer-events: none; opacity: 0.85; }
.btn-signin.is-loading .btn-signin__label { visibility: hidden; }
.btn-signin.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.login-card__access-helper {
    margin-top: 26px;
    text-align: center;
    border-top: 1px solid var(--doxap-border);
    padding-top: 20px;
}
.access-divider {
    display: block;
    font-size: 14px;
    color: var(--doxap-text-secondary);
    margin-bottom: 6px;
}
.access-link {
    font-size: 14px;
    color: var(--doxap-blue-500);
    font-weight: 500;
    text-decoration: none;
}
.access-link:hover { color: var(--doxap-purple-500); }

/* ─────────────── Section 2 — Middleware landing ─────────────── */
.auth-section--middleware { padding-bottom: 60px; }
.middleware-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    grid-template-columns: none;
    color: white;
    max-width: 1280px;
    flex: 1;
    width: 100%;
    margin: 0 auto;
}
.middleware-header {
    text-align: center;
    margin-bottom: 32px;
}
.middleware-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.middleware-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin: 0 auto 14px;
    max-width: 880px;
}
.middleware-title__highlight {
    background: linear-gradient(90deg, #22C55E 0%, #06B6D4 50%, #4F64E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.middleware-subtitle {
    font-size: 15.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto;
}

/* ─── NEW Diagram: Source ↔ Hub ↔ Target ─── */
.mw-diagram {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    margin: 0 auto 32px;
    max-width: 1200px;
}

.mw-card {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 23, 65, 0.7) 0%, rgba(11, 23, 65, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px 18px 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mw-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
/* Subtle data-pattern overlay top-right */
.mw-card__corner {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.18), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}
.mw-card__corner--accent {
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.32), transparent 70%);
    width: 200px; height: 200px;
    top: -60px; right: -60px;
}
.mw-card__corner--purple {
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.22), transparent 70%);
}

.mw-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.mw-card__head-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.mw-card__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: rgba(199, 210, 254, 0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.mw-card__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.mw-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mw-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.mw-list li:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.32);
    transform: translateX(2px);
}
.mw-list__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.10);
}
.mw-list__label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.mw-list__chip {
    font-size: 10px;
    font-weight: 600;
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.32);
    letter-spacing: 0.04em;
}

.mw-card__foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mw-card__foot-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: mw-pulse-dot 2.5s ease-in-out infinite;
}
.mw-card__foot-dot--green  { background: #22C55E; color: rgba(34, 197, 94, 0.7); }
.mw-card__foot-dot--purple { background: #C4B5FD; color: rgba(196, 181, 253, 0.7); }
@keyframes mw-pulse-dot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ─── CENTER HUB card ─── */
.mw-card--hub {
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(11, 23, 65, 0.75) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.6);
    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.35),
        inset 0 0 24px rgba(124, 58, 237, 0.08);
    text-align: center;
    align-items: stretch;
    animation: mw-hub-pulse 4s ease-in-out infinite;
}
@keyframes mw-hub-pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(124, 58, 237, 0.35), inset 0 0 24px rgba(124, 58, 237, 0.08); }
    50%      { box-shadow: 0 0 90px rgba(124, 58, 237, 0.55), inset 0 0 28px rgba(124, 58, 237, 0.14); }
}
.mw-card__halo {
    position: absolute;
    inset: -20px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at center,
        rgba(124, 58, 237, 0.35) 0%,
        rgba(6, 182, 212, 0.18) 35%,
        transparent 70%);
    z-index: -1;
    filter: blur(28px);
}
.mw-hub__status {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 6px;
    margin: -4px auto 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-size: 10.5px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.mw-hub__live {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: mw-live-pulse 1.6s ease-out infinite;
}
@keyframes mw-live-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}
.mw-hub__brand {
    display: block;
    width: 170px;
    height: auto;
    margin: 4px auto 8px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}
.mw-hub__tagline {
    margin: 0 0 14px;
    font-size: 12px;
    color: rgba(199, 210, 254, 0.85);
    font-style: italic;
    letter-spacing: 0.02em;
}
.mw-hub__caps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.mw-hub__caps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.32);
    font-size: 12.5px;
    font-weight: 600;
    color: white;
}
.mw-hub__caps-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
}
.mw-card__foot--accent {
    color: rgba(199, 210, 254, 0.8);
    border-top-color: rgba(124, 58, 237, 0.25);
    justify-content: center;
    text-transform: none;
    font-style: italic;
    font-size: 11px;
}

/* Connector lanes */
.mw-connector {
    display: flex;
    align-items: center;
}

@media (max-width: 1100px) {
    .mw-diagram { grid-template-columns: 1fr; gap: 16px; }
    .mw-connector { transform: rotate(90deg); height: 50px; width: 100%; }
}

/* Legacy `.middleware-diagram` left as no-op (still referenced by old CSS,
   but no markup uses it now — safe to keep until cleanup). */
.middleware-diagram { display: none; }
.middleware-diagram-OLD {
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr;
    align-items: stretch;
    gap: 8px;
    margin: 0 auto 40px;
    max-width: 1200px;
}
.middleware-node {
    /* Opaque dark tint — readable against the light side of the page gradient. */
    background: rgba(11, 23, 65, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 20px 20px;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.middleware-node:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.middleware-node h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 10px 0 4px;
    color: white;
}
.middleware-node p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    margin: 0 0 12px;
}
.middleware-node__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.10), transparent 70%);
    border: 1px solid rgba(34, 197, 94, 0.30);
}
/* Center brand block — wide DOXAP.IO logo on its own (no surrounding box). */
.middleware-node__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* same vertical footprint as the side icons */
    margin: 0 auto;
}
.middleware-node__brand img {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.middleware-node__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.middleware-node__tags li {
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}
.middleware-node__tags--accent li {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(79, 100, 229, 0.18));
    border-color: rgba(124, 58, 237, 0.4);
    color: white;
}

/* Center node — same dimensions as the side cards. Brand accent carried by
   the border tint, inner halo and the wide DOXAP.IO logo only. */
.middleware-node--center {
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(124, 58, 237, 0.18) inset;
}
.middleware-node__halo {
    position: absolute;
    inset: -20px;
    border-radius: 28px;
    background: radial-gradient(ellipse at center,
        rgba(124, 58, 237, 0.28) 0%,
        rgba(34, 197, 94, 0.16) 35%,
        transparent 70%);
    z-index: -1;
    filter: blur(24px);
}

/* Animated flow connectors */
.middleware-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Three capabilities row */
.middleware-capabilities {
    list-style: none;
    margin: 0 auto 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1100px;
}
.middleware-capabilities li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.middleware-capability__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.10), transparent 70%);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.middleware-capabilities h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
}
.middleware-capabilities p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin: 0;
}

.middleware-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.middleware-cta .btn-book-demo {
    margin-top: 0;
}
.middleware-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s;
}
.middleware-back:hover { color: white; }

/* Responsive — middleware diagram stacks on mobile */
@media (max-width: 1100px) {
    .middleware-title { font-size: 38px; }
    .middleware-diagram {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .middleware-connector {
        transform: rotate(90deg);
        height: 60px;
        width: 60px;
    }
    .middleware-capabilities {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
@media (max-width: 768px) {
    .middleware-title { font-size: 30px; }
    .middleware-subtitle { font-size: 16px; }
    .middleware-header { margin-bottom: 32px; }
}

/* ─────────────── Section 3 — Data Bridge landing ─────────────── */
.auth-section--databridge {
    padding-top: 76px;
    padding-bottom: 90px;
}
.databridge-inner {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 24px;
}
.databridge-header {
    text-align: left;
    margin-bottom: 8px;
}
.databridge-eyebrow {
    color: #4F64E5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.databridge-title {
    margin: 4px 0 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid rgba(124, 58, 237, 0.6);
    padding-bottom: 8px;
    display: inline-block;
}

/* Grid: 5 columns */
.databridge-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.9fr)
        minmax(0, 1.1fr)
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);
    gap: 14px;
    align-items: stretch;
}

.databridge-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.databridge-col__header {
    text-align: center;
    margin-bottom: 4px;
}
.databridge-col__header h3 {
    font-size: 12px;
    font-weight: 700;
    color: #c7d2fe;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}
.databridge-col__header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
    font-style: italic;
}
.databridge-col__header--accent h3 { color: #c4b5fd; }
.databridge-col__header--bridge h3 { color: #67E8F9; font-size: 13px; }
.databridge-col__footer {
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* Generic source/channel item */
.db-item {
    background: rgba(11, 23, 65, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, transform 0.2s;
}
.db-item:hover {
    border-color: rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
}
.db-item__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.db-item__title {
    font-size: 12.5px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}
.db-item__brands {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}
.db-item__logos {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}
.db-item__logos img {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    object-fit: contain;
}
.db-item__chips {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 110px;
}
.db-chip {
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
    letter-spacing: 0.02em;
}

/* Connection Library — column 2 */
.databridge-col--connectors {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(124, 58, 237, 0.02));
    border: 1px solid rgba(124, 58, 237, 0.32);
    border-radius: 14px;
    padding: 14px 12px;
}
.db-connectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.db-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
}
.db-connector:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
}
.db-connector__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.db-connector--custom {
    grid-column: 1 / -1;
    justify-content: center;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(79, 100, 229, 0.12));
    border-color: rgba(124, 58, 237, 0.4);
    font-weight: 600;
}

/* Data Bridge — column 3 hero */
.databridge-col--bridge {
    align-items: center;
}
.db-bridge-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.06), rgba(11, 23, 65, 0.7));
    border: 1.5px solid rgba(103, 232, 249, 0.5);
    border-radius: 16px;
    padding: 16px 14px;
    position: relative;
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.25), inset 0 0 30px rgba(103, 232, 249, 0.08);
    text-align: center;
}
.db-bridge-card__halo {
    position: absolute;
    inset: -10px;
    border-radius: 22px;
    background: radial-gradient(ellipse at center,
        rgba(6, 182, 212, 0.28) 0%,
        rgba(34, 197, 94, 0.14) 35%,
        transparent 70%);
    z-index: -1;
    filter: blur(28px);
}
.db-bridge-card__logo {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    margin: 6px auto 12px;
    display: block;
}
.db-bridge-capabilities {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.db-bridge-capabilities li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(11, 23, 65, 0.55);
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: white;
}
.db-bridge-card__tag {
    margin: 8px 0 8px;
    font-size: 11px;
    color: #67E8F9;
    font-style: italic;
}
.db-bridge-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(11, 23, 65, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.8);
}

/* Integrators — column 4 */
.db-integrator {
    background: rgba(11, 23, 65, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, transform 0.2s;
}
.db-integrator:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}
.db-integrator img { opacity: 0.85; }
.db-integrator--muted {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 12px;
}
.db-integrator--custom {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.10), rgba(79, 100, 229, 0.10));
    border-color: rgba(124, 58, 237, 0.4);
    color: #c4b5fd;
}

/* Bottom features bar */
.databridge-features {
    margin-top: 8px;
    background: rgba(11, 23, 65, 0.55);
    border: 1px solid rgba(79, 100, 229, 0.45);
    border-radius: 14px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.db-feature {
    display: flex;
    gap: 14px;
    align-items: center;
}
.db-feature__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.10), transparent 70%);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.db-feature h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.db-feature p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .databridge-grid { grid-template-columns: 1fr; }
    .databridge-features { grid-template-columns: 1fr; gap: 14px; }
}

/* ─────────────── Contact Us modal ─────────────── */
.contactus-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.contactus-overlay.is-open {
    display: flex;
    opacity: 1;
}
.contactus-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    padding: 32px;
    width: min(100%, 480px);
    position: relative;
    animation: card-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.contactus-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    color: var(--doxap-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.contactus-close:hover { color: var(--doxap-text-primary); background: #f3f4f6; }
.contactus-modal h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--doxap-text-primary);
}
.contactus-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--doxap-text-secondary);
}
.contactus-form .form-group { margin-bottom: 14px; }
.contactus-form input,
.contactus-form textarea,
.contactus-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--doxap-border);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    color: var(--doxap-text-primary);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.contactus-form textarea { resize: vertical; }
.contactus-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    cursor: pointer;
}
.contactus-form input:focus,
.contactus-form textarea:focus,
.contactus-form select:focus {
    outline: none;
    border-color: var(--doxap-blue-500);
    box-shadow: 0 0 0 4px rgba(79, 100, 229, 0.12);
}
.contactus-result {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 12px;
}
.contactus-result.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.contactus-result.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.contactus-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}
.contactus-cancel {
    padding: 12px 18px;
    border: 1.5px solid var(--doxap-border);
    border-radius: 10px;
    background: white;
    color: var(--doxap-text-primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}
.contactus-cancel:hover { background: #f9fafb; }
.contactus-actions .btn-signin {
    width: auto;
    min-width: 140px;
    min-height: 44px;
    padding: 0 20px;
}

/* ─────────────── Footer ─────────────── */
.auth-footer {
    /* Pinned to viewport bottom — visible on every landing section. */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 12px 40px;
    background: var(--doxap-footer-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 13px;
    color: var(--doxap-text-secondary);
}
.auth-footer__secure {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-footer__secure .bi-shield-check { color: var(--doxap-green-500); font-size: 16px; }
.auth-footer__links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-footer__links a {
    color: var(--doxap-text-secondary);
    text-decoration: none;
}
.auth-footer__links a:hover { color: var(--doxap-blue-500); }
.auth-footer__sep { color: var(--doxap-text-muted); }
.auth-footer__copyright { text-align: right; }

/* ─────────────── Responsive ─────────────── */
/* ─────────────── Responsive ─────────────── */
/* Tablet (≤1100px): compress + slightly smaller hero typography. */
@media (max-width: 1100px) {
    .auth-page__left-inner { padding-left: 0; }
    .auth-hero { font-size: 40px; }
    .auth-intro { font-size: 16px; }
    .auth-benefits { margin-left: 20px; }
    .auth-secure-note { margin-left: 0; }
    .auth-section__inner {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
        gap: 28px;
        padding: 0 24px 60px;
    }
    .login-card { padding: 32px 28px; }
}

/* Narrow desktop / wide tablet (≤960px): single column, login card centered,
   marketing left panel hidden, footer stacks. */
@media (max-width: 960px) {
    .auth-page__topbar { padding: 14px 20px; }
    .auth-page__brand-tagline { display: none; }
    .auth-page__brand-logo { width: 130px; }

    .auth-section__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 20px 40px;
        gap: 24px;
        justify-items: center;
    }
    .auth-page__left { display: none; }
    .auth-page__right { width: 100%; padding: 12px 0; }

    .auth-page__data-wave { width: 140vw; opacity: 0.45; }

    .login-card {
        width: min(100%, 440px);
        padding: 28px 24px;
        border-radius: 20px;
        margin: 0 auto;
    }

    .auth-section { padding-top: 84px; padding-bottom: 96px; }
    .scroll-indicator { bottom: 60px; }
    .scroll-indicator__label { font-size: 12px; }

    .auth-footer {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        gap: 6px;
        padding: 10px 16px;
        font-size: 12px;
    }
    .auth-footer__links { justify-content: center; }
    .auth-footer__copyright { text-align: center; }

    /* Middleware section: stack the 3 cards vertically. */
    .mw-diagram {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mw-connector { display: none; }
    .middleware-title { font-size: 30px; }
    .middleware-subtitle { font-size: 14.5px; }
    .middleware-capabilities {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* True mobile (≤480px): tighten card padding + Contact modal padding. */
@media (max-width: 480px) {
    .auth-page__topbar { padding: 12px 14px; }
    .auth-page__brand-logo { width: 100px; }
    .auth-lang-toggle { padding: 6px 10px; font-size: 13px; }
    /* Hide the language NAME, keep the flag + chevron — saves precious width. */
    .auth-lang-toggle .auth-lang-current-name { display: none; }
    .auth-lang-menu { min-width: 160px; right: -8px; }

    .auth-section { padding-top: 72px; padding-bottom: 88px; }
    .auth-section__inner { padding: 0 14px 24px; }

    .login-card {
        padding: 22px 18px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
    }
    .login-card__logo img { height: 28px; }
    .login-card__subtitle { font-size: 14px; margin-bottom: 22px; }
    .login-form .form-control { font-size: 14.5px; padding: 12px 14px 12px 40px; }
    .input-icon { left: 12px; font-size: 15px; }
    .form-label { font-size: 13px; }
    .form-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .forgot-link { font-size: 13px; }
    .btn-signin { min-height: 48px; font-size: 15px; }

    /* Contact / Book a Demo modal */
    .contactus-overlay { padding: 14px; }
    .contactus-modal { padding: 22px 18px; border-radius: 16px; }
    .contactus-modal h2 { font-size: 19px; }
    .contactus-subtitle { font-size: 13px; }

    /* Section 2 mobile */
    .middleware-title { font-size: 26px; }
    .middleware-subtitle { font-size: 13.5px; }
    .mw-card { padding: 16px 14px; }
    .mw-card__head h3 { font-size: 14px; }
    .mw-list li { padding: 7px 10px; }
    .mw-list__label { font-size: 12.5px; }

    .auth-footer { font-size: 11.5px; padding: 8px 12px; }
    .auth-footer__secure { display: none; }   /* save space — shield line not critical on mobile */
}

/* Very small screens (≤360px): final squeeze. */
@media (max-width: 360px) {
    .auth-page__topbar { padding: 10px 10px; }
    .auth-page__brand-logo { width: 80px; }
    .auth-lang-toggle { padding: 4px 8px; }
    .login-card { padding: 18px 14px; }
    .login-card__subtitle { font-size: 13px; }
    .btn-signin { min-height: 44px; font-size: 14px; }
}

/* ─────────────── Accessibility ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
.login-form .form-control:focus-visible,
.btn-signin:focus-visible,
.show-password:focus-visible,
.auth-lang-toggle:focus-visible,
.auth-lang-item:focus-visible,
.forgot-link:focus-visible,
.access-link:focus-visible {
    outline: 2px solid var(--doxap-blue-500);
    outline-offset: 2px;
}
