:root {
        --vm-purple: #281664;
        --vm-purple-dark: #1b0f48;
        --vm-purple-bright: #6236e8;
        --vm-purple-soft: #f3efff;
        --vm-green: #35b729;
        --vm-ink: #10073f;
        --vm-text: #40506a;
        --vm-muted: #6b7890;
        --vm-border: #e3dff1;
        --vm-card: #ffffff;
        --vm-bg: #f7f8fc;
    }

    body {
        background: var(--vm-bg);
    }

    .vm-auth-page {
        min-height: 100vh;
        background:
            radial-gradient(circle at 76% 18%, rgba(98, 54, 232, .34), transparent 32%),
            radial-gradient(circle at 15% 80%, rgba(53, 183, 41, .10), transparent 28%),
            linear-gradient(135deg, #1b0f48 0%, #281664 48%, #3b1790 100%);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: 150px 0 128px;
    }

    .vm-auth-page::after {
        content: "";
        position: absolute;
        left: -10%;
        right: -10%;
        bottom: -72px;
        height: 210px;
        background: var(--vm-bg);
        transform: skewY(-2.4deg);
        transform-origin: top left;
        z-index: 0;
    }

    .vm-auth-page .container {
        position: relative;
        z-index: 1;
    }

    .vm-auth-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 520px;
        gap: 62px;
        align-items: center;
    }

    .vm-auth-copy {
        max-width: 610px;
        color: #ffffff;
    }

    .vm-auth-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 26px;
        padding: 10px 16px;
        border-radius: 999px;
        background: rgba(255,255,255,.11);
        border: 1px solid rgba(255,255,255,.18);
        color: #eee8ff;
        font-size: 12px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: .075em;
        text-transform: uppercase;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .vm-auth-pill i {
        color: var(--vm-green);
    }

    .vm-auth-title {
        margin: 0 0 24px;
        color: #ffffff;
        font-size: clamp(44px, 5.4vw, 68px);
        line-height: .98;
        letter-spacing: 0;
        font-weight: 950;
    }

    .vm-auth-copy p {
        max-width: 560px;
        margin: 0;
        color: rgba(255,255,255,.86);
        font-size: 19px;
        line-height: 1.72;
    }

    .vm-auth-secondary-copy {
        margin-top: 18px !important;
        color: rgba(255,255,255,.72) !important;
        font-size: 16px !important;
        line-height: 1.66 !important;
    }

    .vm-auth-card {
        background: #ffffff;
        border: 1px solid rgba(226, 219, 248, .96);
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 30px 82px rgba(8, 10, 35, .34);
    }

    .vm-auth-card-header {
        padding: 30px 30px 18px;
        border-bottom: 1px solid #ebe7f8;
    }

    .vm-auth-card-header h2 {
        margin: 0 0 8px;
        color: var(--vm-ink);
        font-size: 34px;
        line-height: 1.1;
        letter-spacing: 0;
        font-weight: 950;
    }

    .vm-auth-card-header p {
        margin: 0;
        color: #63708b;
        font-size: 15px;
        line-height: 1.55;
    }

    .vm-auth-form {
        padding: 24px 30px 30px;
    }

    .vm-register-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
    }

    .vm-register-grid .vm-field-wide {
        grid-column: 1 / -1;
    }

    .vm-auth-form .form-group {
        margin-bottom: 0;
    }

    .vm-auth-form label {
        display: block;
        margin-bottom: 8px;
        color: var(--vm-ink);
        font-size: 13px;
        font-weight: 900;
    }

    .vm-auth-form .form-control {
        width: 100%;
        height: 48px;
        padding: 10px 14px;
        border: 1px solid #ded8ef;
        border-radius: 10px;
        background: #fbfbfe;
        color: #17213a;
        font-size: 15px;
        box-shadow: none;
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .vm-auth-form .form-control:focus {
        border-color: var(--vm-purple-bright);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(98, 54, 232, .12);
        outline: none;
    }

    .vm-terms-box {
        margin: 22px 0 18px;
        padding: 15px 16px;
        border: 1px solid #e3d8ff;
        border-radius: 12px;
        background: #f7f3ff;
        color: #4b3d80;
        font-size: 14px;
        line-height: 1.55;
    }

    .vm-terms-box label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 0;
        color: #4b3d80;
        font-size: 14px;
        line-height: 1.55;
        font-weight: 800;
        cursor: pointer;
    }

    .vm-terms-box input[type="checkbox"] {
        margin-top: 4px;
        flex: 0 0 auto;
    }

    .vm-terms-box a {
        color: #5022d8;
        font-weight: 950;
        text-decoration: none;
    }

    .vm-terms-box a:hover {
        text-decoration: underline;
    }

    .vm-auth-submit {
        width: 100%;
        margin-top: 0;
        padding: 15px 18px;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, #7242f4 0%, #5022d8 100%);
        color: #ffffff;
        font-size: 16px;
        font-weight: 950;
        box-shadow: 0 16px 34px rgba(92, 47, 225, .30);
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .vm-auth-submit:hover,
    .vm-auth-submit:focus {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 20px 42px rgba(92, 47, 225, .38);
    }

    .vm-auth-links {
        margin-top: 22px;
        padding-top: 20px;
        border-top: 1px solid #ebe7f8;
        text-align: center;
        color: #8a82a6;
        font-size: 15px;
        font-weight: 800;
    }

    .vm-auth-links a {
        color: #5022d8;
        font-weight: 950;
        text-decoration: none;
    }

    .vm-auth-links a:hover {
        text-decoration: underline;
    }

    .vm-register-note {
        margin-top: 18px;
        color: #63708b;
        font-size: 13px;
        line-height: 1.55;
        text-align: center;
    }

    .vm-operator-footer {
        padding: 76px 0 34px;
        background:
            radial-gradient(circle at 18% 0%, rgba(98, 54, 232, .26), transparent 34%),
            linear-gradient(135deg, #281664 0%, #180b45 100%);
        color: rgba(255,255,255,.82);
        position: relative;
        overflow: hidden;
    }

    .vm-operator-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 14% 18%, rgba(53,183,41,.12), transparent 28%);
        pointer-events: none;
    }

    .vm-operator-footer .container {
        position: relative;
        z-index: 1;
    }

    .vm-footer-grid {
        display: grid;
        grid-template-columns: 1.2fr .8fr .8fr;
        gap: 34px;
        align-items: start;
    }

    .vm-footer-brand img {
        display: block;
        width: 220px;
        max-width: 100%;
        height: auto;
        margin-bottom: 18px;
    }

    .vm-footer-brand p,
    .vm-footer-col p,
    .vm-footer-bottom p {
        color: rgba(255,255,255,.72) !important;
    }

    .vm-footer-col h4 {
        margin: 0 0 16px 0;
        color: #ffffff;
        font-size: 18px;
    }

    .vm-footer-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .vm-footer-list li {
        margin-bottom: 10px;
        color: rgba(255,255,255,.82);
    }

    .vm-footer-list a,
    .vm-footer-bottom a {
        color: rgba(255,255,255,.86);
        text-decoration: none;
        font-weight: 700;
    }

    .vm-footer-support-link {
        color: #ffffff !important;
        font-weight: 800;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,.42);
    }

    .vm-footer-support-link:hover {
        color: #ffffff !important;
        border-bottom-color: #ffffff;
    }

    .vm-footer-list a:hover,
    .vm-footer-bottom a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    .vm-footer-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,.09);
        border: 1px solid rgba(255,255,255,.16);
        color: #ffffff;
        font-size: 12px;
        line-height: 1;
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: .06em;
    }

    .vm-footer-kicker i {
        color: var(--vm-green);
    }

    .vm-footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
        margin-top: 42px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,.14);
        font-size: 13px;
    }

    .vm-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
    }

    /* Match the public Xreference header brand treatment exactly. */
    header .navbar-brand,
    .navbar .navbar-brand,
    .main-menu .navbar-brand,
    .header .navbar-brand,
    .header-top .navbar-brand {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 220px !important;
        min-height: 54px !important;
        background: url('../images/xreference-logo.png') no-repeat left center / 220px auto !important;
    }

    header .navbar-brand img,
    .navbar .navbar-brand img,
    .main-menu .navbar-brand img,
    .header .navbar-brand img,
    .header-top .navbar-brand img {
        width: 220px !important;
        max-width: 220px !important;
        height: auto !important;
        object-fit: contain !important;
        opacity: 0 !important;
    }

    @media (max-width: 991px) {
        .vm-auth-page {
            padding: 112px 0 112px;
        }

        .vm-auth-shell {
            grid-template-columns: 1fr;
            gap: 36px;
            max-width: 620px;
            margin: 0 auto;
        }

        .vm-auth-copy {
            text-align: center;
            margin: 0 auto;
        }

        .vm-auth-copy p {
            margin-left: auto;
            margin-right: auto;
        }

        .vm-footer-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767px) {
        .header .navbar.navbar-default.navbar-fixed-top {
            border-bottom-color: transparent !important;
            background: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
        }

        .header .navbar.navbar-default.navbar-fixed-top.top-nav-collapse {
            background:
                radial-gradient(circle at 82% 0%, rgba(98, 54, 232, .32), transparent 36%),
                linear-gradient(135deg, #1b0f48 0%, #281664 58%, #150833 100%) !important;
            border-bottom-color: rgba(255,255,255,.08) !important;
            box-shadow: 0 12px 28px rgba(10, 4, 36, .18) !important;
        }

        .header .navbar.navbar-default.navbar-fixed-top:has(.navbar-collapse.in) {
            background:
                radial-gradient(circle at 82% 0%, rgba(98, 54, 232, .32), transparent 36%),
                linear-gradient(135deg, #1b0f48 0%, #281664 58%, #150833 100%) !important;
            border-bottom-color: rgba(255,255,255,.08) !important;
            box-shadow: 0 12px 28px rgba(10, 4, 36, .18) !important;
        }

        .header .navbar .navbar-collapse {
            border-top: 0 !important;
        }

        .header .navbar .nav.navbar-nav {
            background: rgba(27, 15, 72, .96);
            border-radius: 0 0 18px 18px;
            box-shadow: 0 18px 34px rgba(10, 4, 36, .28);
        }

        .header .navbar .navbar-toggle.collapsed,
        .header .navbar .navbar-toggle {
            border-color: rgba(255,255,255,.38) !important;
            background: rgba(255,255,255,.08) !important;
        }

        .header .navbar .navbar-toggle .icon-bar,
        .header .navbar .navbar-toggle.collapsed .icon-bar {
            background-color: #ffffff !important;
        }

        .vm-auth-page {
            padding: 104px 0 96px;
        }

        .vm-auth-title {
            font-size: 40px;
        }

        .vm-auth-copy p {
            font-size: 16px;
        }

        .vm-auth-card-header,
        .vm-auth-form {
            padding-left: 22px;
            padding-right: 22px;
        }

        .vm-register-grid {
            grid-template-columns: 1fr;
        }

        .vm-footer-bottom {
            display: block;
        }

        .vm-footer-links {
            margin-top: 12px;
        }

        header .navbar-brand,
        .navbar .navbar-brand,
        .main-menu .navbar-brand,
        .header .navbar-brand,
        .header-top .navbar-brand {
            min-width: 190px !important;
            background-size: 190px auto !important;
        }

        header .navbar-brand img,
        .navbar .navbar-brand img,
        .main-menu .navbar-brand img,
        .header .navbar-brand img,
        .header-top .navbar-brand img {
            width: 190px !important;
            max-width: 190px !important;
        }
    }

/* Xreference register skin over the copied portal scaffold. */
body.xr-auth-body {
    --vm-purple: #061126;
    --vm-purple-dark: #020713;
    --vm-purple-bright: #1578ff;
    --vm-purple-soft: #eef6ff;
    --vm-green: #2d96ff;
    --vm-ink: #061126;
    --vm-bg: #f4f8fc;
}

body.xr-auth-body .vm-auth-page {
    background:
        radial-gradient(circle at 82% 12%, rgba(45, 150, 255, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(2, 7, 19, 0.96) 0%, rgba(6, 17, 38, 0.86) 52%, rgba(2, 7, 19, 0.62) 100%),
        url('../images/xreference-auth-bg.png') center center / cover no-repeat;
}

body.xr-auth-body .vm-auth-page::after {
    background: var(--vm-bg);
}

body.xr-auth-body .vm-auth-pill {
    letter-spacing: 0;
}

body.xr-auth-body .vm-auth-title {
    font-size: 4.25rem;
    letter-spacing: 0;
}

body.xr-auth-body .vm-auth-card {
    border-color: rgba(125, 180, 255, 0.26);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), 0 0 42px rgba(21, 120, 255, 0.12);
}

body.xr-auth-body .vm-auth-card-header h2 {
    color: #061126;
    letter-spacing: 0;
}

body.xr-auth-body .vm-auth-form .form-control:focus {
    border-color: #1578ff;
    box-shadow: 0 0 0 4px rgba(21, 120, 255, 0.12);
}

body.xr-auth-body .vm-terms-box {
    border-color: #d5e7ff;
    background: #f1f7ff;
    color: #28415f;
}

body.xr-auth-body .vm-terms-box label {
    color: #28415f;
}

body.xr-auth-body .vm-terms-box a,
body.xr-auth-body .vm-auth-links a {
    color: #0b66e8;
}

body.xr-auth-body .vm-auth-submit {
    background: linear-gradient(135deg, #1578ff 0%, #0b4ed8 100%);
    box-shadow: 0 18px 38px rgba(21, 120, 255, 0.25);
}

body.xr-auth-body .vm-auth-submit:hover,
body.xr-auth-body .vm-auth-submit:focus {
    box-shadow: 0 20px 44px rgba(21, 120, 255, 0.34);
}

body.xr-auth-body header .navbar-brand,
body.xr-auth-body .navbar .navbar-brand,
body.xr-auth-body .main-menu .navbar-brand,
body.xr-auth-body .header .navbar-brand,
body.xr-auth-body .header-top .navbar-brand {
    min-width: 0 !important;
    min-height: 0 !important;
    background: none !important;
}

body.xr-auth-body header .navbar-brand img,
body.xr-auth-body .navbar .navbar-brand img,
body.xr-auth-body .main-menu .navbar-brand img,
body.xr-auth-body .header .navbar-brand img,
body.xr-auth-body .header-top .navbar-brand img {
    width: auto !important;
    max-width: 285px !important;
    height: 66px !important;
    opacity: 1 !important;
}

@media (max-width: 991px) {
    body.xr-auth-body .vm-auth-title {
        font-size: 3.35rem;
    }
}

@media (max-width: 767px) {
    body.xr-auth-body .vm-auth-title {
        font-size: 2.55rem;
    }

    body.xr-auth-body header .navbar-brand img,
    body.xr-auth-body .navbar .navbar-brand img,
    body.xr-auth-body .main-menu .navbar-brand img,
    body.xr-auth-body .header .navbar-brand img,
    body.xr-auth-body .header-top .navbar-brand img {
        max-width: 230px !important;
        height: 52px !important;
    }
}

