/* ===== Cadastro da campanha (Views/BlackFriday/SignIn.cshtml) ===== */
.bfsi {
    --purple: #6038E8;
    --inspire: #4D00E6;
    --beige: #F9F6F4;
    --muted: #5b5866;
    --line: #e6dfd9;
    --danger: #d92d20;
    --ok: #12805c;
    --r: 20px;
    --field-r: 12px;
    --shadow: 0 10px 30px rgba(40,20,90,.08);
    --font: 'Hanken Grotesk','Founders Grotesk',Arial,sans-serif;
    font-family: var(--font);
    color: #000;
    background: var(--beige);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 0 0 72px;
}

    .bfsi *,
    .bfsi *::before,
    .bfsi *::after {
        box-sizing: border-box;
    }

    .bfsi [v-cloak] {
        display: none;
    }

    /* Keeps the card's space with a loader until Vue mounts, so the page doesn't jump */
    .bfsi .bfsi-card[v-cloak] {
        display: block !important;
        position: relative;
        min-height: 1100px;
    }

        .bfsi .bfsi-card[v-cloak] > * {
            display: none !important;
        }

        .bfsi .bfsi-card[v-cloak]::before {
            content: '';
            position: absolute;
            top: 120px;
            left: 50%;
            width: 36px;
            height: 36px;
            margin-left: -18px;
            border: 3px solid var(--line);
            border-top-color: var(--purple);
            border-radius: 50%;
            animation: bfsi-spin .8s linear infinite;
        }

@keyframes bfsi-spin {
    to {
        transform: rotate(360deg);
    }
}

    .bfsi .wrap {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 24px;
    }

    /* Breadcrumb e etapas (mesmo padrão de Views/BlackFriday/ShoppingCart.cshtml) */
    .bfsi .ph {
        padding: 32px 0 8px;
    }

    .bfsi .crumb {
        font-size: .88rem;
        color: var(--muted);
        margin-bottom: 14px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

        .bfsi .crumb a,
        .bfsi .crumb a:hover {
            color: inherit;
            text-decoration: none;
        }

            .bfsi .crumb a:hover {
                color: var(--purple);
            }

        .bfsi .crumb b {
            color: #000;
        }

    .bfsi .bfsi-steps {
        display: flex;
        align-items: center;
        gap: 10px;
        list-style: none;
        max-width: 620px;
        margin: 24px auto 28px;
        padding: 0;
    }

    .bfsi .bfsi-step {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        font-size: .92rem;
        color: var(--muted);
    }

        .bfsi .bfsi-step .n {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            border: 1.5px solid var(--line);
            background: #fff;
            font-weight: 800;
            font-size: .85rem;
        }

        .bfsi .bfsi-step.on {
            color: #000;
        }

            .bfsi .bfsi-step.on .n {
                background: var(--purple);
                border-color: var(--purple);
                color: #fff;
            }

    .bfsi .bfsi-step-line {
        flex: 1 1 auto;
        min-width: 12px;
        height: 2px;
        background: var(--line);
    }

    .bfsi i[data-lucide],
    .bfsi svg.lucide {
        width: 1.1em;
        height: 1.1em;
        stroke-width: 2;
        vertical-align: -.18em;
    }

    .bfsi .bfsi-card {
        max-width: 620px;
        margin: 0 auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r);
        box-shadow: var(--shadow);
        padding: 28px 32px 24px;
    }

    .bfsi h1,
    .bfsi h2 {
        font-family: var(--font);
        font-weight: 700;
        letter-spacing: -.01em;
        line-height: 1.2;
        color: inherit;
        margin: 0;
    }

    .bfsi h1 {
        font-size: 1.5rem;
    }

    .bfsi h2 {
        font-size: 1rem;
        padding-bottom: 8px;
        margin: 20px 0 14px;
        border-bottom: 1px solid var(--line);
    }

    .bfsi .bfsi-login {
        margin: 4px 0 18px;
        font-size: .85rem;
        color: var(--muted);
    }

        .bfsi .bfsi-login a {
            color: var(--purple);
            font-weight: 700;
            text-decoration: none;
        }

            .bfsi .bfsi-login a:hover {
                text-decoration: underline;
            }

    /* Alternador Pessoa Física / Jurídica */
    .bfsi .bfsi-toggle {
        display: inline-flex;
        gap: 4px;
        padding: 4px;
        margin-bottom: 18px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
    }

        .bfsi .bfsi-toggle button {
            font: inherit;
            font-size: .82rem;
            font-weight: 700;
            color: #000;
            background: transparent;
            border: 0;
            border-radius: 999px;
            padding: 8px 14px;
            cursor: pointer;
            transition: background .15s, color .15s;
        }

            .bfsi .bfsi-toggle button.on {
                background: #000;
                color: #fff;
            }

    /* Campos */
    .bfsi .bfsi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .bfsi .bfsi-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 14px;
    }

        .bfsi .bfsi-field label {
            font-size: .75rem;
            font-weight: 700;
            margin: 0 0 6px;
            color: #000;
        }

        .bfsi .bfsi-field > input {
            font: inherit;
            font-size: .9rem;
            color: #000;
            width: 100%;
            height: 40px;
            margin: 0;
            padding: 0 12px;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--field-r);
            box-shadow: none;
            outline: none;
            transition: border-color .15s, box-shadow .15s;
        }

            .bfsi .bfsi-field > input:focus {
                border-color: var(--purple);
                box-shadow: 0 0 0 3px rgba(96,56,232,.15);
            }

            .bfsi .bfsi-field > input:disabled {
                background: var(--beige);
                color: var(--muted);
            }

    /* vue-select com o mesmo visual dos inputs */
    .bfsi .v-select {
        font-size: .9rem;
    }

        .bfsi .v-select .vs__dropdown-toggle {
            min-height: 40px;
            padding: 0 4px 0 6px;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--field-r);
        }

        .bfsi .v-select.vs--open .vs__dropdown-toggle {
            border-color: var(--purple);
            box-shadow: 0 0 0 3px rgba(96,56,232,.15);
        }

        .bfsi .v-select .vs__search,
        .bfsi .v-select .vs__search:focus {
            margin: 0;
            padding: 0 6px;
            height: 38px;
            border: 0;
            box-shadow: none;
            background: transparent;
        }

        .bfsi .v-select .vs__selected-options {
            align-items: center;
            flex-wrap: nowrap;
        }

        .bfsi .v-select .vs__selected {
            margin: 0;
            padding: 0 6px;
            border: 0;
        }

        .bfsi .v-select.vs--disabled .vs__dropdown-toggle,
        .bfsi .v-select.vs--disabled .vs__search {
            background: var(--beige);
        }

        .bfsi .v-select .vs__dropdown-menu {
            border-radius: 0 0 var(--field-r) var(--field-r);
            border-color: var(--line);
        }

        .bfsi .v-select .vs__dropdown-option--highlight {
            background: var(--purple);
        }

    /* Mensagens */
    .bfsi .bfsi-err {
        display: block;
        margin-top: 4px;
        font-size: .72rem;
        color: var(--danger);
    }

    .bfsi .bfsi-hint {
        display: block;
        margin-top: 4px;
        font-size: .72rem;
        color: var(--muted);
    }

    .bfsi .bfsi-terms-pending p {
        margin: 0 0 12px;
    }

    .bfsi .bfsi-alert {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        padding: 10px 14px;
        font-size: .82rem;
        color: var(--danger);
        background: #fef3f2;
        border: 1px solid #fecdca;
        border-radius: var(--field-r);
    }

    /* Termos */
    .bfsi .bfsi-terms {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 6px 0 0;
        font-size: .8rem;
        font-weight: 400;
        color: var(--muted);
        cursor: pointer;
    }

        .bfsi .bfsi-terms input {
            flex-shrink: 0;
            width: 16px;
            height: 16px;
            margin: 2px 0 0;
            accent-color: var(--purple);
        }

        .bfsi .bfsi-terms a {
            color: var(--purple);
            font-weight: 700;
        }

    /* reCAPTCHA e verificação por SMS */
    .bfsi .bfsi-recaptcha {
        margin-top: 16px;
        font-size: .8rem;
        color: var(--muted);
    }

    .bfsi .bfsi-info {
        margin-top: 8px;
        font-size: .8rem;
        color: var(--muted);
    }

        .bfsi .bfsi-info a {
            color: var(--purple);
            font-weight: 700;
        }

    .bfsi .bfsi-code-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 16px;
    }

    .bfsi .bfsi-link {
        padding: 0;
        font: inherit;
        font-size: .8rem;
        font-weight: 700;
        color: var(--purple);
        background: none;
        border: 0;
        cursor: pointer;
    }

        .bfsi .bfsi-link:hover {
            text-decoration: underline;
        }

        .bfsi .bfsi-link:disabled {
            opacity: .6;
            cursor: default;
            text-decoration: none;
        }

        .bfsi .bfsi-link.is-highlight {
            padding: 6px 12px;
            color: #fff;
            background: var(--purple);
            border-radius: 999px;
        }

            .bfsi .bfsi-link.is-highlight:hover {
                text-decoration: none;
            }

    /* Ações */
    .bfsi .bfsi-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 18px;
        padding: 12px 20px;
        font: inherit;
        font-size: .95rem;
        font-weight: 700;
        color: #fff;
        background: var(--purple);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(96,56,232,.3);
        cursor: pointer;
        transition: background .15s, transform .15s;
    }

        .bfsi .bfsi-submit:hover {
            background: var(--inspire);
            transform: translateY(-1px);
        }

        .bfsi .bfsi-submit:disabled {
            opacity: .6;
            cursor: default;
            transform: none;
        }

    .bfsi .bfsi-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 14px;
        font-size: .82rem;
        font-weight: 700;
        color: var(--purple);
        text-decoration: none;
    }

        .bfsi .bfsi-back:hover {
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .bfsi {
        padding: 0 0 48px;
    }

        .bfsi .wrap {
            padding: 0 12px;
        }

        .bfsi .bfsi-steps {
            gap: 6px;
            margin: 16px auto 20px;
        }

        .bfsi .bfsi-step {
            gap: 6px;
            font-size: .82rem;
        }

            .bfsi .bfsi-step .n {
                width: 26px;
                height: 26px;
                font-size: .72rem;
            }

        .bfsi .bfsi-step-line {
            min-width: 8px;
        }

        .bfsi .bfsi-step .t {
            display: none;
        }

        .bfsi .bfsi-step.on .t {
            display: inline;
        }

        .bfsi .bfsi-card {
            padding: 22px 18px 20px;
        }

        .bfsi .bfsi-grid {
            grid-template-columns: 1fr;
        }

        .bfsi .bfsi-toggle {
            display: flex;
        }

            .bfsi .bfsi-toggle button {
                flex: 1;
            }
}

/* ===== Loading do cadastro (mesmo padrão da finalização do checkout) ===== */
.bfsi .bfsi-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bfsi-spin .7s linear infinite;
    flex: none;
}

.bfsi .bfsi-btn-lbl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bfsi .bfsi-submit.bfsi-loading:disabled {
    opacity: .85;
    cursor: progress;
}

body.bfsi-locked {
    overflow: hidden;
}

.bfsi .bfsi-progress {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24,14,60,.55);
    backdrop-filter: blur(4px);
    animation: bfsi-fade .2s ease-out;
}

.bfsi .bfsi-progress-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 30px 28px;
    border-radius: var(--r);
    background: #fff;
    box-shadow: 0 24px 60px rgba(40,20,90,.25);
    text-align: center;
    animation: bfsi-rise .25s ease-out;
}

    .bfsi .bfsi-progress-card h3 {
        margin: 0 0 4px;
        font-size: 1.35rem;
    }

.bfsi .bfsi-progress-sub {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .9rem;
}

.bfsi .bfsi-code-card {
    position: relative;
    text-align: left;
}

    .bfsi .bfsi-code-card h3,
    .bfsi .bfsi-code-card .bfsi-progress-sub {
        text-align: center;
    }

    .bfsi .bfsi-code-card .bfsi-progress-sub b {
        color: #000;
        white-space: nowrap;
    }

.bfsi .bfsi-code-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #ece6ff;
    color: var(--purple);
}

    .bfsi .bfsi-code-icon svg {
        width: 26px;
        height: 26px;
    }

.bfsi .bfsi-code-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

    .bfsi .bfsi-code-close:hover {
        color: #000;
        background: var(--beige);
    }

    .bfsi .bfsi-code-close:disabled {
        opacity: .5;
        cursor: default;
    }

    .bfsi .bfsi-code-close svg {
        width: 20px;
        height: 20px;
    }

.bfsi .bfsi-field > input.bfsi-code-input {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .4em;
    text-align: center;
}

.bfsi .bfsi-code-captcha {
    margin-top: 14px;
}

    .bfsi .bfsi-code-captcha p {
        margin: 0 0 8px;
        font-size: .8rem;
        color: var(--muted);
    }

@media (max-width: 420px) {
    .bfsi .bfsi-code-modal {
        padding: 12px;
    }

    .bfsi .bfsi-code-card {
        padding: 28px 16px 22px;
    }
}

.bfsi .bfsi-progress-ring {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border: 4px solid #ece6ff;
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: bfsi-spin .9s linear infinite;
}

    .bfsi .bfsi-progress-ring.ok {
        border-color: var(--ok);
        background: var(--ok);
        animation: none;
    }

        .bfsi .bfsi-progress-ring.ok::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 45%;
            width: 12px;
            height: 22px;
            border: solid #fff;
            border-width: 0 4px 4px 0;
            transform: translate(-50%, -50%) rotate(45deg);
        }

.bfsi .bfsi-progress-bar {
    height: 6px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: #ece6ff;
    overflow: hidden;
}

    .bfsi .bfsi-progress-bar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--purple), var(--inspire));
        transition: width .6s ease;
    }

.bfsi .bfsi-progress-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

    .bfsi .bfsi-progress-steps li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: .95rem;
        color: #a19dab;
        transition: color .3s;
    }

        .bfsi .bfsi-progress-steps li.active {
            color: #000;
            font-weight: 700;
        }

        .bfsi .bfsi-progress-steps li.done {
            color: var(--muted);
        }

    .bfsi .bfsi-progress-steps .mk {
        position: relative;
        width: 22px;
        height: 22px;
        flex: none;
        border: 2px solid var(--line);
        border-radius: 50%;
    }

    .bfsi .bfsi-progress-steps li.active .mk {
        border-color: #ece6ff;
        border-top-color: var(--purple);
        animation: bfsi-spin .8s linear infinite;
    }

    .bfsi .bfsi-progress-steps li.done .mk {
        border-color: var(--purple);
        background: var(--purple);
    }

        .bfsi .bfsi-progress-steps li.done .mk::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.bfsi .bfsi-progress-slow {
    margin: 18px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #faf8ff;
    color: var(--muted);
    font-size: .85rem;
}

@keyframes bfsi-fade {
    from {
        opacity: 0;
    }
}

@keyframes bfsi-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bfsi .bfsi-progress,
    .bfsi .bfsi-progress-card {
        animation: none;
    }

    .bfsi .bfsi-spinner,
    .bfsi .bfsi-progress-ring,
    .bfsi .bfsi-progress-steps li.active .mk {
        animation-duration: 2s;
    }
}