.bpwa-shell {
    --bpwa-ink: #23170f;
    --bpwa-muted: #6f6256;
    --bpwa-paper: #fffaf1;
    --bpwa-panel: #fffdf8;
    --bpwa-gold: #b98535;
    --bpwa-ruby: #7b2635;
    --bpwa-line: rgba(35, 23, 15, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    min-height: 720px;
    background:
        linear-gradient(90deg, rgba(255, 250, 241, 0.98), rgba(255, 250, 241, 0.84)),
        repeating-linear-gradient(0deg, rgba(35, 23, 15, 0.04) 0 1px, transparent 1px 34px);
    color: var(--bpwa-ink);
    border: 1px solid var(--bpwa-line);
    overflow: hidden;
}

.bpwa-shell,
.bpwa-shell * {
    box-sizing: border-box;
}

.bpwa-shell--single {
    display: flex;
    justify-content: center;
    min-height: auto;
    padding: 48px 18px;
}

.bpwa-hero {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 720px;
    padding: 72px;
    background:
        linear-gradient(180deg, rgba(35, 23, 15, 0.18), rgba(35, 23, 15, 0.84)),
        url("data:image/svg+xml,%3Csvg width='1200' height='900' viewBox='0 0 1200 900' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='900' fill='%23311f17'/%3E%3Cg opacity='.88'%3E%3Crect x='150' y='135' width='172' height='610' rx='8' fill='%23caa469'/%3E%3Crect x='340' y='92' width='130' height='653' rx='8' fill='%237b2635'/%3E%3Crect x='490' y='166' width='205' height='580' rx='8' fill='%23efe0c2'/%3E%3Crect x='716' y='110' width='116' height='635' rx='8' fill='%239a6a36'/%3E%3Crect x='850' y='188' width='178' height='558' rx='8' fill='%23dbc08b'/%3E%3C/g%3E%3Cg opacity='.35' fill='none' stroke='%2323170f' stroke-width='8'%3E%3Cpath d='M198 190h78M198 245h78M382 152h45M382 206h45M544 230h96M544 286h96M748 171h52M748 228h52M900 253h76M900 309h76'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.bpwa-hero__copy {
    max-width: 680px;
    color: #fffaf1;
}

.bpwa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--bpwa-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bpwa-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.bpwa-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fffaf1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.bpwa-hero p {
    max-width: 600px;
    margin: 24px 0 0;
    color: rgba(255, 250, 241, 0.86);
    font-size: 1.08rem;
    line-height: 1.75;
}

.bpwa-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.bpwa-stats span {
    min-width: 138px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 250, 241, 0.28);
    background: rgba(255, 250, 241, 0.1);
    backdrop-filter: blur(8px);
    color: rgba(255, 250, 241, 0.82);
}

.bpwa-stats strong {
    display: block;
    color: #fffaf1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.bpwa-panel {
    align-self: center;
    width: min(100%, 520px);
    margin: 44px auto;
    padding: 42px;
    background: var(--bpwa-panel);
    border: 1px solid var(--bpwa-line);
    box-shadow: 0 28px 80px rgba(35, 23, 15, 0.16);
}

.bpwa-form {
    display: grid;
    gap: 18px;
}

.bpwa-form h2 {
    margin: 0;
    color: var(--bpwa-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.bpwa-form p {
    margin: 0;
    color: var(--bpwa-muted);
    line-height: 1.65;
}

.bpwa-form label {
    display: grid;
    gap: 8px;
    color: var(--bpwa-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.bpwa-form input[type="text"],
.bpwa-form input[type="email"],
.bpwa-form input[type="tel"],
.bpwa-form input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    color: var(--bpwa-ink);
    background: #fffaf1;
    border: 1px solid var(--bpwa-line);
    border-radius: 0;
    outline: none;
    font: inherit;
}

.bpwa-form input:focus {
    border-color: var(--bpwa-gold);
    box-shadow: 0 0 0 3px rgba(185, 133, 53, 0.18);
}

.bpwa-form button,
.bpwa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 20px;
    color: #fffaf1;
    background: var(--bpwa-ruby);
    border: 1px solid var(--bpwa-ruby);
    border-radius: 0;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.bpwa-form button:hover,
.bpwa-button:hover {
    color: #fffaf1;
    background: #64202d;
    transform: translateY(-1px);
}

.bpwa-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 18px;
    color: var(--bpwa-ink);
    background: #ffffff;
    border: 1.5px solid #cfc7bc;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bpwa-google:hover {
    color: var(--bpwa-ink);
    border-color: rgba(185, 133, 53, 0.62);
    box-shadow: 0 10px 26px rgba(35, 23, 15, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.bpwa-google--disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.bpwa-google--disabled:hover {
    border-color: var(--bpwa-line);
    box-shadow: none;
    transform: none;
}

.bpwa-google__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 900;
}

.bpwa-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bpwa-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bpwa-divider::before,
.bpwa-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bpwa-line);
}

.bpwa-helper {
    margin-top: -6px !important;
    font-size: 0.86rem;
}

.bpwa-wc-social {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
}

.bpwa-auto-social {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    width: 100%;
}

.woocommerce form.login .bpwa-wc-social,
.woocommerce form.register .bpwa-wc-social {
    margin-bottom: 22px;
}

.woocommerce form.login .bpwa-google,
.woocommerce form.register .bpwa-google,
.bpwa-auto-social .bpwa-google {
    width: 100%;
}

.bpwa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.bpwa-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
    color: var(--bpwa-muted) !important;
    font-weight: 600 !important;
}

.bpwa-check input {
    width: 18px;
    height: 18px;
}

.bpwa-form a,
.bpwa-link {
    color: var(--bpwa-ruby);
    font-weight: 800;
    text-decoration: none;
}

.bpwa-form a:hover,
.bpwa-link:hover {
    text-decoration: underline;
}

.bpwa-switch {
    padding-top: 4px;
    text-align: center;
}

.bpwa-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid;
    background: #fffaf1;
    color: var(--bpwa-ink);
    font-weight: 700;
}

.bpwa-notice--success {
    border-color: #2f7d4f;
}

.bpwa-notice--error {
    border-color: #a82e2e;
}

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

    .bpwa-hero {
        min-height: 420px;
        padding: 38px 24px;
    }

    .bpwa-panel {
        width: auto;
        margin: 24px;
        padding: 28px;
    }
}

@media (max-width: 520px) {
    .bpwa-shell--single {
        padding: 18px 10px;
    }

    .bpwa-panel {
        margin: 14px;
        padding: 22px;
    }

    .bpwa-form h2 {
        font-size: 1.9rem;
    }

    .bpwa-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
