*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

:root {
    --azul:         #2999f5;
    --azul-escuro:  #1565d8;
    --preto:        #0f0f12;
    --branco:       #ffffff;
    --cinza-borda:  #d2d2d5;
    --texto:        #1a1a1a;
    --texto-sec:    #52525b;
    --texto-light:  #71717a;
    --sucesso:      #1b9b45;
    --erro:         #e53e3e;
    --radius:       10px;
    --radius-cartao: 18px;
    --trans:        all 0.22s ease;
    --largura-form: 480px;
    --fonte:        'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--fonte);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(101deg,
        #ffffff 0%,
        #ffffff 24%,
        #fcfdff 34%,
        #f7fafe 44%,
        #f1f6fd 56%,
        #eaf1fc 70%,
        #e4ecfb 85%,
        #dfe9fa 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(46% 40% at 74% 46%, rgba(41,153,245,.12) 0%, rgba(41,153,245,0) 70%),
        radial-gradient(34% 32% at 92% 82%, rgba(21,101,216,.08) 0%, rgba(21,101,216,0) 72%);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button {
    font-family: var(--fonte);
}

input {
    -webkit-appearance: none;
    appearance: none;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--branco) inset !important;
    -webkit-text-fill-color: var(--texto) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.pagina-login {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(460px, 40%) 1fr;
    align-items: center;
}

.lado-formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 36px;
    min-height: 100vh;
    min-height: 100dvh;
}

.logo-topo {
    display: inline-flex;
    align-items: center;
}

.logo-topo img {
    height: 46px;
    width: auto;
}

.form-wrapper {
    width: 100%;
    max-width: var(--largura-form);
    display: flex;
    flex-direction: column;
}

.cartao-login {
    background: var(--branco);
    border: 1px solid rgba(15,15,18,.07);
    border-radius: var(--radius-cartao);
    padding: 32px 36px 30px;
    box-shadow:
        0 2px 6px rgba(21,54,110,.04),
        0 20px 48px -18px rgba(21,54,110,.16);
}

.cartao-carregando {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: var(--texto-light);
}

.cartao-carregando .fa-spinner {
    font-size: 1.6rem;
    animation: girar 0.8s linear infinite;
}

.titulo {
    font-size: 1.72rem;
    font-weight: 800;
    color: var(--texto);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
    text-align: center;
}

.titulo + .formulario {
    margin-top: 22px;
}

.subtitulo {
    font-size: 0.94rem;
    color: var(--texto-sec);
    line-height: 1.5;
    margin-bottom: 22px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
}

.grupo-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-campo label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--texto-sec);
}

.label-com-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.link-esqueci {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--azul);
    transition: var(--trans);
}

.link-esqueci:hover {
    color: var(--azul-escuro);
    text-decoration: underline;
}

.grupo-campo > input,
.campo-senha input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    color: var(--texto);
    font-size: 1rem;
    transition: var(--trans);
    outline: none;
}

.grupo-campo > input::placeholder,
.campo-senha input::placeholder {
    color: var(--texto-light);
}

.grupo-campo > input:focus,
.campo-senha input:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(41,153,245,.14);
}

.grupo-campo > input.error,
.campo-senha input.error {
    border-color: var(--erro);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}

.grupo-campo > input.success,
.campo-senha input.success {
    border-color: var(--sucesso);
}

.campo-senha {
    position: relative;
    display: flex;
    align-items: center;
}

.campo-senha input {
    padding-right: 52px;
}

.btn-mostrar-senha {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--texto-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--trans);
}

.btn-mostrar-senha:hover {
    color: var(--preto);
}

.linha-acao {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 2px;
}

.bloco-captcha {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px 12px 12px;
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    background: #fafbfd;
}

.captcha-rotulo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto-sec);
}

.captcha-rotulo i {
    color: var(--azul);
}

.g-recaptcha {
    flex-shrink: 0;
    transform-origin: 0 0;
}

.btn-entrar {
    width: 100%;
    height: 50px;
    padding: 0 34px;
    background: var(--azul);
    border: none;
    border-radius: var(--radius);
    color: var(--branco);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(41,153,245,.28);
}

.btn-entrar:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(41,153,245,.36);
}

.btn-entrar:active {
    transform: translateY(0) scale(0.99);
}

.btn-entrar:disabled {
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    cursor: default;
}

.btn-entrar .fa-spinner {
    animation: girar 0.8s linear infinite;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

.rodape-form {
    margin-top: 18px;
    font-size: 0.94rem;
    color: var(--texto-sec);
    text-align: center;
}

.link-cadastro {
    color: var(--azul);
    font-weight: 600;
    transition: var(--trans);
}

.link-cadastro:hover {
    color: var(--azul-escuro);
    text-decoration: underline;
}

.selo-seguranca {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--texto-light);
}

.selo-seguranca i {
    font-size: 0.9rem;
}

.formulario-mobile-oculto {
    display: none !important;
}

.lado-vitrine {
    position: relative;
    align-self: stretch;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 32px 40px 66px 44px;
    overflow: hidden;
}

.vitrine-pontos {
    position: absolute;
    top: 26px;
    right: 46px;
    width: 190px;
    height: 150px;
    opacity: .55;
    pointer-events: none;
    background-image: radial-gradient(rgba(41,153,245,.42) 1.4px, transparent 1.5px);
    background-size: 15px 15px;
    -webkit-mask-image: linear-gradient(215deg, #000 10%, transparent 78%);
    mask-image: linear-gradient(215deg, #000 10%, transparent 78%);
}

.vitrine-texto {
    max-width: 620px;
    flex: 0 0 auto;
}

.vitrine-texto h2 {
    font-size: clamp(1.9rem, 2.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    color: var(--preto);
    margin-bottom: 14px;
}

.vitrine-texto p {
    font-size: clamp(0.98rem, 1.05vw, 1.14rem);
    color: var(--texto-sec);
    line-height: 1.55;
}

.vitrine-visual {
    position: relative;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    flex: 0 1 auto;
}

.vitrine-painel {
    position: relative;
    width: fit-content;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-19deg) rotateX(2deg);
    transform-origin: 50% 50%;
    box-shadow:
        0 4px 14px rgba(21,54,110,.06),
        0 34px 68px -26px rgba(21,54,110,.26),
        0 66px 130px -44px rgba(41,153,245,.34);
    transition: transform .8s cubic-bezier(.22,.68,.24,1);
}

.vitrine-painel img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(76vh, 860px);
}

.vitrine-visual:hover .vitrine-painel {
    transform: perspective(1400px) rotateY(-8deg) rotateX(1deg);
}

.vitrine-cartao {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 14px;
    background: var(--branco);
    border: 1px solid rgba(15,15,18,.05);
    box-shadow: 0 22px 46px -16px rgba(21,54,110,.24);
    animation: flutuarVitrine 6.5s ease-in-out infinite;
}

.vitrine-cartao-icone {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: .95rem;
}

.vitrine-cartao-icone.azul {
    background: var(--azul);
    box-shadow: 0 8px 18px rgba(41,153,245,.34);
}

.vitrine-cartao small {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: var(--texto-sec);
    line-height: 1.3;
}

.vitrine-cartao strong {
    display: block;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--preto);
    line-height: 1.35;
}

.vitrine-cartao strong em {
    font-style: normal;
    font-size: .82rem;
    font-weight: 700;
    margin-left: 4px;
}

.vitrine-cartao strong em.alta {
    color: var(--sucesso);
}

.vitrine-cartao strong em.baixa {
    color: var(--erro);
}

.vitrine-cartao > div > span {
    display: block;
    font-size: .78rem;
    color: var(--texto-light);
}

.vitrine-cartao-receitas {
    left: -18px;
    bottom: -28px;
}

.vitrine-cartao-despesas {
    left: 36%;
    bottom: -58px;
    animation-delay: 1.8s;
}

@keyframes flutuarVitrine {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.grupo-confiar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 2px;
}

.checkbox-confiar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--texto-sec);
}

.checkbox-confiar input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-marca {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--cinza-borda);
    border-radius: 6px;
    background: var(--branco);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}

.checkbox-marca::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid var(--branco);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -2px;
}

.checkbox-confiar input:checked + .checkbox-marca {
    background: var(--azul);
    border-color: var(--azul);
}

.checkbox-confiar input:checked + .checkbox-marca::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-confiar input:focus-visible + .checkbox-marca {
    box-shadow: 0 0 0 3px rgba(41,153,245,.14);
}

.campo-pin-definir {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    background: rgba(41,153,245,.04);
}

.campo-pin-definir > label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--texto-sec);
}

.pin-ajuda {
    font-size: 0.85rem;
    color: var(--texto-light);
    line-height: 1.4;
}

.pin-boxes {
    display: flex;
    gap: 12px;
}

.pin-box {
    width: 100%;
    max-width: 76px;
    height: 62px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--texto);
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    outline: none;
    transition: var(--trans);
    -webkit-text-security: disc;
    text-security: disc;
}

.pin-box:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(41,153,245,.14);
}

.pin-box.preenchido {
    border-color: var(--azul);
}

.pin-boxes.erro .pin-box {
    border-color: var(--erro);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}

.pin-boxes.erro {
    animation: tremer 0.4s ease;
}

@keyframes tremer {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

.pin-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.pin-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--branco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    flex-shrink: 0;
    background: #e4e4e7;
}

.titulo-pin {
    font-size: 1.5rem;
    margin-bottom: 2px;
    text-align: left;
}

.pin-nome {
    font-size: 1rem;
    font-weight: 600;
    color: var(--azul);
}

.pin-erro {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--erro);
}

.linha-acao-pin {
    margin-top: 8px;
}

.contas-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.conta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 44px 14px 18px;
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-family: var(--fonte);
    transition: var(--trans);
    position: relative;
}

.conta-card-remover {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--texto-light);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--trans);
}

.conta-card-remover:hover {
    background: rgba(229, 62, 62, 0.10);
    color: var(--erro);
}

.conta-card:hover {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(41,153,245,.12);
}

.conta-card:focus-visible {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(41,153,245,.14);
}

.avatar-iniciais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-weight: 700;
    text-transform: uppercase;
    user-select: none;
    letter-spacing: 0.01em;
}

.conta-card-avatar.avatar-iniciais {
    font-size: 1.5rem;
}

.pin-avatar.avatar-iniciais {
    font-size: 1.5rem;
}

.conta-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e4e4e7;
}

.conta-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.conta-card-nome {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.2;
}

.conta-card-sub {
    font-size: 0.85rem;
    color: var(--texto-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conta-card-seta {
    margin-left: auto;
    color: var(--texto-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

#sep-links-pin {
    color: var(--texto-light);
}

@media (max-width: 1400px) {
    .pagina-login {
        grid-template-columns: minmax(440px, 42%) 1fr;
    }
    .lado-vitrine {
        padding: 28px 28px 60px 36px;
        gap: 18px;
    }
    .vitrine-painel img {
        max-height: min(73vh, 780px);
    }
}

@media (max-height: 900px) {
    .lado-formulario {
        padding: 28px 32px;
        gap: 16px;
    }
    .logo-topo img {
        height: 120px;
    }
    .cartao-login {
        padding: 26px 32px 24px;
    }
    .titulo {
        font-size: 1.55rem;
    }
    .subtitulo {
        margin-bottom: 18px;
    }
    .formulario {
        gap: 14px;
    }
    .lado-vitrine {
        padding: 22px 28px 52px 32px;
        gap: 14px;
    }
    .vitrine-texto h2 {
        font-size: clamp(1.5rem, 1.95vw, 2.1rem);
    }
    .vitrine-texto p {
        font-size: 1rem;
    }
    .vitrine-painel img {
        max-height: 72vh;
    }
}

@media (max-width: 1180px) {
    .pagina-login {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .lado-vitrine {
        display: none;
    }
    .lado-formulario {
        width: 100%;
        max-width: 560px;
        padding: 48px 32px;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(168deg, #ffffff 0%, #ffffff 52%, #f4f8fe 78%, #eaf1fc 100%);
    }
    .lado-formulario {
        justify-content: flex-start;
        padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
        gap: 22px;
    }
    .logo-topo img {
        height: 54px;
    }
    .cartao-login {
        padding: 30px 24px 28px;
    }
    .titulo {
        font-size: 1.5rem;
    }
    .subtitulo {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .lado-formulario {
        padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
    }
    .cartao-login {
        padding: 26px 20px 24px;
        border-radius: 14px;
    }
    .titulo {
        font-size: 1.4rem;
    }
    .grupo-campo > input,
    .campo-senha input {
        height: 50px;
        font-size: 16px;
    }
    .pin-box {
        max-width: none;
        height: 58px;
        font-size: 1.4rem;
    }
    .pin-boxes {
        gap: 10px;
    }
    .bloco-captcha {
        padding: 12px 12px 14px;
    }
    .g-recaptcha {
        transform: scale(0.86);
        height: 68px;
    }
    .pin-header {
        margin-bottom: 22px;
    }
}
.pagina-simples {
    grid-template-columns: 1fr;
    justify-items: center;
}

.pagina-simples .lado-formulario {
    width: 100%;
    max-width: 560px;
}

.pagina-simples .subtitulo {
    text-align: center;
}

.btn-secundario {
    width: 100%;
    height: 50px;
    padding: 0 34px;
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    color: var(--texto-sec);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secundario:hover {
    border-color: var(--azul);
    color: var(--preto);
}

.linha-acao-dupla {
    flex-direction: row;
    gap: 12px;
}

.linha-acao-dupla > .btn-entrar,
.linha-acao-dupla > .btn-secundario {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0 16px;
}

.mensagem-status {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.mensagem-status.erro {
    background: rgba(229, 62, 62, 0.10);
    color: var(--erro);
}

.mensagem-status.sucesso {
    background: rgba(27, 155, 69, 0.10);
    color: var(--sucesso);
}

.oculto {
    display: none !important;
}

@media (max-width: 480px) {
    .linha-acao-dupla {
        flex-direction: column;
    }
    .linha-acao-dupla > .btn-entrar,
    .linha-acao-dupla > .btn-secundario {
        flex: 0 0 auto;
        width: 100%;
    }
}

.separador-passkey {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--texto-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.separador-passkey::before,
.separador-passkey::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cinza-borda);
}

.btn-passkey {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-passkey:hover {
    border-color: var(--azul);
    color: var(--preto);
}

.btn-passkey:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-passkey .fa-spinner {
    animation: girar 0.8s linear infinite;
}

.icone-passkey {
    width: 22px;
    height: 22px;
    color: var(--azul);
    flex-shrink: 0;
}

.passkey-oferta-fundo {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 15, 18, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    animation: passkeyFundo 0.2s ease;
}

.passkey-oferta {
    width: 100%;
    max-width: 420px;
    background: var(--branco);
    border-radius: var(--radius-cartao);
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: passkeySubir 0.25s ease;
}

.passkey-oferta-icone {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    background: rgba(41, 153, 245, 0.12);
    color: var(--azul);
    margin-bottom: 16px;
}

.passkey-oferta-icone svg {
    width: 34px;
    height: 34px;
}

.passkey-oferta-titulo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--texto);
    margin-bottom: 8px;
}

.passkey-oferta-texto {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--texto-sec);
    margin-bottom: 22px;
}

.passkey-oferta-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.passkey-oferta-acoes .btn-entrar,
.passkey-oferta-acoes .btn-secundario {
    width: 100%;
}

@media (min-width: 769px) {
    .passkey-oferta-fundo {
        align-items: center;
    }
}

@keyframes passkeyFundo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes passkeySubir {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.grecaptcha-badge {
    visibility: hidden;
}

.aviso-recaptcha {
    margin-top: 14px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--texto-light);
    text-align: center;
}

.aviso-recaptcha a {
    color: inherit;
    text-decoration: underline;
}

.link-usar-senha-passkey {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--azul);
}

@media (min-width: 769px) {
    .link-usar-senha-passkey {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        background: #020817;
    }

    body::before {
        background:
            linear-gradient(180deg,
                rgba(2, 8, 23, 0.10) 0%,
                rgba(2, 8, 23, 0.00) 30%,
                rgba(2, 8, 23, 0.55) 52%,
                rgba(2, 8, 23, 0.92) 70%,
                #020817 100%),
            url('icones/back-app.png') center top / cover no-repeat,
            #020817;
    }

    .lado-formulario {
        justify-content: space-between;
        align-items: stretch;
        gap: 24px;
        padding: calc(22px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
    }

    .logo-topo {
        align-self: flex-start;
    }

    .logo-topo img {
        height: 40px;
        filter: brightness(0) invert(1);
    }

    .form-wrapper {
        margin-top: auto;
        max-width: none;
    }

    .cartao-login {
        background: rgba(8, 16, 38, 0.58);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        padding: 26px 20px 22px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        backdrop-filter: blur(18px) saturate(140%);
    }

    .cartao-carregando {
        color: rgba(255, 255, 255, 0.7);
    }

    .titulo {
        color: #ffffff;
        font-size: 1.5rem;
    }

    .subtitulo,
    .grupo-campo label {
        color: rgba(255, 255, 255, 0.72);
    }

    .link-esqueci,
    .link-cadastro,
    .link-usar-senha-passkey {
        color: #7cc4ff;
    }

    .grupo-campo > input,
    .campo-senha input {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 16px;
    }

    .grupo-campo > input::placeholder,
    .campo-senha input::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }

    .grupo-campo > input:focus,
    .campo-senha input:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--azul);
        box-shadow: 0 0 0 3px rgba(41, 153, 245, 0.25);
    }

    input:-webkit-autofill,
    input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 30px #16213a inset !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .btn-mostrar-senha {
        color: rgba(255, 255, 255, 0.6);
    }

    .btn-mostrar-senha:hover {
        color: #ffffff;
    }

    .grupo-confiar {
        display: none;
    }

    .btn-entrar {
        height: 54px;
    }

    .separador-passkey {
        color: rgba(255, 255, 255, 0.5);
    }

    .separador-passkey::before,
    .separador-passkey::after {
        background: rgba(255, 255, 255, 0.16);
    }

    .btn-passkey {
        height: 56px;
        background: #ffffff;
        border: none;
        color: var(--preto);
        font-size: 1.05rem;
    }

    .btn-passkey:hover {
        color: var(--preto);
    }

    .aviso-recaptcha {
        color: rgba(255, 255, 255, 0.45);
    }

    .rodape-form {
        color: rgba(255, 255, 255, 0.7);
    }

    .selo-seguranca {
        align-self: center;
        color: rgba(255, 255, 255, 0.5);
    }

    body.passkey-disponivel:not(.formulario-senha-aberto) #formulario-login-desktop,
    body.passkey-disponivel:not(.formulario-senha-aberto) #view-login .separador-passkey {
        display: none;
    }

    body.passkey-disponivel:not(.formulario-senha-aberto) #view-login .titulo {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
    }

    body {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    input {
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
    }

    img,
    svg {
        -webkit-user-drag: none;
        pointer-events: none;
    }

    .pagina-login {
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }
}

html,
body,
.pagina-login {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.pagina-login::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}