/* ================= LOGIN (Views/Home/Index.cshtml) ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= TEMAS (tema.js coloca data-tema no <html>) ================= */
:root {
    --fundo: #eef0f7;
    --rua: #e1e4ee;
    --quadra: #ffffff;
    --quadra-lado: #d7dbe8;
    --parque: #c4edd2;
    --parque-lado: #a6dcb8;
    --agua: #cfe2ff;
    --texto: #0f1222;
    --texto-suave: #5f6480;
    --vidro: rgba(255, 255, 255, .74);
    --vidro-borda: rgba(255, 255, 255, .95);
    --campo: #ffffff;
    --campo-borda: rgba(15, 18, 34, .08);
    --sutil: rgba(15, 18, 34, .05);
    --marca: #5b5bf6;
    --marca-grad: linear-gradient(135deg, #6d5efc 0%, #3fa7ff 100%);
    --texto-grad: linear-gradient(90deg, #6d5efc, #3fa7ff, #ff5fa2, #6d5efc);
    --sombra: 0 30px 80px rgba(20, 24, 60, .18);
    --sombra-sm: 0 2px 10px rgba(20, 24, 60, .08);
    --veu: radial-gradient(1100px 800px at 18% 45%, rgba(238, 240, 247, .96) 0%, rgba(238, 240, 247, .75) 45%, rgba(238, 240, 247, .15) 100%);
    --luz: transparent;
    color-scheme: light;
}

[data-tema="escuro"] {
    --fundo: #0a0c1a;
    --rua: #0c0f22;
    --quadra: #161b38;
    --quadra-lado: #0f1329;
    --parque: #123b2c;
    --parque-lado: #0b2a1f;
    --agua: #10294d;
    --texto: #eef0ff;
    --texto-suave: #9297b8;
    --vidro: rgba(20, 24, 48, .72);
    --vidro-borda: rgba(255, 255, 255, .09);
    --campo: rgba(255, 255, 255, .06);
    --campo-borda: rgba(255, 255, 255, .1);
    --sutil: rgba(255, 255, 255, .06);
    --marca: #8b8bff;
    --sombra: 0 30px 80px rgba(0, 0, 0, .55);
    --sombra-sm: 0 2px 10px rgba(0, 0, 0, .3);
    --veu: radial-gradient(1100px 800px at 18% 45%, rgba(10, 12, 26, .94) 0%, rgba(10, 12, 26, .7) 45%, rgba(10, 12, 26, .2) 100%);
    --luz: rgba(109, 94, 252, .2);
    color-scheme: dark;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto);
    background: var(--fundo);
    -webkit-font-smoothing: antialiased;
    transition: background .4s ease, color .4s ease;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ================= CIDADE VIVA (fundo) ================= */
.cidade {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    perspective: 1400px;
    cursor: crosshair;
}

/* plano inclinado com os quarteiroes */
.plano {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220vmax;
    height: 220vmax;
    transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-32deg);
    animation: sobrevoo 60s ease-in-out infinite alternate;
}

.quadras {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(var(--cols, 20), 1fr);
    gap: 26px;
    padding: 26px;
    background: var(--rua);
    transition: background .4s ease;
}

    .quadras i {
        display: block;
        border-radius: 12px;
        background: var(--quadra);
        box-shadow: 0 7px 0 var(--quadra-lado), 0 18px 28px rgba(15, 18, 34, .08);
        transition: background .4s ease, box-shadow .4s ease;
    }

        /* predios mais altos */
        .quadras i.alta {
            box-shadow: 0 16px 0 var(--quadra-lado), 0 30px 40px rgba(15, 18, 34, .12);
        }

        .quadras i.parque {
            background: var(--parque);
            box-shadow: 0 4px 0 var(--parque-lado);
        }

        .quadras i.agua {
            border-radius: 4px;
            background: var(--agua);
            box-shadow: none;
            margin: -13px;
        }

/* onda de radar saindo do "seu bairro" */
.radar {
    position: absolute;
    right: 22%;
    top: 58%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3fa7ff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .8);
}

    .radar::before,
    .radar::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        border: 2px solid rgba(63, 167, 255, .6);
        animation: radar 3s ease-out infinite;
    }

    .radar::after {
        animation-delay: 1.5s;
    }

/* veu para o texto ficar legivel sobre o mapa */
.veu {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--veu);
    transition: background .4s ease;
}

/* luz que segue o mouse (so aparece no tema escuro) */
.luz {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), var(--luz), transparent 60%);
}

/* ================= PINOS (index.js) ================= */
.pinos {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pino {
    position: absolute;
    width: 0;
    height: 0;
}

    .pino .cabeca {
        position: absolute;
        left: -21px;
        top: -50px;
        width: 42px;
        height: 42px;
        padding: 3px;
        border-radius: 50% 50% 50% 6px;
        transform: rotate(-45deg);
        background: var(--marca-grad);
        box-shadow: 0 10px 22px rgba(20, 24, 60, .35);
        animation: cair .55s cubic-bezier(.2, 1.4, .4, 1) both;
    }

        .pino .cabeca span {
            width: 100%;
            height: 100%;
            display: grid;
            place-items: center;
            font-size: 18px;
            border-radius: 50%;
            background: #fff;
            transform: rotate(45deg);
        }

    .pino.problema .cabeca {
        background: linear-gradient(135deg, #ff4d6d, #ff8a5b);
    }

    .pino.ouro .cabeca {
        background: linear-gradient(135deg, #ffd54a, #f59e0b);
    }

    .pino.verde .cabeca {
        background: linear-gradient(135deg, #16b37e, #5fd8a8);
    }

    /* sombra no chao */
    .pino::before {
        content: "";
        position: absolute;
        left: -10px;
        top: -4px;
        width: 20px;
        height: 7px;
        border-radius: 50%;
        background: rgba(15, 18, 34, .25);
        animation: sombra .55s ease both;
    }

    /* onda quando o pino cai */
    .pino::after {
        content: "";
        position: absolute;
        left: -22px;
        top: -12px;
        width: 44px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid rgba(91, 91, 246, .6);
        opacity: 0;
        animation: impacto .9s ease-out .35s;
    }

    .pino.saindo {
        transition: opacity .5s ease, transform .5s ease;
        opacity: 0;
        transform: translateY(-10px);
    }

/* balao de atividade ao lado do pino */
.bolha {
    position: absolute;
    left: 26px;
    top: -62px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px 8px 8px;
    white-space: nowrap;
    border-radius: 14px;
    background: var(--vidro);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra-sm);
    animation: bolha .45s cubic-bezier(.2, 1.2, .4, 1) .3s both;
}

    .bolha .av {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 800;
        color: #fff;
        border-radius: 50%;
    }

    .bolha b {
        display: block;
        font-size: 12.5px;
        font-weight: 700;
    }

    .bolha small {
        font-size: 11px;
        color: var(--texto-suave);
    }

    /* perto da borda direita o balao abre para a esquerda */
    .pino.esq .bolha {
        left: auto;
        right: 26px;
    }

/* coracoes quando o usuario toca no mapa */
.coracao {
    position: absolute;
    font-size: 18px;
    animation: subirCoracao 1.1s ease-out forwards;
}

/* ================= BOTAO DE TEMA ================= */
.btn-tema {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    z-index: 10;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--texto);
    cursor: pointer;
    border-radius: 50%;
    background: var(--vidro);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra-sm);
    transition: transform .2s ease;
}

    .btn-tema:hover {
        transform: rotate(18deg) scale(1.06);
    }

    .btn-tema svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .btn-tema .ico-sol,
    [data-tema="escuro"] .btn-tema .ico-lua {
        display: none;
    }

    [data-tema="escuro"] .btn-tema .ico-sol {
        display: block;
    }

/* ================= CONTEUDO ================= */
.login {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 32px 32px;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 64px;
    pointer-events: none; /* clique passa para o mapa ao fundo */
}

    .login > * {
        pointer-events: auto;
    }

/* ================= APRESENTACAO (lado esquerdo) ================= */
.intro {
    max-width: 580px;
    animation: subir .6s ease both;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}

    .logo .mark {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        font-size: 20px;
        border-radius: 13px;
        background: var(--marca-grad);
        box-shadow: 0 8px 24px rgba(109, 94, 252, .45);
    }

    .logo b {
        color: transparent;
        background: var(--marca-grad);
        -webkit-background-clip: text;
        background-clip: text;
    }

/* selo "ao vivo" */
.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--vidro);
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra-sm);
}

    .live i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #16d68f;
        animation: pulso 1.8s ease-out infinite;
    }

.titulo {
    font-size: clamp(40px, 5.2vw, 70px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.045em;
}

/* frase que se escreve sozinha (index.js) */
.rotador {
    display: block;
    min-height: 1.05em;
    white-space: nowrap;
}

    .rotador > span {
        color: transparent;
        background: var(--texto-grad);
        background-size: 300% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        animation: degrade 8s linear infinite;
    }

    .rotador .cursor {
        display: inline-block;
        width: 4px;
        height: .82em;
        margin-left: 4px;
        vertical-align: -.06em;
        border-radius: 2px;
        background: var(--marca);
        animation: piscar 1s steps(1) infinite;
    }

.texto {
    max-width: 500px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--texto-suave);
}

.beneficios {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    list-style: none;
}

    .beneficios li {
        display: flex;
        align-items: center;
        gap: 14px;
        width: fit-content;
        padding: 10px 18px 10px 10px;
        border-radius: 16px;
        background: var(--vidro);
        border: 1px solid var(--vidro-borda);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: var(--sombra-sm);
        animation: subir .6s ease both;
    }

        .beneficios li:nth-child(2) { animation-delay: .1s; }
        .beneficios li:nth-child(3) { animation-delay: .2s; }

        .beneficios li > span {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            flex-shrink: 0;
            font-size: 19px;
            border-radius: 12px;
            background: var(--sutil);
        }

        .beneficios li b {
            display: block;
            font-size: 14px;
        }

        .beneficios li small {
            font-size: 13px;
            color: var(--texto-suave);
        }

.dica {
    margin-top: 26px;
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-suave);
    animation: flutuar 3s ease-in-out infinite;
}

/* ================= CARD DE LOGIN ================= */
.card {
    position: relative;
    width: 100%;
    padding: 38px 34px 28px;
    border-radius: 30px;
    background: var(--vidro);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra);
    animation: subir .6s ease .1s both;
}

    /* brilho em degrade atras do card */
    .card::before {
        content: "";
        position: absolute;
        inset: -2px;
        z-index: -1;
        border-radius: 32px;
        background: var(--texto-grad);
        background-size: 300% 100%;
        filter: blur(26px);
        opacity: .35;
        animation: degrade 10s linear infinite;
    }

.title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
}

    .title span {
        display: inline-block;
        transform-origin: 70% 70%;
        animation: acenar 2.4s ease-in-out 1s 2;
    }

.subtitle {
    margin: 6px 0 26px;
    font-size: 15px;
    color: var(--texto-suave);
}

/* ================= FORMULARIO ================= */
form {
    display: flex;
    flex-direction: column;
}

/* campo com label flutuante (placeholder=" " no input) */
.fld {
    position: relative;
    margin-bottom: 14px;
}

    .fld input {
        width: 100%;
        height: 60px;
        padding: 22px 52px 6px 48px;
        font-family: inherit;
        font-size: 16px; /* 16px evita o zoom automatico no iPhone */
        color: var(--texto);
        background: var(--campo);
        border: 1.5px solid var(--campo-borda);
        border-radius: 18px;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .fld input:focus {
            border-color: var(--marca);
            box-shadow: 0 0 0 5px rgba(91, 91, 246, .14);
        }

        /* autocompletar do navegador sem fundo amarelo */
        .fld input:-webkit-autofill,
        .fld input:-webkit-autofill:hover,
        .fld input:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--texto);
            -webkit-box-shadow: 0 0 0 1000px var(--quadra) inset;
            transition: background-color 9999s ease-in-out 0s;
        }

    .fld label {
        position: absolute;
        left: 48px;
        top: 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--texto-suave);
        pointer-events: none;
        transition: top .18s ease, font-size .18s ease, color .18s ease;
    }

    .fld input:focus + label,
    .fld input:not(:placeholder-shown) + label {
        top: 9px;
        font-size: 11px;
        font-weight: 700;
        color: var(--marca);
    }

    /* separado: se o navegador nao conhecer o seletor, nao derruba a regra de cima */
    .fld input:-webkit-autofill + label {
        top: 9px;
        font-size: 11px;
        font-weight: 700;
        color: var(--marca);
    }

    .fld .ico {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        fill: var(--texto-suave);
        pointer-events: none;
        transition: fill .2s ease;
    }

    .fld:focus-within .ico {
        fill: var(--marca);
    }

/* botao mostrar/ocultar senha (index.js) */
.toggle-senha {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease;
}

    .toggle-senha svg {
        width: 18px;
        height: 18px;
        fill: var(--texto-suave);
        transition: fill .2s ease;
    }

    .toggle-senha:hover {
        background: var(--sutil);
    }

    .toggle-senha.ativo svg {
        fill: var(--marca);
    }

/* ================= BOTOES ================= */
.btn-login {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 58px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--marca-grad);
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(91, 91, 246, .4);
    cursor: pointer;
    transition: box-shadow .2s ease, transform .12s ease;
}

    .btn-login svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        transition: transform .2s ease;
    }

    /* brilho passando pelo botao */
    .btn-login::after {
        content: "";
        position: absolute;
        top: 0;
        left: -60%;
        width: 40%;
        height: 100%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
        transform: skewX(-20deg);
        animation: brilho 3.5s ease-in-out 1.2s infinite;
    }

    .btn-login:hover {
        box-shadow: 0 14px 34px rgba(91, 91, 246, .55);
    }

        .btn-login:hover svg {
            transform: translateX(3px);
        }

    .btn-login:active {
        transform: scale(.98);
    }

.btn-login:focus-visible,
.toggle-senha:focus-visible,
.btn-tema:focus-visible {
    outline: 2px solid var(--marca);
    outline-offset: 2px;
}

/* ================= TROCA ENTRE ENTRAR E CRIAR CONTA ================= */
.tela {
    display: none;
}

    .tela.on {
        display: block;
        animation: subir .4s ease both;
    }

.trocar {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
    color: var(--texto-suave);
}

    .trocar a {
        font-weight: 700;
        color: var(--marca);
        text-decoration: none;
    }

        .trocar a:hover {
            text-decoration: underline;
        }

/* ================= CADASTRO: ETAPAS ================= */
.passos {
    display: flex;
    gap: 6px;
    margin: -8px 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: passo;
}

    .passos li {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        color: var(--texto-suave);
        transition: color .2s ease;
    }

        /* barrinha de progresso de cada etapa */
        .passos li::before {
            content: "";
            height: 5px;
            border-radius: 99px;
            background: var(--sutil);
            transition: background .3s ease;
        }

        .passos li i {
            display: none;
        }

        .passos li.on,
        .passos li.feito {
            color: var(--texto);
        }

            .passos li.on::before,
            .passos li.feito::before {
                background: var(--marca-grad);
            }

            .passos li.feito::after {
                content: " ✓";
            }

.etapa {
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

    .etapa.on {
        display: block;
        animation: entrar .35s ease both;
    }

    .etapa.volta {
        animation-name: entrarVolta;
    }

/* campo sem icone (endereco) */
.fld.sem-ico input {
    padding-left: 18px;
    padding-right: 18px;
}

.fld.sem-ico label {
    left: 18px;
}

/* campo com erro (index.js) */
.fld.erro input {
    border-color: #ff4d6d;
    box-shadow: 0 0 0 5px rgba(255, 77, 109, .12);
}

.fld.erro label {
    color: #ff4d6d;
}

/* dois campos lado a lado */
.fld-linha {
    display: grid;
    gap: 10px;
}

    .fld-linha.num {
        grid-template-columns: 1fr 1.5fr;
    }

    .fld-linha.uf {
        grid-template-columns: 1fr 84px;
    }

        .fld-linha.uf input[name="uf"] {
            text-transform: uppercase;
        }

/* ================= CADASTRO: CEP ================= */
.cep-girando {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2.5px solid var(--sutil);
    border-top-color: var(--marca);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s ease;
    animation: girar .7s linear infinite;
}

#fldCep.buscando .cep-girando {
    opacity: 1;
}

.nao-sei {
    display: inline-block;
    margin: -6px 0 14px 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--texto-suave);
}

    .nao-sei:hover {
        color: var(--marca);
    }

/* aviso quando o CEP e encontrado */
.achou {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .12), rgba(63, 167, 255, .12));
    border: 1px solid rgba(109, 94, 252, .22);
    animation: bolha .35s ease both;
}

    .achou[hidden] {
        display: none;
    }

    .achou .pv-ico {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: var(--marca-grad);
    }

    .achou b {
        display: block;
        font-size: 14px;
    }

    .achou small {
        font-size: 12px;
        color: var(--texto-suave);
    }

/* ================= CADASTRO: SENHA ================= */
.forca {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--texto-suave);
}

.forca-barra {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

    .forca-barra i {
        height: 5px;
        border-radius: 99px;
        background: var(--sutil);
        transition: background .25s ease;
    }

.forca[data-nivel="1"] .forca-barra i:nth-child(-n+1) { background: #ff4d6d; }
.forca[data-nivel="2"] .forca-barra i:nth-child(-n+2) { background: #ff8a5b; }
.forca[data-nivel="3"] .forca-barra i:nth-child(-n+3) { background: #f2b705; }
.forca[data-nivel="4"] .forca-barra i:nth-child(-n+4) { background: #16b37e; }

.regras {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

    .regras li {
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 600;
        color: var(--texto-suave);
        background: var(--sutil);
        border-radius: 99px;
        transition: background .2s ease, color .2s ease;
    }

        .regras li::before {
            content: "○ ";
        }

        .regras li.ok {
            color: #0e9f6e;
            background: rgba(22, 179, 126, .14);
        }

            .regras li.ok::before {
                content: "✓ ";
            }

[data-tema="escuro"] .regras li.ok {
    color: #4fe0a8;
}

/* ================= CADASTRO: CHECKBOX ================= */
.check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--texto-suave);
    cursor: pointer;
}

    .check input {
        position: absolute;
        opacity: 0;
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .check a {
        font-weight: 600;
        color: var(--marca);
    }

    .check .caixa {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        background: var(--campo);
        border: 1.5px solid var(--campo-borda);
        border-radius: 7px;
        transition: background .2s ease, border-color .2s ease;
    }

        .check .caixa::after {
            content: "";
            width: 6px;
            height: 11px;
            margin-top: -2px;
            border: solid #fff;
            border-width: 0 2.5px 2.5px 0;
            transform: rotate(45deg) scale(0);
            transition: transform .15s ease;
        }

    .check input:checked + .caixa {
        background: var(--marca-grad);
        border-color: transparent;
    }

        .check input:checked + .caixa::after {
            transform: rotate(45deg) scale(1);
        }

    .check input:focus-visible + .caixa {
        outline: 2px solid var(--marca);
        outline-offset: 2px;
    }

    .check.erro .caixa {
        border-color: #ff4d6d;
    }

/* ================= CADASTRO: BOTOES ================= */
.acoes-cadastro {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

    .acoes-cadastro .btn-login {
        flex: 1;
        margin-top: 0;
    }

.btn-voltar {
    height: 58px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--texto);
    background: var(--sutil);
    border: 1.5px solid var(--campo-borda);
    border-radius: 18px;
    cursor: pointer;
    transition: background .2s ease;
}

    .btn-voltar[hidden] {
        display: none;
    }

    .btn-voltar:hover {
        background: var(--campo-borda);
    }

    .btn-voltar:focus-visible {
        outline: 2px solid var(--marca);
        outline-offset: 2px;
    }

/* ================= CONFIRME SEU EMAIL (depois do cadastro) ================= */
.confirme {
    text-align: center;
}

    .confirme .subtitle b {
        color: var(--texto);
        word-break: break-all;
    }

    .confirme .btn-login {
        text-decoration: none;
    }

.envelope {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .16), rgba(63, 167, 255, .16));
    animation: flutuar 3s ease-in-out infinite;
}

.confirme-passos {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    text-align: left;
}

    .confirme-passos li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        font-size: 14.5px;
        color: var(--texto-suave);
        border-bottom: 1px solid var(--campo-borda);
    }

        .confirme-passos li:last-child {
            border-bottom: none;
        }

        .confirme-passos li b {
            color: var(--texto);
        }

        .confirme-passos li span {
            flex: 0 0 auto;
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            font-size: 13px;
            font-weight: 800;
            color: #fff;
            background: var(--marca-grad);
            border-radius: 50%;
        }

.confirme-dica {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--texto-suave);
    background: var(--sutil);
    border-radius: 14px;
}

/* ================= PREVIA (o que tem dentro do app) ================= */
.previa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--campo-borda);
}

.previa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

    .previa-item b {
        display: block;
        font-size: 13px;
    }

    .previa-item small {
        font-size: 11px;
        color: var(--texto-suave);
    }

.pv-ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 19px;
    border-radius: 50% 50% 50% 6px;
    transform: rotate(-45deg);
}

    /* o emoji fica em pe dentro do pino girado */
    .pv-ico i {
        font-style: normal;
        transform: rotate(45deg);
    }

    .pv-ico.c1 { background: linear-gradient(135deg, #ff4d6d, #ff8a5b); }
    .pv-ico.c2 { background: linear-gradient(135deg, #ffd54a, #f59e0b); }
    .pv-ico.c3 { background: var(--marca-grad); }

/* ================= RODAPE ================= */
footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 16px max(18px, env(safe-area-inset-bottom));
    font-size: 12px;
    text-align: center;
    color: var(--texto-suave);
}

    footer small {
        opacity: .8;
    }

/* ================= LOADING ================= */
/* igual ao das telas internas (mesma regra do topbar.css) */
#loading .spinner {
    border-color: rgba(0, 0, 0, 0.12);
    border-top-color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

[data-tema="escuro"] #loading .spinner {
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
}

/* ================= ANIMACOES ================= */
@keyframes subir {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sobrevoo {
    from { transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-32deg); }
    to { transform: translate(-46%, -53%) rotateX(52deg) rotateZ(-26deg); }
}

@keyframes cair {
    0% { opacity: 0; transform: translateY(-70px) rotate(-45deg); }
    100% { opacity: 1; transform: translateY(0) rotate(-45deg); }
}

@keyframes sombra {
    from { opacity: 0; transform: scale(.3); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes impacto {
    0% { opacity: .9; transform: scale(.4); }
    100% { opacity: 0; transform: scale(2.2); }
}

@keyframes bolha {
    from { opacity: 0; transform: translateY(8px) scale(.9); }
    to { opacity: 1; transform: none; }
}

@keyframes subirCoracao {
    from { opacity: 1; transform: translate(-50%, -40px) scale(.6); }
    to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -120px) scale(1.2); }
}

@keyframes radar {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(6); }
}

@keyframes pulso {
    0% { box-shadow: 0 0 0 0 rgba(22, 214, 143, .7); }
    100% { box-shadow: 0 0 0 10px rgba(22, 214, 143, 0); }
}

@keyframes degrade {
    to { background-position: 300% 0; }
}

@keyframes piscar {
    50% { opacity: 0; }
}

@keyframes brilho {
    0% { left: -60%; }
    40%, 100% { left: 130%; }
}

@keyframes acenar {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}

@keyframes entrar {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes entrarVolta {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: none; }
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= RESPONSIVO ================= */
/* notebook baixo: menos texto para caber tudo sem rolar */
@media (max-height: 760px) and (min-width: 981px) {
    .logo {
        margin-bottom: 24px;
    }

    .beneficios li:nth-child(3),
    .dica {
        display: none;
    }
}

/* tablet e celular: uma coluna, card embaixo do titulo */
@media (max-width: 980px) {
    .login {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
        padding: max(22px, env(safe-area-inset-top)) 20px 24px;
    }

    .intro {
        max-width: 560px;
        text-align: center;
    }

    .logo {
        justify-content: center;
        margin-bottom: 22px;
    }

    .titulo {
        font-size: clamp(34px, 8vw, 52px);
    }

    .texto {
        margin: 14px auto 0;
        font-size: 15px;
    }

    .beneficios,
    .dica {
        display: none;
    }

    .card {
        max-width: 480px;
    }

    :root {
        --veu: linear-gradient(180deg, rgba(238, 240, 247, .55) 0%, rgba(238, 240, 247, .9) 55%, rgba(238, 240, 247, .97) 100%);
    }

    [data-tema="escuro"] {
        --veu: linear-gradient(180deg, rgba(10, 12, 26, .5) 0%, rgba(10, 12, 26, .88) 55%, rgba(10, 12, 26, .96) 100%);
    }

    .radar {
        right: 14%;
        top: 22%;
    }
}

@media (max-width: 480px) {
    .btn-tema {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .logo {
        font-size: 19px;
    }

        .logo .mark {
            width: 36px;
            height: 36px;
            font-size: 17px;
        }

    .live {
        font-size: 11px;
    }

    .titulo {
        font-size: 33px;
    }

    .rotador {
        white-space: normal;
        min-height: 2.1em; /* frases longas quebram em 2 linhas sem pular a tela */
    }

    .texto {
        font-size: 14.5px;
    }

    .card {
        padding: 28px 20px 22px;
        border-radius: 26px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .bolha {
        display: none; /* no celular so os pinos, sem baloes */
    }

    .btn-voltar {
        padding: 0 16px;
    }

    .fld-linha.uf {
        grid-template-columns: 1fr 72px;
    }
}

@media (max-width: 360px) {
    .texto,
    .previa {
        display: none;
    }

    .fld-linha.num {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* icone do app (wwwroot/img/logo.svg) no lugar do emoji */
img.mark {
    display: block;
    padding: 0;
    object-fit: contain;
    background: none !important;
}

/* instalar como app (js/pwa.js) */
.btn-instalar {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: 76px;
    z-index: 10;
    height: 46px;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--texto);
    cursor: pointer;
    border-radius: 999px;
    background: var(--vidro);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--vidro-borda);
    box-shadow: var(--sombra-sm);
}

    .btn-instalar[hidden] {
        display: none;
    }

/* entrar com Face ID / digital (js/biometria.js, so no app da loja) */
.bio-opcao {
    margin: 4px 0 14px;
}

    .bio-opcao[hidden],
    .btn-bio[hidden] {
        display: none;
    }

.btn-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--texto);
    cursor: pointer;
    border: 1.5px solid var(--vidro-borda);
    border-radius: 16px;
    background: var(--vidro);
}

    .btn-bio svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

