:root {
            color-scheme: light;
            --vb-black: #000000;
            --vb-black-2: #0b0b0b;
            --vb-black-3: #171717;
            --vb-white: #ffffff;
            --vb-yellow: #ffca05;
            --vb-ink: #151515;
            --vb-muted: #747474;
            --vb-line: #e8e8e8;
            --vb-soft: #f6f6f6;
            --vb-danger: #b42318;
            --vb-danger-bg: #fff1f0;
            --mouse-x: 50%;
            --mouse-y: 50%;
            --shift-x: 0px;
            --shift-y: 0px;
        }

        * { box-sizing: border-box; }
        html, body { min-height: 100%; margin: 0; }
        body {
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--vb-black);
            color: var(--vb-ink);
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }
        a { color: inherit; }
        button, input { font: inherit; }

        .page {
            min-height: 100vh;
            min-height: 100dvh;
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
            background: var(--vb-white);
        }

        .brand {
            position: relative;
            overflow: hidden;
            isolation: isolate;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: clamp(42px, 5.6vw, 92px);
            background: #000;
            color: var(--vb-white);
        }

        .brand::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 4px;
            z-index: 5;
            background: linear-gradient(90deg, var(--vb-yellow), rgba(255,202,5,.25) 55%, transparent);
        }

        .v-stage {
            position: absolute;
            z-index: -2;
            width: min(70vw, 840px);
            aspect-ratio: 1;
            right: clamp(-250px, -14vw, -110px);
            top: 50%;
            transform: translate3d(var(--shift-x), calc(-50% + var(--shift-y)), 0) rotate(-5deg);
            opacity: .48;
            pointer-events: none;
            mix-blend-mode: screen;
            filter: none;
            animation: vbFloat 15s ease-in-out infinite;
        }

        .v-stage img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .brand-top, .brand-copy, .brand-foot { position: relative; z-index: 2; }

        .brand-top {
            position: absolute;
            top: clamp(42px, 5.6vw, 92px);
            left: clamp(42px, 5.6vw, 92px);
            right: clamp(42px, 5.6vw, 92px);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 24px;
        }

        .brand-tag {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #d8d8d8;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .13em;
            text-transform: uppercase;
        }
        .brand-tag::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--vb-yellow);
            box-shadow: 0 0 0 6px rgba(255,202,5,.10), 0 0 24px rgba(255,202,5,.45);
            animation: statusPulse 2.8s ease-in-out infinite;
        }

        .brand-version {
            color: #777;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .brand-copy {
            max-width: 720px;
            margin-top: 1vh;
        }
        .eyebrow {
            display: block;
            color: var(--vb-yellow);
            font-size: 13px;
            font-weight: 900;
            letter-spacing: .15em;
            text-transform: uppercase;
            margin-bottom: 22px;
        }
        .brand h1 {
            max-width: 760px;
            margin: 0 0 28px;
            font-size: clamp(48px, 5.3vw, 82px);
            line-height: .95;
            letter-spacing: -.06em;
            font-weight: 820;
        }
        .brand p {
            max-width: 600px;
            margin: 0;
            color: #bdbdbd;
            font-size: clamp(16px, 1.25vw, 19px);
            line-height: 1.7;
        }
        .brand p strong { color: #fff; font-weight: 650; }

        .brand-foot {
            position: absolute !important;
            left: clamp(42px, 5.6vw, 92px);
            bottom: clamp(32px, 4vw, 64px);
        }
        .brand-foot a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #8e8e8e;
            font-size: 12px;
            letter-spacing: .035em;
            transition: color .2s ease, transform .2s ease;
        }
        .brand-foot a:hover { color: var(--vb-yellow); transform: translateX(2px); }
        .brand-foot a:focus-visible { outline: 2px solid var(--vb-yellow); outline-offset: 6px; border-radius: 4px; }
        .external-arrow { transition: transform .2s ease; }
        .brand-foot a:hover .external-arrow { transform: translate(2px,-2px); }

        .access {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(28px, 5vw, 78px);
            overflow: visible;
            background:
                radial-gradient(circle at 85% 10%, rgba(255,202,5,.08), transparent 22%),
                linear-gradient(145deg, #fff 0%, #fafafa 55%, #f2f2f2 100%);
        }
        .access::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0,0,0,.025), transparent 22%);
        }

        .card {
            position: relative;
            z-index: 1;
            width: min(100%, 540px);
            padding: clamp(30px, 4vw, 48px);
            background: rgba(255,255,255,.92);
            border: 1px solid rgba(0,0,0,.065);
            border-radius: 28px;
            box-shadow: 0 28px 90px rgba(0,0,0,.10), 0 2px 5px rgba(0,0,0,.03);
            backdrop-filter: blur(18px);
            animation: cardIn .7s cubic-bezier(.22,1,.36,1) both;
        }

        .card::before {
            content: "";
            position: absolute;
            left: 28px;
            right: 28px;
            top: 0;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent, var(--vb-yellow), transparent);
            opacity: .72;
        }

        .logo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 42px;
        }
        .logo {
            display: block;
            width: min(235px, 62%);
            height: auto;
        }
        .secure {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #646464;
            font-size: 10.5px;
            font-weight: 800;
            white-space: nowrap;
            letter-spacing: .02em;
        }
        .secure-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--vb-yellow);
            box-shadow: 0 0 0 5px rgba(255,202,5,.13);
            animation: statusPulse 2.8s ease-in-out infinite;
        }

        .accent-line {
            width: 42px;
            height: 4px;
            margin: 0 0 22px;
            border-radius: 999px;
            background: var(--vb-yellow);
        }
        h2 {
            margin: 0 0 9px;
            font-size: 32px;
            line-height: 1.12;
            letter-spacing: -.04em;
            font-weight: 800;
        }
        .subtitle {
            margin: 0 0 30px;
            color: var(--vb-muted);
            font-size: 14px;
            line-height: 1.6;
        }

        .error {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin-bottom: 20px;
            padding: 13px 14px;
            border: 1px solid #fecdca;
            border-radius: 13px;
            background: var(--vb-danger-bg);
            color: var(--vb-danger);
            font-size: 13px;
            line-height: 1.45;
        }
        .error svg { flex: 0 0 auto; margin-top: 1px; }

        .field { margin-bottom: 18px; }
        .field-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 8px;
        }
        .field label {
            display: block;
            margin: 0;
            color: #3d3d3d;
            font-size: 11.5px;
            font-weight: 850;
            letter-spacing: .045em;
            text-transform: uppercase;
        }
        .forgot {
            color: #5a5a5a;
            font-size: 12px;
            font-weight: 650;
            text-decoration: none;
            transition: color .18s ease;
        }
        .forgot:hover { color: #000; text-decoration: underline; text-decoration-color: var(--vb-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
        .forgot:focus-visible { outline: 2px solid var(--vb-yellow); outline-offset: 4px; border-radius: 3px; }

        .control { position: relative; }
        .control input {
            width: 100%;
            height: 56px;
            padding: 0 16px;
            border: 1px solid var(--vb-line);
            border-radius: 14px;
            background: #fff;
            color: var(--vb-ink);
            font-size: 15px;
            outline: none;
            transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
        }
        .control input:hover { border-color: #d1d1d1; }
        .control input:focus {
            border-color: #b8a55c;
            box-shadow: 0 0 0 4px rgba(255,202,5,.18);
        }
        .control input[type="password"], .control input[type="text"].password-visible { padding-right: 52px; }

        .toggle {
            position: absolute;
            top: 50%;
            right: 9px;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 10px;
            background: transparent;
            color: #6c6c6c;
            cursor: pointer;
            transition: background .18s ease, color .18s ease;
        }
        .toggle:hover { background: #f4f4f4; color: #000; }
        .toggle:focus-visible { outline: 2px solid var(--vb-yellow); outline-offset: 2px; }
        .toggle svg { width: 18px; height: 18px; }
        .toggle svg[hidden] { display: none; }

        .caps {
            display: none;
            align-items: center;
            gap: 7px;
            margin-top: 8px;
            color: #7a6200;
            font-size: 11.5px;
            font-weight: 650;
        }
        .caps.visible { display: flex; }
        .caps svg { width: 14px; height: 14px; }

        .captcha { display: flex; justify-content: center; margin: 2px 0 17px; }

        .submit {
            position: relative;
            width: 100%;
            height: 56px;
            margin-top: 5px;
            overflow: hidden;
            border: 0;
            border-radius: 14px;
            background: #000;
            color: #fff;
            font-size: 14px;
            font-weight: 850;
            letter-spacing: .015em;
            cursor: pointer;
            box-shadow: 0 12px 28px rgba(0,0,0,.19);
            transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
        }
        .submit::before {
            content: "";
            position: absolute;
            inset: 0;
            transform: translateX(-120%);
            background: linear-gradient(100deg, transparent 20%, rgba(255,202,5,.24) 50%, transparent 80%);
            transition: transform .55s ease;
        }
        .submit:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(0,0,0,.24); }
        .submit:hover::before { transform: translateX(120%); }
        .submit:active { transform: translateY(0); }
        .submit:focus-visible { outline: 3px solid rgba(255,202,5,.62); outline-offset: 3px; }
        .submit:disabled { opacity: .72; cursor: wait; transform: none; }
        .submit-inner { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
        .spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,.4);
            border-top-color: var(--vb-yellow);
            border-radius: 50%;
            animation: spin .7s linear infinite;
        }
        .submit.loading .spinner { display: inline-block; }

        .alt-auth { margin-top: 28px; }
        .divider {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 14px;
            margin: 0 0 16px;
            color: #9a9a9a;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .035em;
            text-transform: uppercase;
        }
        .divider::before, .divider::after { content: ""; height: 1px; background: #ececec; }

        .providers {
            display: grid;
            grid-template-columns: repeat(3, minmax(0,1fr));
            gap: 10px;
        }
        .provider {
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            padding: 0 12px;
            border: 1px solid #e5e5e5;
            border-radius: 13px;
            background: #fff;
            color: #252525;
            font-size: 12.5px;
            font-weight: 750;
            text-decoration: none;
            transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
        }
        .provider:hover { border-color: #c9c9c9; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
        .provider:focus-visible { outline: 2px solid var(--vb-yellow); outline-offset: 2px; }
        .provider svg { width: 18px; height: 18px; flex: 0 0 auto; }
        .provider.passkey { grid-column: 1 / -1; }

        .account-note {
            margin-top: 16px;
            color: #999;
            font-size: 10.5px;
            line-height: 1.5;
            text-align: center;
        }

        .virtua {
            margin-top: 28px;
            padding-top: 20px;
            border-top: 1px solid #ededed;
            text-align: center;
            color: #aaa;
            font-size: 11px;
        }
        .virtua a {
            color: #777;
            font-weight: 700;
            text-decoration: none;
            transition: color .18s ease;
        }
        .virtua a:hover { color: #000; }
        .virtua a:focus-visible { outline: 2px solid var(--vb-yellow); outline-offset: 4px; border-radius: 3px; }

        @keyframes vbFloat {
            0%,100% { transform: translate3d(var(--shift-x), var(--shift-y), 0) rotate(-6deg) scale(1); }
            50% { transform: translate3d(calc(var(--shift-x) - 10px), calc(var(--shift-y) + 14px), 0) rotate(-4deg) scale(1.025); }
        }
        @keyframes glowPulse { 0%,100% { opacity:.55; transform:scale(.95); } 50% { opacity:1; transform:scale(1.08); } }
        @keyframes sweep { 0%,20% { left:-60%; opacity:0; } 45% { opacity:1; } 70%,100% { left:130%; opacity:0; } }
        @keyframes statusPulse { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(.82); opacity:.65; } }
        @keyframes cardIn { from { opacity:0; transform:translateY(14px) scale(.985); } to { opacity:1; transform:none; } }
        @keyframes spin { to { transform:rotate(360deg); } }

        @media (max-width: 1080px) {
            .page { grid-template-columns: minmax(0,.95fr) minmax(430px,1.05fr); }
            .brand { padding: 48px; }
            .brand h1 { font-size: clamp(44px,5vw,64px); }
        }

        @media (max-width: 940px) {
            .page { grid-template-columns: 1fr; background:#f5f5f5; }
            .brand { display: none; }
            .access { min-height:100vh; min-height:100dvh; padding:24px; }
            .card { padding:32px; border-radius:22px; box-shadow:0 18px 54px rgba(0,0,0,.09); }
        }

        @media (max-width: 540px) {
            .access { padding:14px; align-items:center; }
            .card { padding:27px 21px 24px; border-radius:20px; }
            .logo-row { margin-bottom:34px; }
            .logo { width:min(210px,62%); }
            .secure { font-size:9.5px; }
            h2 { font-size:28px; }
            .control input, .submit { height:54px; }
            .providers { grid-template-columns:1fr; }
            .provider.passkey { grid-column:auto; }
        }

        /* Ajusta espaços à altura disponível sem reduzir o zoom ou cortar campos. */
        @media (min-width: 941px) and (max-height: 850px) {
            .access { padding: 20px 32px; }
            .card { padding: 28px 36px; }
            .brand { padding: 44px; }
            .brand h1 { font-size: clamp(44px, 4.5vw, 68px); }
            .logo-row { margin-bottom: 22px; }
            .accent-line { margin-bottom: 16px; }
            .subtitle { margin-bottom: 20px; }
            .field { margin-bottom: 14px; }
            .control input, .submit { height: 48px; }
            .alt-auth { margin-top: 18px; }
            .provider { min-height: 44px; }
            .account-note { margin-top: 12px; }
            .virtua { margin-top: 18px; padding-top: 14px; }
        }
        @media (max-width: 940px) and (max-height: 740px) {
            .access { padding: 10px; }
            .card { padding: 20px; }
            .logo-row { margin-bottom: 18px; gap: 12px; }
            .accent-line { margin-bottom: 14px; }
            .subtitle { margin-bottom: 18px; }
            .field { margin-bottom: 12px; }
            .control input, .submit { height: 48px; }
            .alt-auth { margin-top: 16px; }
            .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .provider { min-height: 44px; }
            .account-note { margin-top: 10px; }
            .virtua { margin-top: 14px; padding-top: 12px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                scroll-behavior: auto !important;
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
            }
        }


/* Componentes internos. O shell acima é exatamente o mesmo da index. */
.auth-content .auth-field { margin-bottom: 20px; }

.auth-content .auth-field > label,
.auth-content .password-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #3e3e3e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.auth-content .auth-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--vb-line);
    border-radius: 14px;
    background: #fff;
    color: var(--vb-ink);
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-content .auth-input:hover { border-color: #d2d2d2; }
.auth-content .auth-input:focus {
    border-color: var(--vb-yellow);
    box-shadow: 0 0 0 4px rgba(255,202,5,.16);
}

.auth-primary {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: #000;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
    transition: transform .18s ease, opacity .18s ease;
}
.auth-primary:hover { transform: translateY(-1px); }
.auth-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.auth-secondary-wrap {
    margin-top: 22px;
    text-align: center;
}
.auth-secondary-link,
.auth-secondary-link:visited {
    position: relative;
    display: inline-flex;
    color: #8e8e8e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    transition: color .18s ease;
}
.auth-secondary-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    border-radius: 999px;
    background: var(--vb-yellow);
    transition: right .18s ease;
}
.auth-secondary-link:hover,
.auth-secondary-link:focus-visible { color: #000; }
.auth-secondary-link:hover::after,
.auth-secondary-link:focus-visible::after { right: 0; }

.auth-alert {
    margin: 0 0 20px;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.45;
}
.auth-alert.error {
    border: 1px solid #fecdca;
    background: var(--vb-danger-bg);
    color: var(--vb-danger);
}
.auth-alert.success {
    border: 1px solid #d8e4d8;
    background: #f4f8f4;
    color: #305030;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}
.password-label-row label { margin: 0 !important; }

.password-generate,
.auth-copy-button {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    color: #8e8e8e;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.password-generate::after,
.auth-copy-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--vb-yellow);
    border-radius: 999px;
    transition: right .18s ease;
}
.password-generate:hover,
.password-generate:focus-visible,
.auth-copy-button:hover,
.auth-copy-button:focus-visible { color: #000; }
.password-generate:hover::after,
.password-generate:focus-visible::after,
.auth-copy-button:hover::after,
.auth-copy-button:focus-visible::after { right: 0; }

.password-control { position: relative; }
.password-control .auth-input { padding-right: 54px; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #747474;
    cursor: pointer;
}
.password-toggle:hover { color: #000; background: #f5f5f5; }
.password-toggle svg { width: 20px; height: 20px; }

.password-strength { margin-top: 12px; }
.password-strength-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8a8a8a;
    font-size: 11px;
}
.password-strength-head strong { color: #232323; }

.password-meter {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5px;
    margin-top: 8px;
}
.password-meter span {
    height: 4px;
    border-radius: 999px;
    background: #e9e9e9;
}
.password-meter[data-score="1"] span:nth-child(-n+1),
.password-meter[data-score="2"] span:nth-child(-n+2),
.password-meter[data-score="3"] span:nth-child(-n+3),
.password-meter[data-score="4"] span:nth-child(-n+4) { background: var(--vb-yellow); }

.password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
    color: #888;
    font-size: 10.5px;
}
.password-rules li { position: relative; padding-left: 16px; }
.password-rules li::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: #bbb;
}
.password-rules li.ok { color: #333; }
.password-rules li.ok::before {
    content: "✓";
    left: 0;
    color: #000;
    font-weight: 800;
}

.password-match {
    min-height: 17px;
    margin-top: 7px;
    color: #888;
    font-size: 10.5px;
}
.password-match.ok { color: #333; }
.password-match.bad { color: #b42318; }

@media(max-width:500px) {
    .password-rules { grid-template-columns: 1fr; }
}


/* Login persistente */
.remember-row{display:flex;align-items:flex-start;gap:10px;margin:2px 0 16px;cursor:pointer;user-select:none;color:#313131}.remember-row>input{position:absolute;opacity:0;pointer-events:none}.remember-box{width:20px;height:20px;flex:0 0 20px;border:1.5px solid #c8c8c8;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;margin-top:1px;transition:.18s ease}.remember-box svg{width:14px;height:14px;color:#171717;opacity:0;transform:scale(.7);transition:.18s ease}.remember-row>input:checked+.remember-box{background:#ffca05;border-color:#ffca05}.remember-row>input:checked+.remember-box svg{opacity:1;transform:scale(1)}.remember-row>input:focus-visible+.remember-box{outline:3px solid rgba(255,202,5,.24);outline-offset:2px}.remember-row strong{display:block;font-size:13px;line-height:1.25;font-weight:700}.remember-row small{display:block;margin-top:2px;font-size:11px;line-height:1.35;color:#777}
