:root {
    --bd-black: #15121d;
    --bd-purple: #6d28d9;
    --bd-purple-dark: #5920b4;
    --bd-white: #ffffff;
    --bd-muted: #716a7d;
    --bd-border: #e5dfec;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: #faf9fc;
    color: var(--bd-black);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #b794f4;
    outline-offset: 3px;
}

.bd-skip {
    position: absolute;
    top: -90px;
    left: 12px;
    z-index: 20;
    background: white;
    padding: 12px;
}

.bd-skip:focus {
    top: 12px;
}

.bd-topbar {
    min-height: 70px;
    padding: 12px clamp(20px, 5vw, 75px);
    background: white;
    border-bottom: 1px solid var(--bd-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bd-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bd-logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding-right: 3px;
    border-radius: 10px;
    background: var(--bd-purple);
    color: white;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -3px;
}

.bd-word {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -1.3px;
}

.bd-word span {
    color: var(--bd-purple);
}

.bd-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 12px;
    font-weight: 700;
}

.bd-back {
    color: var(--bd-muted);
}

.bd-nav-login:hover,
.bd-back:hover {
    color: var(--bd-purple);
}

.bd-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 9px;
    background: var(--bd-black);
    color: white;
}

.bd-layout {
    display: grid;
    grid-template-columns: minmax(340px, 42%) minmax(0, 58%);
    min-height: calc(100svh - 70px);
}

.bd-story {
    display: flex;
    align-items: center;
    background: var(--bd-black);
    color: white;
    padding: 40px clamp(30px, 5vw, 85px);
}

.bd-story-inner {
    width: 100%;
    max-width: 470px;
    margin: auto;
}

.bd-story-kicker,
.bd-eyebrow {
    color: #ad83f5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.bd-story h2 {
    margin: 21px 0;
    font-size: clamp(38px, 4vw, 57px);
    line-height: 1.1;
    letter-spacing: -2.7px;
}

.bd-story h2 span {
    color: #b894fc;
}

.bd-story p {
    max-width: 360px;
    color: #c5bdcf;
    font-size: 14px;
    line-height: 1.7;
}

.bd-story-visual {
    width: 100%;
    max-width: 365px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid #493a5b;
    border-radius: 13px;
    background: #241b30;
}

.bd-visual-top {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    color: #c9bdd6;
    font-size: 10px;
    border-bottom: 1px solid #493a5b;
}

.bd-visual-dots {
    color: #a477ef;
    letter-spacing: 3px;
}

.bd-visual-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 13px;
    padding: 20px;
    border-radius: 8px;
    background: white;
    color: var(--bd-black);
}

.bd-visual-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--bd-purple);
}

.bd-visual-content strong {
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.bd-visual-line {
    width: 80%;
    height: 5px;
    border-radius: 4px;
    background: #e8dfef;
}

.bd-visual-line.short {
    width: 55%;
}

.bd-visual-action {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: white;
    background: var(--bd-purple);
    font-size: 10px;
    font-weight: 750;
}

.bd-story-foot {
    display: block;
    margin-top: 24px;
    color: #a89caf;
    font-size: 11px;
}

.bd-form-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 28px clamp(20px, 5vw, 65px) 18px;
}

.bd-form-card {
    width: 100%;
    max-width: 480px;
    padding: clamp(23px, 3vw, 36px);
    border: 1px solid var(--bd-border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 15px 45px #21142d0a;
}

.bd-form-heading {
    margin-bottom: 24px;
}

.bd-eyebrow {
    color: var(--bd-purple);
}

.bd-form-heading h1 {
    margin: 10px 0 7px;
    font-size: clamp(26px, 3vw, 33px);
    letter-spacing: -1.3px;
    line-height: 1.15;
}

.bd-form-heading p {
    margin: 0;
    color: var(--bd-muted);
    font-size: 13px;
    line-height: 1.6;
}

.bd-account-form,
.bd-login-form {
    display: grid;
    gap: 13px;
}

.bd-account-form label,
.bd-login-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.bd-account-form input,
.bd-login-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d8d0e2;
    border-radius: 9px;
    background: white;
    color: var(--bd-black);
    font: inherit;
    font-size: 14px;
}

.bd-account-form input:hover,
.bd-login-form input:hover {
    border-color: #aa91c9;
}

.bd-account-form input:focus,
.bd-login-form input:focus {
    border-color: var(--bd-purple);
}

.bd-account-form button,
.bd-login-form button {
    min-height: 47px;
    margin-top: 3px;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--bd-purple);
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.bd-account-form button:hover,
.bd-login-form button:hover {
    background: var(--bd-purple-dark);
}

.bd-account-footer,
.bd-login-footer {
    margin: 16px 0 0;
    text-align: center;
    color: var(--bd-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bd-account-footer a,
.bd-login-footer a {
    color: var(--bd-purple);
    font-weight: 750;
}

.bd-account-error,
[role="alert"] {
    padding: 11px 13px;
    border: 1px solid #edcaca;
    border-radius: 8px;
    background: #fff6f6;
    color: #9d2525;
    font-size: 12px;
    line-height: 1.5;
}

[role="status"] {
    padding: 11px 13px;
    border-radius: 8px;
    background: #f0eaff;
    color: #5420a6;
    font-size: 12px;
}

.bd-form-footer {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 4px 0;
    color: #938a9d;
    font-size: 10px;
}

@media (max-width: 900px) {
    .bd-layout {
        grid-template-columns: 1fr;
    }

    .bd-story {
        display: none;
    }

    .bd-form-area {
        min-height: calc(100svh - 70px);
        padding: 28px 18px;
    }
}

@media (max-width: 480px) {
    .bd-topbar {
        padding: 12px 17px;
    }

    .bd-word {
        font-size: 19px;
    }

    .bd-nav {
        gap: 10px;
    }

    .bd-back,
    .bd-nav-login {
        display: none;
    }

    .bd-form-area {
        justify-content: flex-start;
        padding: 24px 13px;
    }

    .bd-form-card {
        padding: 23px 19px;
        border-radius: 14px;
    }

    .bd-form-footer {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
