.vr-social-auth {
    margin: 0 0 1.4rem;
}

.vr-social-auth[hidden] {
    display: none !important;
}

.vr-social-auth-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 2px;
    background: #f5f5f3;
    color: #0a0a0a;
    font: 700 0.8rem/1.2 'Inter', sans-serif;
    letter-spacing: 0.035em;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.vr-social-auth-button:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.vr-social-auth-button:focus-visible,
.vr-password-toggle:focus-visible,
.vr-oauth-action:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.vr-social-auth-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.vr-social-auth-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.vr-social-auth-status {
    min-height: 1.2em;
    margin: 0.55rem 0 0;
    color: #a0a0a0;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
}

.vr-social-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0;
    color: #7d7d83;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.vr-social-auth-divider::before,
.vr-social-auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,0.12);
}

.vr-password-field {
    position: relative;
    width: 100%;
}

.vr-password-field > input {
    width: 100%;
}

/* Keep the control inside the input. The stronger selector and !important
   values intentionally beat the legacy site-wide button treatment. */
.login-box button.vr-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 2px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #8f949c !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
}

.login-box button.vr-password-toggle:hover {
    border: 0 !important;
    background: rgba(255,255,255,0.055) !important;
    color: #ffffff !important;
}

.login-box button.vr-password-toggle:focus-visible {
    outline: 2px solid rgba(255,255,255,0.82) !important;
    outline-offset: -4px !important;
}

.vr-password-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.vr-password-eye-slash {
    opacity: 0;
    transition: opacity 140ms ease;
}

.vr-password-toggle[aria-pressed='true'] .vr-password-eye-slash {
    opacity: 1;
}

#password,
#signupPassword {
    padding-right: 3.65rem;
}

.vr-oauth-page,
.vr-oauth-page * {
    box-sizing: border-box;
}

.vr-oauth-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% -18%, rgba(255,255,255,0.075), transparent 44%),
        #070809;
    color: #f5f5f3;
    font-family: 'Inter', Arial, sans-serif;
}

.vr-oauth-shell {
    position: relative;
    width: min(600px, 100%);
    overflow: hidden;
    padding: clamp(34px, 7vw, 58px);
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(155deg, #111316 0%, #0b0c0f 58%, #08090b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 28px 72px rgba(0,0,0,0.42);
    text-align: center;
}

.vr-oauth-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
    pointer-events: none;
}

.vr-oauth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: clamp(2.4rem, 7vw, 3.5rem);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.vr-oauth-brand img {
    width: 50px;
    height: auto;
}

.vr-oauth-kicker {
    margin: 0 0 0.8rem;
    color: #aeb1b7;
    font: 700 0.64rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.vr-oauth-shell h1 {
    margin: 0;
    color: #ffffff;
    font-family: 'Bebas Neue', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
    font-size: clamp(2.35rem, 9vw, 4.4rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.vr-oauth-copy {
    margin: 1.25rem auto 0;
    max-width: 420px;
    color: #a7abb2;
    font-size: 0.9rem;
    line-height: 1.55;
}

.vr-oauth-progress {
    position: relative;
    width: min(320px, 82%);
    height: 2px;
    overflow: hidden;
    margin: 2rem auto 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
}

.vr-oauth-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #f5f5f3;
    box-shadow: 0 0 10px rgba(255,255,255,0.26);
    animation: vr-oauth-scan 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.vr-oauth-shell[data-state='error'] .vr-oauth-progress {
    display: none;
}

.vr-oauth-actions {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 1.6rem;
}

.vr-oauth-shell[data-state='error'] .vr-oauth-actions {
    display: grid;
}

.vr-oauth-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.34);
    background: transparent;
    color: #ffffff;
    font: 700 0.7rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.vr-oauth-action:first-child {
    background: #f5f5f3;
    color: #0a0a0a;
}

.vr-oauth-support {
    display: none;
    margin: 1.15rem 0 0;
    color: #7f838a;
    font-size: 0.74rem;
    line-height: 1.5;
}

.vr-oauth-shell[data-state='error'] .vr-oauth-support {
    display: block;
}

.vr-oauth-support a {
    color: #cfd1d4;
}

@keyframes vr-oauth-scan {
    from { transform: translateX(-120%); }
    to { transform: translateX(340%); }
}

@media (max-width: 520px) {
    .vr-oauth-page { padding: 12px; }
    .vr-oauth-shell { padding: 34px 20px 38px; }
    .vr-oauth-brand { margin-bottom: 2.8rem; }
    .vr-oauth-copy { max-width: 310px; }
    .vr-oauth-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .vr-oauth-progress span {
        width: 58%;
        animation: none;
    }
    .vr-social-auth-button { transition: none; }
}
