:root {
    --vz-auth-bg: #06080c;
    --vz-auth-panel: #080c12;
    --vz-auth-card: #0d131c;
    --vz-auth-card-soft: #111927;
    --vz-auth-line: rgba(255, 255, 255, .11);
    --vz-auth-muted: #8994a5;
    --vz-auth-text: #f7f8fb;
}

html,
body {
    height: auto;
    min-height: 100%;
    background: var(--vz-auth-bg);
}

body {
    margin: 0;
    color: var(--vz-auth-text);
    overflow-x: hidden;
    overflow-y: auto;
}

.vz-auth-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr);
    background: var(--vz-auth-bg);
}

.vz-auth-visual {
    position: sticky;
    top: 0;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(28px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(var(--primary-rgb), .16);
    background: #080b10;
}

.vz-auth-visual-image,
.vz-auth-visual::before,
.vz-auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vz-auth-visual-image {
    z-index: -3;
    background: url('/assets/images/auth/vexuspay-auth-hero-v1.webp') center center / cover no-repeat;
    transform: scale(1.015);
}

.vz-auth-visual::before {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(4, 7, 11, .88) 0%, rgba(5, 8, 13, .52) 52%, rgba(5, 8, 13, .18) 100%),
        linear-gradient(0deg, rgba(5, 8, 13, .92) 0%, rgba(5, 8, 13, .08) 54%, rgba(5, 8, 13, .34) 100%);
}

.vz-auth-visual::after {
    z-index: -1;
    background:
        radial-gradient(circle at 28% 70%, rgba(var(--primary-rgb), .13), transparent 32%),
        linear-gradient(180deg, transparent 62%, rgba(5, 8, 13, .72));
}

.vz-auth-brand {
    align-self: flex-start;
    min-width: 0;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vz-auth-brand img {
    display: block;
    width: 150px;
    max-height: 45px;
    object-fit: contain;
    transform: scale(var(--brand-logo-scale, 1));
}

.vz-auth-hero-copy {
    width: min(620px, 86%);
    margin: auto 0 clamp(92px, 14vh, 150px);
}

.vz-auth-eyebrow,
.vz-form-eyebrow {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.vz-auth-hero-copy h1 {
    max-width: 610px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 67px);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.vz-auth-hero-copy p {
    max-width: 570px;
    margin: 0;
    color: rgba(241, 245, 249, .76);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.65;
}

.vz-auth-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.vz-auth-capabilities span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 37px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    background: rgba(7, 10, 15, .56);
    color: #dce2eb;
    font-size: 11px;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.vz-auth-capabilities i {
    color: var(--green);
    font-size: 15px;
}

.vz-auth-secure-note {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(var(--primary-rgb), .2);
    border-radius: 9px;
    background: rgba(8, 12, 17, .72);
    color: #dce3eb;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.vz-auth-secure-note i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .1), 0 0 14px rgba(var(--primary-rgb), .55);
}

.vz-auth-panel {
    position: relative;
    min-width: 0;
    min-height: 100svh;
    padding: 34px clamp(28px, 4vw, 70px) 28px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 75% 28%, rgba(var(--primary-rgb), .045), transparent 30%),
        var(--vz-auth-panel);
}

.vz-auth-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b6c0ce;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.vz-auth-back:hover {
    color: var(--green);
    transform: translateX(-2px);
}

.vz-auth-panel-inner {
    width: 100%;
    flex: 1;
    display: grid;
    place-items: center;
    padding: 54px 0 34px;
}

.vz-card {
    width: min(100%, 470px);
    max-width: none;
    padding: clamp(27px, 3vw, 38px);
    border: 1px solid rgba(var(--primary-rgb), .2);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 23, 34, .98), rgba(11, 16, 24, .98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: none;
    animation: vzAuthCardIn .45s ease both;
}

.vz-auth-register .vz-card {
    width: min(100%, 680px);
}

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

.vz-card-header {
    margin-bottom: 26px;
}

.vz-title {
    margin: 8px 0 7px;
    color: var(--vz-auth-text);
    font-size: clamp(29px, 2.4vw, 38px);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-align: left;
}

.vz-sub {
    margin: 0;
    color: var(--vz-auth-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.vz-field {
    display: block;
    position: relative;
    margin: 0 0 16px;
}

.vz-field-label {
    display: block;
    margin-bottom: 8px;
    color: #c4ccd7;
    font-size: 11px;
    font-weight: 750;
}

.vz-field-control {
    display: block;
    position: relative;
}

.vz-field .field-icon {
    left: 15px;
    color: #707c8c;
}

.vz-input {
    height: 50px;
    padding: 0 46px 0 42px;
    border: 1px solid #28364a;
    border-radius: 10px;
    background: #0c131e;
    color: #f7f9fc;
    font-size: 13px;
    font-weight: 580;
    box-shadow: none;
}

.vz-input::placeholder {
    color: #697789;
}

.vz-input:hover {
    border-color: #394a61;
}

.vz-input:focus {
    border-color: var(--green);
    background: #0d1521;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}

.vz-eye {
    right: 7px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #2a3748;
    border-radius: 8px;
    background: #151d29;
    color: #9aa6b5;
}

.vz-eye:hover {
    border-color: rgba(var(--primary-rgb), .45);
    color: var(--green);
}

.vz-row-opts {
    margin: 3px 0 20px;
}

.vz-remember label,
.vz-forgot,
.vz-check label {
    color: #8f9aaa;
    font-size: 10px;
}

.vz-remember input,
.vz-check input {
    accent-color: var(--green);
}

.vz-forgot {
    color: var(--green);
    font-weight: 700;
}

.btn-vz-primary,
.btn-vz-outline {
    min-height: 49px;
    border-radius: 10px;
}

.btn-vz-primary {
    border: 0;
    background: linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 76%, #7656ff));
    color: #160d19;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    box-shadow: 0 15px 34px rgba(var(--primary-rgb), .17);
}

.btn-vz-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 18px 42px rgba(var(--primary-rgb), .27);
}

.btn-vz-primary:disabled {
    cursor: wait;
    filter: grayscale(.35);
    opacity: .7;
}

.btn-vz-outline {
    border: 1px solid var(--vz-auth-line);
    background: transparent;
    color: #b7c0cd;
    font-size: 12px;
}

.vz-footer-text {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--vz-auth-line);
    color: #8692a2;
    font-size: 11px;
}

.vz-footer-text a,
.vz-check label a {
    color: var(--green);
    font-weight: 750;
}

.vz-panel-security {
    margin: 0;
    color: #707c8d;
    font-size: 9px;
    text-align: center;
}

.vz-panel-security i {
    margin-right: 5px;
    color: var(--green);
}

.cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

.vz-auth-register #step-1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 13px;
}

.vz-auth-register .vz-field-wide,
.vz-auth-register .vz-check,
.vz-auth-register .cf-turnstile,
.vz-auth-register .btn-vz-primary,
.vz-auth-register .btn-vz-outline {
    grid-column: 1 / -1;
}

.vz-auth-register .vz-check {
    margin: 2px 0 17px;
}

.vz-referral {
    margin-bottom: 16px;
}

.vz-auth-tools {
    top: 18px;
    right: 18px;
    border-color: var(--vz-auth-line);
    background: rgba(13, 18, 27, .92);
}

html.auth-light {
    --vz-auth-bg: #eef1f4;
    --vz-auth-panel: #f6f7f9;
    --vz-auth-card: #fff;
    --vz-auth-card-soft: #f7f8fa;
    --vz-auth-line: rgba(19, 29, 43, .11);
    --vz-auth-muted: #687485;
    --vz-auth-text: #111722;
}

html.auth-light .vz-auth-panel {
    background: #f4f6f8;
}

html.auth-light .vz-card {
    border-color: rgba(var(--primary-rgb), .23);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 65px rgba(31, 39, 52, .12);
}

html.auth-light .vz-field > span {
    color: #303a48;
}

html.auth-light .vz-input {
    border-color: #d7dce4;
    background: #f8f9fb;
    color: #121722;
}

html.auth-light .vz-eye {
    border-color: #d7dce4;
    background: #fff;
    color: #596576;
}

html.auth-light .vz-auth-back,
html.auth-light .vz-remember label,
html.auth-light .vz-check label {
    color: #596576;
}

@media (max-width: 1050px) {
    .vz-auth-shell {
        grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
    }

    .vz-auth-hero-copy {
        width: 94%;
    }
}

@media (max-width: 820px) {
    .vz-auth-shell {
        display: block;
    }

    .vz-auth-visual {
        position: relative;
        min-height: 330px;
        height: 44svh;
        max-height: 470px;
        padding: 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(var(--primary-rgb), .16);
    }

    .vz-auth-visual-image {
        background-position: 66% 50%;
    }

    .vz-auth-visual::before {
        background:
            linear-gradient(90deg, rgba(4, 7, 11, .9) 0%, rgba(5, 8, 13, .42) 70%, rgba(5, 8, 13, .22) 100%),
            linear-gradient(0deg, rgba(5, 8, 13, .91) 0%, transparent 72%);
    }

    .vz-auth-brand {
        min-width: 0;
        min-height: 0;
        padding: 0;
        border-radius: 0;
    }

    .vz-auth-brand img {
        width: 122px;
        max-height: 36px;
    }

    .vz-auth-hero-copy {
        width: min(92%, 520px);
        margin: auto 0 20px;
    }

    .vz-auth-hero-copy h1 {
        max-width: 460px;
        margin: 10px 0 9px;
        font-size: clamp(31px, 8.2vw, 43px);
    }

    .vz-auth-hero-copy p {
        max-width: 470px;
        font-size: 13px;
        line-height: 1.5;
    }

    .vz-auth-capabilities,
    .vz-auth-secure-note {
        display: none;
    }

    .vz-auth-panel {
        min-height: auto;
        padding: 22px 14px 25px;
    }

    .vz-auth-panel-inner {
        flex: none;
        display: block;
        padding: 25px 0;
    }

    .vz-card,
    .vz-auth-register .vz-card {
        width: 100%;
        margin-inline: auto;
        padding: 24px 22px;
        border-radius: 14px;
    }

    .vz-auth-tools {
        position: absolute;
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 560px) {
    .vz-auth-visual {
        min-height: 315px;
        height: 40svh;
        padding: 20px;
    }

    .vz-auth-hero-copy {
        margin-bottom: 13px;
    }

    .vz-auth-eyebrow {
        font-size: 9px;
    }

    .vz-auth-hero-copy h1 {
        font-size: clamp(29px, 9vw, 38px);
    }

    .vz-auth-panel {
        padding-inline: 13px;
    }

    .vz-auth-register #step-1 {
        grid-template-columns: 1fr;
    }

    .vz-auth-register .vz-field,
    .vz-auth-register .vz-field-wide,
    .vz-auth-register .vz-check,
    .vz-auth-register .cf-turnstile,
    .vz-auth-register .btn-vz-primary,
    .vz-auth-register .btn-vz-outline {
        grid-column: 1;
    }

    .vz-card,
    .vz-auth-register .vz-card {
        padding: 23px 22px;
    }

    .vz-title {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vz-card,
    .vz-auth-back,
    .btn-vz-primary {
        animation: none;
        transition: none;
    }
}
