﻿:root {
    --bvauth-accent: var(--cor_principal, #ff0787);
    --bvauth-accent-dark: #d80a72;
    --bvauth-accent-soft: rgba(255, 7, 135, .09);
    --bvauth-text: #222632;
    --bvauth-soft: #626977;
    --bvauth-muted: #9197a2;
    --bvauth-border: #dfe3e9;
    --bvauth-border-soft: #eceff3;
    --bvauth-surface: #ffffff;
    --bvauth-bg: #f5f6f8;
    --bvauth-shadow: 0 24px 70px rgba(20, 24, 34, .13);
}

/* =========================================================
   BASE
   ========================================================= */

.bvauth-body,
.bvauth-body *,
.bvauth-body *::before,
.bvauth-body *::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

.bvauth-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bvauth-bg);
    color: var(--bvauth-text);
    font-family: Arial, Helvetica, sans-serif;
}

    .bvauth-body button,
    .bvauth-body input {
        font: inherit;
    }

    .bvauth-body button,
    .bvauth-body a {
        -webkit-tap-highlight-color: transparent;
    }

    .bvauth-body button {
        cursor: pointer;
    }

.bvauth-app,
.bvauth-page {
    min-height: 100vh;
}

/* =========================================================
   LAYOUT COM VÍDEO
   ========================================================= */

.bvauth-page--video {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
    background: #ffffff;
}

.bvauth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient( circle at 25% 22%, rgba(255, 7, 135, .28), transparent 34% ), linear-gradient( 145deg, #241924, #553248 54%, #181a24 );
}

.bvauth-visual__video,
.bvauth-visual__shade,
.bvauth-visual__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bvauth-visual__video {
    display: block;
    object-fit: cover;
    background: #181a24;
}

.bvauth-visual__shade {
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(10, 12, 18, .03), rgba(10, 12, 18, .38) );
}

.bvauth-visual__placeholder {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .84);
    font-size: 2rem;
}

    .bvauth-visual__placeholder[hidden] {
        display: none;
    }

.bvauth-visual__credit {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    left: 24px;
    width: min(480px, calc(100% - 48px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 15px;
    background: rgba(14, 16, 22, .43);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

    .bvauth-visual__credit[hidden] {
        display: none;
    }

    .bvauth-visual__credit > i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: var(--bvauth-accent);
    }

    .bvauth-visual__credit strong,
    .bvauth-visual__credit span {
        display: block;
    }

    .bvauth-visual__credit strong {
        overflow: hidden;
        font-size: .75rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bvauth-visual__credit span {
        margin-top: 2px;
        color: rgba(255, 255, 255, .76);
        font-size: .64rem;
    }

/* =========================================================
   PAINEL
   ========================================================= */

.bvauth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 34px;
    overflow-y: auto;
    background: #ffffff;
}

.bvauth-page--video > .bvauth-panel:not(.bvreg-panel) {
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 38px;
}

.bvauth-card {
    width: min(100%, 480px);
}

.bvauth-card__header {
    margin-bottom: 25px;
}

/* =========================================================
   HEADER COMPARTILHADO
   ========================================================= */

.bvauth-access-header {
    margin-bottom: 23px;
}

/* =========================================================
   LOGOMARCA — LOGIN E CADASTRO
   ========================================================= */

.bvauth-access-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    line-height: 0;
    text-decoration: none;
}

    .bvauth-access-logo img {
        width: 250px;
        max-width: 100%;
        height: auto;
        display: block;
    }

.bvauth-compact-logo {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 18px;
    line-height: 0;
    text-decoration: none;
}

    .bvauth-compact-logo img {
        width: min(100%, 220px);
        height: auto;
        display: block;
    }



.bvauth-eyebrow {
    display: block;
    color: var(--bvauth-accent);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bvauth-card__header h1,
.bvauth-card__header h2 {
    margin: 7px 0 0;
    color: var(--bvauth-text);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.bvauth-card__header p {
    max-width: 430px;
    margin: 11px 0 0;
    color: var(--bvauth-soft);
    font-size: .83rem;
    line-height: 1.58;
}

.bvauth-discover-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 7, 135, .22);
    border-radius: 999px;
    background: #fff8fc;
    color: var(--bvauth-accent);
    font-size: .66rem;
    font-weight: 900;
}

    .bvauth-discover-trigger i {
        font-size: .58rem;
    }

/* =========================================================
   FORMULÁRIO
   ========================================================= */

.bvauth-form {
    display: grid;
    gap: 17px;
}

.bvauth-field {
    display: grid;
    gap: 7px;
    color: var(--bvauth-text);
    font-size: .7rem;
    font-weight: 850;
}

.bvauth-input-wrap {
    min-height: 52px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--bvauth-border);
    border-radius: 15px;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .bvauth-input-wrap:focus-within {
        border-color: rgba(255, 7, 135, .58);
        background: #fffafd;
        box-shadow: 0 0 0 4px var(--bvauth-accent-soft);
    }

    .bvauth-input-wrap > i {
        color: var(--bvauth-accent);
        font-size: .87rem;
        text-align: center;
    }

    .bvauth-input-wrap input {
        min-width: 0;
        width: 100%;
        height: 50px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--bvauth-text);
        font-size: .78rem;
        font-weight: 600;
    }

        .bvauth-input-wrap input::placeholder {
            color: #adb2bb;
            font-weight: 500;
        }

        .bvauth-input-wrap input[readonly] {
            color: var(--bvauth-soft);
            cursor: default;
        }

.bvauth-password-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--bvauth-muted);
}

    .bvauth-password-toggle:hover,
    .bvauth-password-toggle:focus-visible {
        background: #f2f3f6;
        color: var(--bvauth-accent);
    }

.bvauth-field-error {
    min-height: 14px;
    color: #bd265d;
    font-size: .62rem;
    font-weight: 700;
}

.bvauth-validation-summary {
    color: #bd265d;
    font-size: .68rem;
}

    .bvauth-validation-summary:empty {
        display: none;
    }

.bvauth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bvauth-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bvauth-soft);
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}

    .bvauth-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .bvauth-check > span {
        width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
        border: 1px solid var(--bvauth-border);
        border-radius: 7px;
        background: #ffffff;
    }

    .bvauth-check input:focus-visible + span {
        box-shadow: 0 0 0 4px var(--bvauth-accent-soft);
    }

    .bvauth-check input:checked + span {
        border-color: var(--bvauth-accent);
        background: var(--bvauth-accent);
    }

        .bvauth-check input:checked + span::after {
            content: "✓";
            color: #ffffff;
            font-size: .7rem;
            font-weight: 900;
        }

.bvauth-link {
    color: var(--bvauth-accent);
    font-size: .68rem;
    font-weight: 850;
    text-decoration: none;
}

    .bvauth-link:hover {
        text-decoration: underline;
    }

/* =========================================================
   BOTÕES
   ========================================================= */

.bvauth-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 0;
    border-radius: 15px;
    font-size: .75rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .bvauth-button:disabled {
        opacity: .65;
        cursor: wait;
    }

.bvauth-button--primary {
    background: linear-gradient( 135deg, var(--bvauth-accent), #e7087d );
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(255, 7, 135, .22);
}

    .bvauth-button--primary:hover:not(:disabled) {
        box-shadow: 0 16px 32px rgba(255, 7, 135, .28);
        transform: translateY(-1px);
    }

/* =========================================================
   GOOGLE
   ========================================================= */

.bvauth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0 17px;
    color: var(--bvauth-muted);
    font-size: .62rem;
}

    .bvauth-divider::before {
        position: absolute;
        right: 0;
        left: 0;
        height: 1px;
        content: "";
        background: var(--bvauth-border-soft);
    }

    .bvauth-divider span {
        position: relative;
        padding: 0 12px;
        background: #ffffff;
    }

.bvauth-google {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--bvauth-border);
    border-radius: 15px;
    background: #ffffff;
    color: var(--bvauth-text);
    font-size: .74rem;
    font-weight: 850;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

    .bvauth-google:hover {
        border-color: #cfd3da;
        background: #fafbfc;
        box-shadow: 0 10px 24px rgba(20, 24, 34, .07);
    }

.bvauth-google__icon {
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: block;
    object-fit: contain;
}

.bvauth-account-switch {
    margin: 21px 0 0;
    color: var(--bvauth-soft);
    font-size: .7rem;
    text-align: center;
}

    .bvauth-account-switch a {
        color: var(--bvauth-accent);
        font-weight: 900;
        text-decoration: none;
    }

        .bvauth-account-switch a:hover {
            text-decoration: underline;
        }

/* =========================================================
   INSTALAÇÃO
   ========================================================= */

.bvauth-install {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 23px;
    padding: 12px;
    border: 1px solid rgba(255, 7, 135, .18);
    border-radius: 17px;
    background: #fff8fc;
}

    .bvauth-install:not([hidden]) {
        display: grid;
    }

.bvauth-install__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--bvauth-accent-soft);
    color: var(--bvauth-accent);
}

.bvauth-install strong,
.bvauth-install p {
    display: block;
}

.bvauth-install strong {
    font-size: .7rem;
    font-weight: 900;
}

.bvauth-install p {
    margin: 3px 0 0;
    color: var(--bvauth-soft);
    font-size: .61rem;
    line-height: 1.4;
}

.bvauth-install button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--bvauth-accent);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bvauth-accent);
    font-size: .63rem;
    font-weight: 900;
}

.bvauth-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    color: var(--bvauth-muted);
    font-size: .59rem;
}

    .bvauth-card__footer a {
        color: var(--bvauth-soft);
        text-decoration: none;
    }

        .bvauth-card__footer a:hover {
            color: var(--bvauth-accent);
        }

/* =========================================================
   TELAS COMPACTAS
   ========================================================= */

.bvauth-page--compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) 16px max(35px, env(safe-area-inset-bottom));
    background: radial-gradient( circle at 20% 10%, rgba(255, 7, 135, .12), transparent 32% ), linear-gradient( 180deg, #fffafd, #f4f5f8 );
}

.bvauth-compact-shell {
    width: min(100%, 520px);
}

.bvauth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--bvauth-soft);
    font-size: .68rem;
    font-weight: 850;
    text-decoration: none;
}

    .bvauth-back:hover {
        color: var(--bvauth-accent);
    }

.bvauth-card--compact {
    padding: 31px;
    border: 1px solid var(--bvauth-border);
    border-radius: 25px;
    background: #ffffff;
    box-shadow: var(--bvauth-shadow);
}

.bvauth-feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 18px;
    background: var(--bvauth-accent-soft);
    color: var(--bvauth-accent);
    font-size: 1.15rem;
}

.bvauth-feature-icon--warning {
    background: #fff2e6;
    color: #bd6a24;
}

.bvauth-neutral-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 11px;
    border: 1px solid var(--bvauth-border-soft);
    border-radius: 14px;
    background: #f8f9fb;
}

    .bvauth-neutral-note > i {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: var(--bvauth-accent-soft);
        color: var(--bvauth-accent);
    }

    .bvauth-neutral-note p {
        margin: 0;
        color: var(--bvauth-soft);
        font-size: .64rem;
        line-height: 1.42;
    }

.bvauth-password-rules {
    display: grid;
    gap: 6px;
    margin: -5px 0 0;
    padding: 0;
    color: var(--bvauth-muted);
    font-size: .61rem;
    list-style: none;
}

    .bvauth-password-rules li {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .bvauth-password-rules i {
        font-size: .48rem;
    }

    .bvauth-password-rules li.is-valid {
        color: #278458;
    }

        .bvauth-password-rules li.is-valid i {
            font-size: .68rem;
        }

/* =========================================================
   DIÁLOGOS
   ========================================================= */

.bvauth-dialog {
    width: min(calc(100% - 24px), 500px);
    max-height: calc(100dvh - 30px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    background: transparent;
}

    .bvauth-dialog::backdrop {
        background: rgba(15, 17, 23, .58);
        backdrop-filter: blur(5px);
    }

.bvauth-dialog__surface {
    max-height: calc(100dvh - 30px);
    padding: 23px;
    overflow-y: auto;
    border: 1px solid var(--bvauth-border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--bvauth-shadow);
}

.bvauth-dialog__header {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
}

    .bvauth-dialog__header > span {
        width: 45px;
        height: 45px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--bvauth-accent-soft);
        color: var(--bvauth-accent);
    }

    .bvauth-dialog__header small {
        color: var(--bvauth-accent);
        font-size: .58rem;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .bvauth-dialog__header h2 {
        margin: 3px 0 0;
        font-size: 1rem;
        font-weight: 900;
    }

    .bvauth-dialog__header button {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f2f5;
        color: var(--bvauth-soft);
    }

.bvauth-dialog__description {
    margin: 18px 0 0;
    color: var(--bvauth-soft);
    font-size: .72rem;
    line-height: 1.5;
}

.bvauth-code-form {
    display: grid;
    gap: 15px;
    margin-top: 17px;
}

.bvauth-code-input {
    width: 100%;
    height: 58px;
    padding: 0 14px;
    border: 1px solid var(--bvauth-border);
    border-radius: 15px;
    outline: 0;
    background: #ffffff;
    color: var(--bvauth-text);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .33em;
    text-align: center;
}

    .bvauth-code-input:focus {
        border-color: var(--bvauth-accent);
        box-shadow: 0 0 0 4px var(--bvauth-accent-soft);
    }

.bvauth-resend {
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--bvauth-accent);
    font-size: .67rem;
    font-weight: 900;
}

    .bvauth-resend:disabled {
        color: var(--bvauth-muted);
        cursor: wait;
    }

/* =========================================================
   INSTALAÇÃO IOS
   ========================================================= */

.bvauth-ios-steps {
    display: grid;
    gap: 11px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

    .bvauth-ios-steps li {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        border: 1px solid var(--bvauth-border-soft);
        border-radius: 14px;
        background: #fafbfc;
    }

        .bvauth-ios-steps li > span {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: var(--bvauth-accent);
            color: #ffffff;
            font-size: .7rem;
            font-weight: 900;
        }

    .bvauth-ios-steps strong {
        font-size: .7rem;
    }

    .bvauth-ios-steps p {
        margin: 3px 0 0;
        color: var(--bvauth-soft);
        font-size: .62rem;
        line-height: 1.4;
    }

/* =========================================================
   DESCOBERTA
   ========================================================= */

.bvauth-discover-dialog {
    width: min(calc(100% - 20px), 680px);
}

.bvauth-discover-dialog__surface {
    padding: 18px;
}

.bvauth-discover-media {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 68dvh;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 18px;
    background: #12141a;
}

    .bvauth-discover-media video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        background: #12141a;
    }

.bvauth-video-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 9px;
    color: #ffffff;
    font-size: .72rem;
    text-align: center;
}

    .bvauth-video-loading[hidden] {
        display: none;
    }

.bvauth-discover-location {
    margin: 12px 0 0;
    color: var(--bvauth-soft);
    font-size: .68rem;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   FEEDBACK
   ========================================================= */

.bvauth-feedback {
    position: fixed;
    z-index: 4000;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: min(calc(100% - 32px), 420px);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bvauth-border);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 17px 45px rgba(20, 24, 34, .16);
}

    .bvauth-feedback[hidden] {
        display: none;
    }

.bvauth-feedback__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
}

.bvauth-feedback.is-success .bvauth-feedback__icon {
    background: #eaf8f1;
    color: #278458;
}

.bvauth-feedback.is-error .bvauth-feedback__icon {
    background: #fff0f4;
    color: #be2b60;
}

.bvauth-feedback.is-info .bvauth-feedback__icon {
    background: var(--bvauth-accent-soft);
    color: var(--bvauth-accent);
}

.bvauth-feedback strong {
    display: block;
    font-size: .72rem;
}

.bvauth-feedback p {
    margin: 3px 0 0;
    color: var(--bvauth-soft);
    font-size: .63rem;
    line-height: 1.4;
}

.bvauth-feedback button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f2f5;
    color: var(--bvauth-soft);
}

.bvauth-body :focus-visible {
    outline: 3px solid rgba(255, 7, 135, .3);
    outline-offset: 2px;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 781px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .bvauth-body {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .bvauth-app,
    .bvauth-page,
    .bvauth-page--video {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .bvauth-page--compact {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        align-items: flex-start;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
    .bvauth-page--video {
        grid-template-rows: minmax(0, 1fr);
    }

    .bvauth-visual {
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        overflow: hidden;
    }

    .bvauth-panel {
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) and (min-width: 781px) {
    .bvauth-page--video {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    }

    .bvauth-panel {
        padding-right: 26px;
        padding-left: 26px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 780px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .bvauth-body,
    .bvauth-app,
    .bvauth-page,
    .bvauth-page--video {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .bvauth-page--video {
        display: block;
    }

    .bvauth-visual {
        display: none;
    }

    .bvauth-panel {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        align-items: flex-start;
        padding: max(28px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
        overflow: visible;
        background: radial-gradient( circle at 90% 4%, rgba(255, 7, 135, .08), transparent 28% ), #ffffff;
    }

    .bvauth-card {
        width: min(100%, 520px);
    }



    .bvauth-discover-trigger {
        display: inline-flex;
    }

    /* Descoberta em tela cheia */

    .bvauth-discover-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: #000000;
    }

    .bvauth-discover-dialog__surface {
        position: relative;
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #000000;
        box-shadow: none;
    }

    .bvauth-discover-dialog .bvauth-dialog__header {
        position: absolute;
        z-index: 10;
        top: max(14px, env(safe-area-inset-top));
        right: 14px;
        display: block;
    }

        .bvauth-discover-dialog .bvauth-dialog__header > span,
        .bvauth-discover-dialog .bvauth-dialog__header > div {
            display: none;
        }

        .bvauth-discover-dialog .bvauth-dialog__header button {
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255, 255, 255, .25);
            background: rgba(0, 0, 0, .58);
            color: #ffffff;
            backdrop-filter: blur(10px);
        }

    .bvauth-discover-media {
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        aspect-ratio: auto;
        overflow: hidden;
        border-radius: 0;
        background: #000000;
    }

        .bvauth-discover-media video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #000000;
        }

    .bvauth-discover-location {
        position: absolute;
        z-index: 5;
        right: 18px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 18px;
        margin: 0;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(0, 0, 0, .52);
        color: #ffffff;
        backdrop-filter: blur(10px);
    }


    .bvauth-access-logo {
        margin-bottom: 21px;
    }

        .bvauth-access-logo img {
            width: 250px;
        }



    .bvauth-page--compact {
        align-items: flex-start;
        justify-content: center;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-right: 18px;
        padding-left: 18px;
    }

    .bvauth-compact-logo img {
        width: min(100%, 190px);
    }

}

@media (max-width: 520px) {
    .bvauth-panel {
        padding-right: 15px;
        padding-left: 15px;
    }

    .bvauth-card__header {
        margin-bottom: 22px;
    }

        .bvauth-card__header h1,
        .bvauth-card__header h2 {
            font-size: 1.65rem;
        }

    .bvauth-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .bvauth-button,
    .bvauth-google {
        min-height: 50px;
    }

    .bvauth-install {
        grid-template-columns: 40px minmax(0, 1fr);
    }

        .bvauth-install button {
            grid-column: 1 / -1;
            width: 100%;
        }

    .bvauth-card--compact {
        padding: 23px 18px;
        border-radius: 21px;
    }

    .bvauth-page--compact {
        align-items: flex-start;
        padding-top: max(23px, env(safe-area-inset-top));
    }

    /*
     * Feedback / alertas
     * Aumento moderado para melhorar a leitura no celular.
     * A estrutura principal continua sendo definida
     * no bloco global de .bvauth-feedback.
     */
    .bvauth-feedback {
        right: 10px;
        left: 10px;
        width: auto;
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        gap: 11px;
        padding: 13px;
    }

    .bvauth-feedback__icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .bvauth-feedback strong {
        font-size: .82rem;
        line-height: 1.3;
    }

    .bvauth-feedback p {
        margin-top: 4px;
        font-size: .72rem;
        line-height: 1.45;
    }

    .bvauth-feedback button {
        width: 34px;
        height: 34px;
    }

    .bvauth-dialog__surface {
        padding: 18px;
    }


    .bvauth-compact-logo {
        margin-bottom: 16px;
    }

        .bvauth-compact-logo img {
            width: min(100%, 170px);
        }
}

@media (prefers-reduced-motion: reduce) {
    .bvauth-button,
    .bvauth-google,
    .bvauth-input-wrap,
    .bvauth-feedback {
        transition: none;
    }
}
