* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.vm-portal-public {
    --portal-tint: #004A97;
    --portal-footer-1: #004A97;
    --portal-footer-2: #05294a;
    --portal-button: var(--portal-footer-1);
    --portal-trim: #f5aa00;
    --portal-background-image: none;
    margin: 0;
    color: #120832;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #f5f8fc;
}

body.vm-portal-default {
    --portal-tint: #281664;
    --portal-footer-1: #281664;
    --portal-footer-2: #1b0f48;
    --portal-button: #6236e8;
    --portal-trim: #35b729;
    background: #f3f1fa;
}

.vm-portal-shell {
    width: 100%;
    min-height: calc(100vh - 58px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(520px, .94fr);
    gap: 0;
    align-items: center;
    padding: 0;
}

.vm-portal-hero {
    min-height: calc(100vh - 58px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 72px min(7vw, 112px) 70px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 74, 151, .92), rgba(0, 74, 151, .92)), #004A97;
}

body.vm-portal-default .vm-portal-hero {
    background: linear-gradient(135deg, #1b0f48 0%, #281664 52%, #3b1790 100%);
}

body.vm-portal-has-background .vm-portal-hero::before,
body.vm-portal-has-background .vm-portal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

body.vm-portal-has-background .vm-portal-hero::before {
    background-image: var(--portal-background-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

body.vm-portal-has-background .vm-portal-hero::after {
    background: var(--portal-tint);
    opacity: .82;
}

body.vm-portal-has-background .vm-portal-hero > * {
    position: relative;
    z-index: 1;
}

.vm-portal-logo {
    display: block;
    width: min(330px, 44vw);
    height: auto;
    margin-bottom: 92px;
}

.vm-portal-kicker {
    display: none;
}

.vm-portal-hero h1 {
    max-width: 640px;
    margin: 22px 0 16px;
    color: #fff;
    font-size: 48px;
    line-height: 1.03;
    font-weight: 900;
}

.vm-portal-hero h1 span {
    display: block;
    margin-bottom: 4px;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 700;
}

.vm-portal-rule {
    width: 78px;
    height: 3px;
    margin: 0 0 24px;
    background: var(--portal-trim);
}

.vm-portal-hero p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    line-height: 1.55;
}

.vm-portal-help-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: clamp(140px, 22vh, 230px);
}

.vm-portal-help-item {
    display: inline-grid;
    grid-template-columns: 42px auto;
    gap: 12px;
    align-items: center;
    min-width: 170px;
    color: #fff;
}

.vm-portal-help-item + .vm-portal-help-item {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .32);
}

.vm-portal-help-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: var(--portal-trim, #f5aa00);
}

.vm-portal-help-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    overflow: visible;
    fill: none;
    color: var(--portal-trim, #f5aa00);
    stroke: var(--portal-trim, #f5aa00);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vm-portal-help-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
}

.vm-portal-panel {
    border: 1px solid rgba(18, 8, 50, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(17, 6, 54, .22);
    padding: 30px;
}

body.vm-portal-default .vm-portal-panel {
    border-color: rgba(40, 22, 100, .14);
    box-shadow: 0 24px 70px rgba(40, 22, 100, .18);
}

.vm-portal-login-panel {
    width: min(430px, calc(100% - 80px));
    justify-self: center;
}

.vm-portal-default-panel {
    width: min(620px, calc(100% - 80px));
    justify-self: center;
}

.vm-portal-signin-mark {
    width: 46px;
    height: 46px;
    position: relative;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    padding: 0;
    border: 2px solid var(--portal-button);
    border-radius: 50%;
    color: var(--portal-button);
    background: transparent;
    font-size: 0;
}

.vm-portal-signin-mark svg {
    display: none;
}

.vm-portal-signin-mark::before,
.vm-portal-signin-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid currentColor;
}

.vm-portal-signin-mark::before {
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.vm-portal-signin-mark::after {
    bottom: 9px;
    width: 22px;
    height: 11px;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
}

.vm-portal-panel-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eee8ff;
    color: #2b1268;
    font-weight: 900;
}

.vm-portal-shop-mark {
    color: #6236e8;
    background: #f3efff;
}

.vm-portal-shop-mark svg {
    width: 28px;
    height: 28px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vm-portal-panel h2 {
    margin: 0 0 10px;
    color: #120832;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 900;
    text-align: center;
}

.vm-portal-panel p,
.vm-portal-panel-copy {
    margin: 0;
    color: #52647d;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.vm-portal-login-panel h2 {
    margin-bottom: 4px;
}

.vm-portal-form {
    margin-top: 24px;
}

.vm-portal-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--portal-button);
    font-size: 13px;
    font-weight: 700;
}

.vm-portal-form input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0 0 14px;
    padding: 0 12px;
    border: 1px solid #c3d0e2;
    border-radius: 6px;
    color: #120832;
    background: #fff;
    font: 600 14px/1.2 "Segoe UI", Arial, Helvetica, sans-serif;
}

.vm-portal-form input:focus {
    outline: 0;
    border-color: var(--portal-trim, #f5aa00);
    box-shadow: 0 0 0 2px rgba(245, 170, 0, .22);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--portal-trim, #f5aa00) 24%, transparent);
}
.vm-portal-code-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0 0 18px;
}

.vm-portal-form input.vm-portal-code-digit {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.vm-portal-2fa-panel {
    width: min(520px, calc(100% - 80px));
    padding: 34px 30px;
}

.vm-portal-2fa-header {
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe7f2;
}

.vm-portal-2fa-header h2 {
    margin-bottom: 6px;
    font-size: 34px;
    line-height: 1.08;
    text-align: left;
}

.vm-portal-2fa-header p {
    text-align: left;
}

.vm-portal-2fa-form {
    margin-top: 0;
}

.vm-portal-2fa-field label {
    text-align: left;
}

.vm-portal-2fa-form button {
    min-height: 54px;
    margin-top: 0;
    font-size: 16px;
}

.vm-portal-2fa-security-note {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    padding: 20px 0;
    border-top: 1px solid #dfe7f2;
    border-bottom: 1px solid #dfe7f2;
}

.vm-portal-2fa-security-note p {
    margin: 0;
    color: #52647d;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.vm-portal-2fa-security-note strong {
    color: #120832;
}

.vm-portal-2fa-note-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #188216;
    background: #def8cf;
    font-size: 13px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", serif;
}

.vm-portal-2fa-links {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding-top: 22px;
}

.vm-portal-2fa-links--solo {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.vm-portal-2fa-links a {
    color: var(--portal-button);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.vm-portal-2fa-links a:hover {
    text-decoration: underline;
}

.vm-portal-password-criteria {
    display: grid;
    gap: 8px;
    margin: 2px 0 18px;
    padding: 0;
    color: #120832;
    font-size: 14px;
    line-height: 1.35;
    list-style: none;
}

.vm-portal-password-criteria li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-portal-password-criteria li::before {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: var(--portal-button);
}

.vm-portal-password-criteria li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: translateY(-62%) rotate(45deg) scale(.7);
}

.vm-portal-password-criteria li.is-met::before {
    background: #35b729;
}

.vm-portal-password-criteria li.is-met::after {
    opacity: 1;
}

.vm-portal-form button,
.vm-portal-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    background: var(--portal-button);
    font: 700 13px/1.2 "Segoe UI", Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.vm-portal-form button:hover,
.vm-portal-button:hover {
    background: var(--portal-button);
    filter: brightness(.92);
}

.vm-portal-alert {
    margin: 18px 0 0;
    padding: 10px 12px;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    background: #fff1f2;
    color: #b42318;
    font: 400 13px/1.35 "Segoe UI", Arial, Helvetica, sans-serif;
}

.vm-portal-alert-success {
    border-color: #86efac;
    background: #ecfdf3;
    color: #087f23;
}

.vm-portal-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 min(7vw, 112px);
    color: rgba(255, 255, 255, .92);
    background: linear-gradient(90deg, var(--portal-footer-1), var(--portal-footer-2));
    font-size: 13px;
}

.vm-portal-footer nav {
    display: inline-flex;
    gap: 26px;
    align-items: center;
}

.vm-portal-footer a {
    color: rgba(255, 255, 255, .94);
    font-weight: 700;
    text-decoration: none;
}

.vm-portal-footer a + a {
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, .36);
}

.vm-portal-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .78);
}

.vm-portal-powered span {
    font-size: 11px;
}

.vm-portal-powered img {
    width: 129px;
    max-height: 33px;
    object-fit: contain;
}

.vm-portal-default-footer {
    background: linear-gradient(90deg, #281664, #1b0f48);
}

@media (max-width: 860px) {
    .vm-portal-shell,
    .vm-portal-shell-login {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 30px;
        padding: 0 0 34px;
    }

    .vm-portal-hero {
        min-height: auto;
        padding: 44px 28px;
    }

    .vm-portal-logo {
        width: 220px;
        margin-bottom: 34px;
    }

    .vm-portal-hero h1 {
        font-size: 40px;
    }

    .vm-portal-hero p {
        font-size: 17px;
    }

    .vm-portal-help-row {
        margin-top: 40px;
    }

    .vm-portal-login-panel {
        width: min(100% - 28px, 430px);
    }

    .vm-portal-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 18px 28px;
    }
}



.vm-portal-dashboard {
    min-height: 100vh;
    display: block;
    background: #edf3fa;
}

.vm-portal-dashboard-topbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(24px, 4vw, 70px);
    color: #fff;
    background: linear-gradient(90deg, var(--portal-footer-1), var(--portal-footer-2));
}

.vm-portal-dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.vm-portal-dashboard-brand img {
    width: auto;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.vm-portal-dashboard-brand span,
.vm-portal-dashboard-topbar nav span {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.vm-portal-dashboard-topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.vm-portal-dashboard-topbar a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.vm-portal-dashboard-main {
    width: min(100% - 48px, 1180px);
    margin: 28px auto;
}

.vm-portal-dashboard-hero,
.vm-portal-dashboard-grid article {
    border: 1px solid #ced9e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(34, 48, 79, .08);
}

.vm-portal-dashboard-hero {
    padding: 28px 30px;
}

.vm-portal-dashboard-kicker {
    margin: 0 0 6px;
    color: var(--portal-button);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vm-portal-dashboard-hero h1 {
    margin: 0 0 6px;
    color: #120832;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
}

.vm-portal-dashboard-hero p {
    margin: 0;
    color: #49617c;
    font-size: 15px;
    font-weight: 600;
}

.vm-portal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.vm-portal-dashboard-grid article {
    min-height: 150px;
    padding: 22px;
}

.vm-portal-dashboard-grid span {
    display: block;
    margin-bottom: 12px;
    color: #506782;
    font-size: 12px;
    font-weight: 900;
}

.vm-portal-dashboard-grid strong {
    display: block;
    color: #120832;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.vm-portal-dashboard-grid p {
    margin: 12px 0 0;
    color: #52647d;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.vm-portal-auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
}

.vm-portal-auth-links a {
    color: var(--portal-button);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.vm-portal-auth-links a + a {
    margin-left: 22px;
    padding-left: 22px;
    border-left: 1px solid #cbd5e1;
}

.vm-portal-auth-links a:hover {
    text-decoration: underline;
}

.vm-portal-back-button {
    gap: 8px;
    margin-top: 22px;
    border-color: #cbd5e1;
    color: #22304a;
    background: #fff;
}

.vm-portal-back-button:hover {
    border-color: var(--portal-button);
    color: var(--portal-button);
    background: #f8fbff;
    filter: none;
}
