:root {
    --vb-navy: #23364d;
    --vb-navy-deep: #18283d;
    --vb-slate: #5e7f99;
    --vb-sage: #9fc1b2;
    --vb-gold: #f4c64f;
    --vb-gold-deep: #d9a72f;
    --vb-ivory: #f8f5ef;
    --vb-paper: #fffdf9;
    --vb-ink: #253043;
    --vb-muted: #687384;
    --vb-line: #dfe5e2;
    --vb-danger: #a84d49;
    --vb-success: #3e7864;
    --vb-shadow: 0 28px 70px rgba(26, 43, 64, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--vb-ivory);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--vb-ink);
    background: var(--vb-ivory);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.vb-skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--vb-navy-deep);
    border-radius: 0.5rem;
    transform: translateY(-200%);
}

.vb-skip-link:focus {
    transform: translateY(0);
}

.vb-auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
}

.vb-story-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: 100vh;
    padding: clamp(2rem, 4.5vw, 5.25rem);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(35, 54, 77, 0.98), rgba(24, 40, 61, 0.99)),
        var(--vb-navy-deep);
}

.vb-story-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.vb-story-glow {
    position: absolute;
    z-index: -1;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
}

.vb-story-glow-one {
    top: -18rem;
    right: -12rem;
    background: radial-gradient(circle, rgba(159, 193, 178, 0.26), transparent 68%);
}

.vb-story-glow-two {
    bottom: -22rem;
    left: -11rem;
    background: radial-gradient(circle, rgba(244, 198, 79, 0.2), transparent 70%);
}

.vb-story-inner {
    width: min(100%, 780px);
    margin: auto;
}

.vb-logo-crop {
    display: block;
    width: 164px;
    aspect-ratio: 1278 / 640;
    overflow: hidden;
}

.vb-logo-crop img {
    display: block;
    width: 100%;
    height: auto;
}

.vb-logo-crop-light {
    width: 148px;
    margin-bottom: clamp(3rem, 9vh, 7rem);
    border-radius: 0.15rem;
}

.vb-logo-crop-light img {
    transform: translateY(-50%);
}

.vb-story-copy {
    max-width: 690px;
}

.vb-eyebrow,
.vb-login-kicker {
    margin: 0 0 1rem;
    color: var(--vb-gold);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vb-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.vb-lock-mark {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    color: var(--vb-navy-deep);
    background: var(--vb-gold);
    border-radius: 50%;
}

.vb-lock-mark svg {
    width: 0.92rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vb-story-copy h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 5.2vw, 5.25rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.vb-story-lead {
    max-width: 610px;
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.75;
}

.vb-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2.25rem);
    margin-top: clamp(2.75rem, 6vh, 4.5rem);
}

.vb-principle {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.vb-principle > span {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--vb-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.vb-principle p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.83rem;
    line-height: 1.65;
}

.vb-principle strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
    font-weight: 650;
}

.vb-timeline-preview {
    position: relative;
    height: 5.25rem;
    margin-top: clamp(3rem, 7vh, 5.25rem);
}

.vb-timeline-line {
    position: absolute;
    top: 1.15rem;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--vb-sage), rgba(159, 193, 178, 0.15));
}

.vb-timeline-dot {
    position: absolute;
    top: 0.86rem;
    width: 0.62rem;
    height: 0.62rem;
    background: var(--vb-gold);
    border: 2px solid var(--vb-navy-deep);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(244, 198, 79, 0.18);
}

.vb-dot-one,
.vb-note-one {
    left: 8%;
}

.vb-dot-two,
.vb-note-two {
    left: 45%;
}

.vb-dot-three,
.vb-note-three {
    left: 78%;
}

.vb-timeline-note {
    position: absolute;
    top: 2.15rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateX(-0.15rem);
}

.vb-story-panel blockquote {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-style: italic;
}

.vb-login-panel {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1.5rem, 4vw, 4.5rem);
    background:
        radial-gradient(circle at 85% 5%, rgba(159, 193, 178, 0.2), transparent 26rem),
        var(--vb-ivory);
}

.vb-login-inner {
    display: flex;
    width: min(100%, 470px);
    margin: auto;
    flex-direction: column;
}

.vb-login-card {
    padding: clamp(2rem, 4.2vw, 3.75rem);
    background: rgba(255, 253, 249, 0.94);
    border: 1px solid rgba(35, 54, 77, 0.08);
    border-radius: 1.35rem;
    box-shadow: var(--vb-shadow);
    backdrop-filter: blur(12px);
}

.vb-mobile-logo {
    display: none;
    margin-bottom: 2.25rem;
}

.vb-login-kicker {
    color: var(--vb-slate);
}

.vb-login-card h2 {
    margin: 0;
    color: var(--vb-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
}

.vb-login-intro {
    margin: 1rem 0 0;
    color: var(--vb-muted);
    line-height: 1.65;
}

.vb-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid currentColor;
    border-radius: 0.75rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.vb-alert-error {
    color: var(--vb-danger);
    background: rgba(168, 77, 73, 0.055);
}

.vb-alert-success {
    color: var(--vb-success);
    background: rgba(62, 120, 100, 0.07);
}

.vb-alert-mark {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.3rem;
    background: currentColor;
    border-radius: 50%;
    flex: 0 0 auto;
}

.vb-login-form {
    margin-top: 2.25rem;
}

.vb-field + .vb-field {
    margin-top: 1.15rem;
}

.vb-field label {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--vb-navy-deep);
    font-size: 0.86rem;
    font-weight: 700;
}

.vb-field input,
.vb-field textarea {
    width: 100%;
    min-height: 3.45rem;
    padding: 0.85rem 1rem;
    color: var(--vb-ink);
    background: #fff;
    border: 1px solid #cfd8d7;
    border-radius: 0.7rem;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.vb-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.vb-field input::placeholder,
.vb-field textarea::placeholder {
    color: #9aa3ae;
}

.vb-field input:hover,
.vb-field textarea:hover {
    border-color: #aebdba;
}

.vb-field input:focus,
.vb-field textarea:focus {
    border-color: var(--vb-slate);
    box-shadow: 0 0 0 4px rgba(94, 127, 153, 0.14);
}

.vb-password-field {
    position: relative;
}

.vb-password-field input {
    padding-right: 5.25rem;
}

.vb-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: inline-flex;
    min-height: 2.4rem;
    padding: 0 0.6rem;
    align-items: center;
    gap: 0.35rem;
    color: var(--vb-slate);
    background: transparent;
    border: 0;
    border-radius: 0.45rem;
    font-size: 0.76rem;
    font-weight: 750;
    transform: translateY(-50%);
}

.vb-password-toggle:hover {
    color: var(--vb-navy-deep);
    background: rgba(94, 127, 153, 0.08);
}

.vb-password-toggle:focus-visible,
.vb-submit:focus-visible,
.vb-help-link a:focus-visible {
    outline: 3px solid rgba(244, 198, 79, 0.65);
    outline-offset: 3px;
}

.vb-password-toggle svg {
    width: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.vb-remember-option {
    display: flex;
    margin-top: 1.35rem;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--vb-ink);
    cursor: pointer;
}

.vb-remember-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    flex: 0 0 auto;
    accent-color: var(--vb-navy);
}

.vb-remember-option span {
    display: grid;
    gap: 0.15rem;
}

.vb-remember-option strong {
    color: var(--vb-navy-deep);
    font-size: 0.86rem;
}

.vb-remember-option small {
    color: var(--vb-muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.vb-remember-option input:focus-visible {
    outline: 3px solid rgba(244, 198, 79, 0.65);
    outline-offset: 3px;
}

.vb-submit {
    display: flex;
    width: 100%;
    min-height: 3.55rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    background: var(--vb-navy);
    border: 0;
    border-radius: 0.72rem;
    box-shadow: 0 12px 28px rgba(35, 54, 77, 0.2);
    font-size: 0.92rem;
    font-weight: 750;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.vb-submit:hover {
    background: var(--vb-navy-deep);
    box-shadow: 0 15px 32px rgba(35, 54, 77, 0.25);
    transform: translateY(-1px);
}

.vb-submit:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.vb-submit svg {
    width: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.vb-help-link {
    margin: 1.15rem 0 0;
    text-align: center;
}

.vb-help-link a {
    color: var(--vb-navy);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(35, 54, 77, 0.28);
    text-underline-offset: 0.25rem;
}

.vb-public-auth-links {
    display: flex;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.vb-public-auth-links a {
    color: var(--vb-navy);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(35, 54, 77, 0.28);
    text-underline-offset: 0.25rem;
}

.vb-public-auth-links a + a {
    position: relative;
    padding-left: 1rem;
}

.vb-public-auth-links a + a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    background: #aab3bd;
    border-radius: 50%;
    transform: translateY(-50%);
}

.vb-public-beta-badge {
    display: inline-flex;
    min-height: 1.35rem;
    padding: 0.16rem 0.45rem;
    align-items: center;
    justify-content: center;
    color: var(--vb-navy-deep);
    background: var(--vb-gold);
    border: 1px solid rgba(35, 54, 77, 0.12);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(244, 198, 79, 0.2);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1;
    vertical-align: middle;
}

.vb-public-auth-card {
    padding-top: clamp(2rem, 3.6vw, 3.2rem);
    padding-bottom: clamp(2rem, 3.6vw, 3.2rem);
}

.vb-public-auth-card .vb-login-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.vb-public-auth-card .vb-field label small {
    color: var(--vb-muted);
    font-weight: 500;
}

.vb-public-auth-check {
    display: grid;
    grid-template-columns: 1.05rem 1fr;
    gap: 0.7rem;
    margin-top: 1.2rem;
    color: var(--vb-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    cursor: pointer;
}

.vb-public-auth-check input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--vb-navy);
}

.vb-public-auth-small,
.vb-public-password-rule,
.vb-public-auth-expired p {
    margin: 1.35rem 0 0;
    color: var(--vb-muted);
    font-size: 0.74rem;
    line-height: 1.6;
}

.vb-public-password-rule {
    padding: 0.8rem 0.9rem;
    background: rgba(159, 193, 178, 0.11);
    border: 1px solid rgba(62, 120, 100, 0.16);
    border-radius: 0.65rem;
}

.vb-public-auth-return {
    text-align: center;
    text-decoration: none;
}

.vb-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.vb-access-note {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 0.8rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    color: var(--vb-muted);
    border-top: 1px solid var(--vb-line);
}

.vb-access-note svg {
    width: 1.35rem;
    color: var(--vb-success);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.vb-access-note p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.65;
}

.vb-access-note strong {
    color: var(--vb-ink);
}

.vb-mvp-note {
    margin: 1.35rem 0 0;
    color: #89919c;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.vb-login-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 0.25rem;
    color: #7d8794;
    font-size: 0.72rem;
}

@media (max-width: 1100px) {
    .vb-auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.92fr);
    }

    .vb-story-panel {
        padding: 2.75rem;
    }

    .vb-principles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vb-principle {
        display: grid;
        grid-template-columns: 2rem 1fr;
        gap: 0.75rem;
    }

    .vb-principle > span {
        margin: 0.2rem 0 0;
    }
}

@media (max-width: 900px) {
    .vb-auth-shell {
        display: flex;
        flex-direction: column;
    }

    .vb-login-panel {
        order: -1;
        min-height: auto;
        padding: 2rem 1.25rem 3rem;
    }

    .vb-login-inner {
        width: min(100%, 520px);
    }

    .vb-login-card {
        padding: clamp(1.75rem, 7vw, 3rem);
    }

    .vb-mobile-logo {
        display: block;
    }

    .vb-logo-crop-light {
        display: none;
    }

    .vb-story-panel {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

    .vb-story-inner {
        width: min(100%, 620px);
    }

    .vb-story-copy h1 {
        font-size: clamp(2.65rem, 10vw, 4rem);
    }

    .vb-principles {
        margin-top: 2.75rem;
    }
}

@media (max-width: 520px) {
    .vb-login-panel {
        padding: 0;
        background: var(--vb-paper);
    }

    .vb-login-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vb-login-footer {
        padding: 0 1.5rem 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .vb-timeline-note {
        font-size: 0.58rem;
    }

    .vb-public-auth-links {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .vb-public-auth-links a + a {
        padding-top: 0.65rem;
        padding-left: 0;
        border-top: 1px solid var(--vb-line);
    }

    .vb-public-auth-links a + a::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Private family invitation */
.vb-invite-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(244, 198, 79, .2), transparent 24rem),
        radial-gradient(circle at 85% 90%, rgba(159, 193, 178, .22), transparent 28rem),
        var(--vb-ivory);
}

.vb-invite-shell {
    display: grid;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 55px);
    place-items: center;
}

.vb-invite-card {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
    width: min(960px, 100%);
    overflow: hidden;
    border: 1px solid var(--vb-line);
    border-radius: 28px;
    background: var(--vb-paper);
    box-shadow: var(--vb-shadow);
}

.vb-invite-art {
    padding: clamp(28px, 5vw, 54px);
    color: #fff;
    background: linear-gradient(145deg, var(--vb-navy), var(--vb-navy-deep));
}

.vb-invite-logo {
    display: block;
    width: 120px;
    height: 60px;
    overflow: hidden;
    border-radius: 10px;
}

.vb-invite-logo img {
    width: 120px;
    transform: translateY(-2px);
}

.vb-invite-egg {
    display: block;
    width: min(230px, 90%);
    height: 225px;
    margin: 42px auto 25px;
    border-radius: 24px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
}

.vb-invite-art .vb-login-kicker {
    color: var(--vb-gold);
}

.vb-invite-art h2 {
    margin: 6px 0 12px;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 500;
}

.vb-invite-art p:last-child {
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

.vb-invite-form-panel {
    align-self: center;
    padding: clamp(32px, 6vw, 72px);
}

.vb-invite-form-panel h1 {
    margin: 7px 0 10px;
    color: var(--vb-navy-deep);
    font-family: Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
}

.vb-invite-form-panel .vb-field small {
    display: block;
    margin-top: 6px;
    color: var(--vb-muted);
    font-size: .72rem;
}

.vb-invite-signin {
    display: block;
    margin-top: 28px;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 760px) {
    .vb-invite-shell {
        padding: 0;
    }

    .vb-invite-card {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .vb-invite-art {
        padding: 24px;
    }

    .vb-invite-egg {
        width: 128px;
        height: 124px;
        margin: 22px auto 12px;
    }

    .vb-invite-art h2,
    .vb-invite-art p:last-child {
        display: none;
    }

    .vb-invite-form-panel {
        padding: 30px 24px 45px;
    }
}
