:root {
    --bbc-auth-plum: #60174c;
    --bbc-auth-berry: #8d3370;
    --bbc-auth-rose: #c74ea0;
    --bbc-auth-cream: #fff8fc;
    --bbc-auth-ink: #201522;
    --bbc-auth-muted: #6c6070;
    --bbc-auth-border: rgba(96, 23, 76, 0.14);
    --bbc-auth-success: #1e8f57;
    --bbc-auth-warning: #a25f00;
    --bbc-auth-danger: #b03152;
    --bbc-auth-info: #2f5f93;
    --bbc-auth-shadow: 0 22px 60px rgba(43, 15, 37, 0.18);
}

body.bbc-auth-page {
    background:
        radial-gradient(circle at top left, rgba(199, 78, 160, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(96, 23, 76, 0.16), transparent 30%),
        linear-gradient(180deg, #fffdfd 0%, #f7f2f7 100%);
    color: var(--bbc-auth-ink);
}

.bbc-auth-shell {
    padding: 48px 0 80px;
}

.bbc-auth-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: stretch;
}

.bbc-auth-hero,
.bbc-auth-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--bbc-auth-shadow);
}

.bbc-auth-hero {
    position: relative;
    flex: 1 1 440px;
    min-height: 100%;
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, var(--bbc-auth-plum) 0%, var(--bbc-auth-berry) 54%, var(--bbc-auth-rose) 100%);
    color: #ffffff;
}

.bbc-auth-hero::before,
.bbc-auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.bbc-auth-hero::before {
    width: 240px;
    height: 240px;
    top: -90px;
    right: -60px;
    background: rgba(255, 255, 255, 0.08);
}

.bbc-auth-hero::after {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: -30px;
    background: rgba(255, 255, 255, 0.08);
}

.bbc-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bbc-auth-title {
    margin: 18px 0 14px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
}

.bbc-auth-copy {
    margin: 0;
    font-size: 18px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.84);
}

.bbc-auth-benefits {
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.bbc-auth-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.bbc-auth-benefit .bbc-auth-benefit-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 21px;
    line-height: 1;
}

.bbc-auth-benefit .bbc-auth-benefit-icon i {
    display: block;
    line-height: 1;
}

.bbc-auth-benefit > div {
    min-width: 0;
    flex: 1 1 auto;
}

.bbc-auth-benefit > div > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.bbc-auth-benefit > div > span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
}

.bbc-auth-card {
    flex: 1 1 420px;
    padding: 34px 34px 30px;
    background: #ffffff;
}

.bbc-auth-card.narrow {
    max-width: 640px;
    margin: 0 auto;
}

.bbc-auth-card-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 900;
    color: var(--bbc-auth-ink);
}

.bbc-auth-card-copy {
    margin: 0 0 26px;
    color: var(--bbc-auth-muted);
    line-height: 1.7;
}

.bbc-auth-alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.bbc-auth-alert.is-error {
    color: var(--bbc-auth-danger);
    background: rgba(176, 49, 82, 0.08);
    border-color: rgba(176, 49, 82, 0.18);
}

.bbc-auth-alert.is-success {
    color: var(--bbc-auth-success);
    background: rgba(30, 143, 87, 0.08);
    border-color: rgba(30, 143, 87, 0.18);
}

.bbc-auth-alert.is-warning {
    color: var(--bbc-auth-warning);
    background: rgba(162, 95, 0, 0.08);
    border-color: rgba(162, 95, 0, 0.18);
}

.bbc-auth-alert.is-info {
    color: var(--bbc-auth-info);
    background: rgba(47, 95, 147, 0.08);
    border-color: rgba(47, 95, 147, 0.18);
}

.bbc-auth-grid {
    display: grid;
    gap: 18px;
}

.bbc-auth-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bbc-auth-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bbc-auth-ink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.bbc-auth-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--bbc-auth-border);
    background: var(--bbc-auth-cream);
    box-shadow: none;
    font-size: 16px;
    color: var(--bbc-auth-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bbc-auth-input:focus {
    outline: none;
    border-color: rgba(96, 23, 76, 0.45);
    box-shadow: 0 0 0 4px rgba(199, 78, 160, 0.12);
    background: #ffffff;
}

.bbc-auth-input.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    letter-spacing: 0.08em;
}

.bbc-auth-help {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbc-auth-muted);
}

.bbc-auth-check-grid {
    display: grid;
    gap: 12px;
    margin: 4px 0 8px;
}

.bbc-auth-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--bbc-auth-border);
    background: #fffafc;
}

.bbc-auth-check input {
    margin-top: 3px;
}

.bbc-auth-check span {
    display: block;
    line-height: 1.6;
    color: var(--bbc-auth-ink);
}

.bbc-auth-check small {
    display: block;
    color: var(--bbc-auth-muted);
}

.bbc-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.bbc-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bbc-auth-plum) 0%, var(--bbc-auth-berry) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 16px 30px rgba(96, 23, 76, 0.2);
}

.bbc-auth-button:hover,
.bbc-auth-button:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.bbc-auth-button.secondary {
    background: #ffffff;
    color: var(--bbc-auth-plum);
    border: 1px solid var(--bbc-auth-border);
    box-shadow: none;
}

.bbc-auth-link {
    color: var(--bbc-auth-berry);
    font-weight: 900;
    text-decoration: none;
}

.bbc-auth-link:hover,
.bbc-auth-link:focus {
    color: var(--bbc-auth-plum);
    text-decoration: underline;
}

.bbc-auth-footer-copy {
    margin-top: 24px;
    text-align: center;
    color: var(--bbc-auth-muted);
    line-height: 1.7;
}

.bbc-auth-success-panel {
    text-align: center;
    padding: 18px 8px;
}

.bbc-auth-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e8f57 0%, #38b477 100%);
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 30px rgba(30, 143, 87, 0.18);
}

.bbc-auth-success-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
}

.bbc-auth-success-copy {
    margin: 0 0 12px;
    color: var(--bbc-auth-muted);
    line-height: 1.7;
}

.bbc-auth-success-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.bbc-auth-code-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.bbc-auth-code {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--bbc-auth-border);
    background: var(--bbc-auth-cream);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.bbc-auth-inline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.bbc-auth-divider {
    margin: 24px 0;
    border-top: 1px solid rgba(96, 23, 76, 0.1);
}

.bbc-auth-qr {
    display: inline-flex;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--bbc-auth-border);
    box-shadow: 0 14px 28px rgba(96, 23, 76, 0.08);
}

.bbc-auth-qr img {
    display: block;
    max-width: 200px;
    height: auto;
}

@media (max-width: 991px) {
    .bbc-auth-shell {
        padding: 24px 0 56px;
    }

    .bbc-auth-hero,
    .bbc-auth-card {
        flex-basis: 100%;
    }

    .bbc-auth-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .bbc-auth-hero,
    .bbc-auth-card {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .bbc-auth-grid.two,
    .bbc-auth-code-list {
        grid-template-columns: 1fr;
    }

    .bbc-auth-title {
        font-size: 30px;
    }

    .bbc-auth-copy {
        font-size: 16px;
    }

    .bbc-auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bbc-auth-button {
        width: 100%;
    }
}
