/* Tela /entrar no layout do Lovable (Alan, 10/2026). Cores convertidas de oklch pra hex:
   brand #0067fd, brand-deep #004cd2, ink #020618, muted #f1f5f9, muted-fg #62748e,
   border #e2e8f0, success #05ab58 */

/* Reset so por classe: seletor de tag ganharia das regras de cada classe. */
.entrar,
.entrar *,
.entrar *::before,
.entrar *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
}

.entrar-body {
    margin: 0;
    background-color: #0067fd;
}

.entrar {
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    background-color: #0067fd;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
    color: #020618;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

.entrar svg {
    display: block;
    flex-shrink: 0;
}

.entrar-grade {
    display: grid;
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* Lado esquerdo */
.entrar-vitrine {
    position: relative;
    display: grid;
    gap: 2rem;
}

.entrar-chamada {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
}

.entrar-titulo {
    margin-top: -0.5rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
}

.entrar-app-texto {
    max-width: 17rem;
    font-size: 1.25rem;
    line-height: 1.375;
    color: #fff;
}

.entrar-lojas {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.entrar-loja {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
    background-color: #020618;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s;
}

.entrar-loja:hover {
    transform: translateY(-0.125rem);
    color: #fff;
    text-decoration: none;
}

.entrar-loja svg {
    height: 1.25rem;
    width: 1.25rem;
}

.entrar-loja-texto {
    line-height: 1.25;
}

.entrar-loja-rotulo {
    display: block;
    white-space: nowrap;
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.entrar-loja-nome {
    display: block;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
}

.entrar-celular {
    position: relative;
    min-height: 600px;
}

.entrar-celular-foto {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.entrar-flutuante {
    position: absolute;
    display: none;
    padding: 1.25rem;
    border-radius: 18px;
    background-color: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28), 0 24px 48px -12px rgba(0, 76, 210, 0.45);
}

.entrar-flutuante--concedido {
    right: 0;
    top: 12%;
    width: 240px;
}

.entrar-flutuante--etapas {
    left: 0;
    bottom: 14%;
    width: 220px;
}

.entrar-linha {
    display: flex;
    gap: 0.75rem;
}

.entrar-flutuante-corpo {
    flex: 1;
}

.entrar-flutuante-titulo {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #020618;
}

.entrar-flutuante-sub {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #62748e;
}

.entrar-barra {
    height: 0.375rem;
    border-radius: 9999px;
    background-color: #f1f5f9;
}

.entrar-barra--cheia {
    margin-top: 0.75rem;
    width: 100%;
}

.entrar-barra--dois-tercos {
    margin-top: 0.5rem;
    width: 66.6667%;
}

.entrar-barra--metade {
    margin-top: 0.5rem;
    width: 50%;
}

.entrar-check {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 9999px;
    background-color: #05ab58;
    color: #fff;
}

.entrar-check svg {
    height: 1rem;
    width: 1rem;
}

.entrar-etapa {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
}

.entrar-etapa:last-child {
    padding-bottom: 0;
}

/* Linha verde ligando um check ao proximo */
.entrar-etapa:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 1.75rem;
    height: 100%;
    width: 2px;
    background-color: #05ab58;
}

.entrar-etapa-corpo {
    flex: 1;
    padding-top: 0.25rem;
}

/* Lado direito */
.entrar-acesso {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.entrar-camada {
    position: absolute;
    inset: 0;
    border: 1px solid;
    border-radius: 18px;
}

.entrar-camada--fundo {
    transform: translate(1.5rem, -1.5rem);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.entrar-camada--meio {
    transform: translate(0.75rem, -0.75rem);
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.25);
}

.entrar-cartao {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.25rem;
    border-radius: 18px;
    background-color: #fff;
    box-shadow: 0 30px 60px -20px rgba(0, 76, 210, 0.6);
}

.entrar-logo {
    display: flex;
    justify-content: center;
}

.entrar-logo img {
    display: block;
    height: 2.75rem;
    width: auto;
}

.entrar-cartao-titulo {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #020618;
    text-wrap: balance;
}

.entrar-form {
    margin-top: 2rem;
}

.entrar-form > * + * {
    margin-top: 1.5rem;
}

.entrar-campo {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #fff;
    cursor: text;
    /* Recorta o input na curva: o fundo dele (branco ou do autopreenchimento)
       e retangulo e cobria os cantos arredondados da borda */
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.entrar-campo:focus-within {
    border-color: #0067fd;
    box-shadow: 0 0 0 4px rgba(0, 103, 253, 0.1);
}

.entrar-campo--erro {
    border-color: #dc2626;
}

/* Metade do espaco entre icone e texto vai pra dentro do input: o texto fica no
   mesmo lugar e nao encosta na borda quando o navegador colore o input */
.entrar-campo-icone {
    margin-right: 0.5rem;
    color: #62748e;
}

.entrar-campo-icone svg,
.entrar-olho svg {
    height: 1.5rem;
    width: 1.5rem;
}

.entrar-input {
    width: 100%;
    min-width: 0;
    padding: 1rem 0 1rem 0.5rem;
    background-color: transparent;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #020618;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.entrar-input::placeholder {
    color: #62748e;
    opacity: 1;
}

/* Autopreenchimento do navegador pinta o input de azul e deixa um retangulo
   dentro do campo arredondado; a sombra interna branca cobre esse fundo */
.entrar-input:-webkit-autofill,
.entrar-input:-webkit-autofill:hover,
.entrar-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #020618;
    caret-color: #020618;
}

.entrar-olho {
    margin-left: 0.5rem;
    background-color: transparent;
    color: #62748e;
    cursor: pointer;
}

.entrar-olho:hover,
.entrar-olho[aria-pressed="true"] {
    color: #020618;
}

.entrar-olho-fechado,
.entrar-olho[aria-pressed="true"] .entrar-olho-aberto {
    display: none !important;
}

.entrar-olho[aria-pressed="true"] .entrar-olho-fechado {
    display: block !important;
}

.entrar-erro {
    margin-top: 0.375rem;
    padding-left: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    color: #dc2626;
}

.entrar-opcoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.entrar-lembrar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    white-space: nowrap;
    color: #62748e;
    cursor: pointer;
}

.entrar-lembrar-caixa {
    height: 1rem;
    width: 1rem;
    margin: 0;
    accent-color: #0067fd;
    cursor: pointer;
}

.entrar-esqueci {
    white-space: nowrap;
    color: #0067fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entrar-esqueci:hover {
    color: #004cd2;
}

.entrar-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 0;
    border-radius: 14px;
    background-color: #0067fd;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

a.entrar-botao,
a.entrar-botao:hover,
a.entrar-botao:focus {
    color: #fff;
    text-decoration: none;
}

.entrar-botao:hover {
    transform: translateY(-0.125rem);
    background-color: #004cd2;
    box-shadow: 0 10px 15px -3px rgba(0, 103, 253, 0.3), 0 4px 6px -4px rgba(0, 103, 253, 0.3);
}

.entrar-botao:disabled {
    transform: none;
    background-color: #0067fd;
    box-shadow: none;
    opacity: 0.7;
    cursor: wait;
}

.entrar-botao--sozinho {
    margin-top: 2rem;
}

.entrar-botao:focus-visible,
.entrar-loja:focus-visible,
.entrar-esqueci:focus-visible,
.entrar-olho:focus-visible {
    outline: 2px solid #0067fd;
    outline-offset: 2px;
}

.entrar-loja:focus-visible {
    outline-color: #fff;
}

.entrar-botao svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* Telas de um cartao so: esqueci a senha, nova senha, troca de e-mail */
.entrar-cartao-texto {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5rem;
    color: #62748e;
    text-wrap: pretty;
}

.entrar-cartao-texto strong {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #020618;
    overflow-wrap: anywhere;
}

.entrar-aviso {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.375rem;
}

.entrar-aviso--info {
    border-color: #bfdbfe;
    background-color: #eff6ff;
    color: #1e3a8a;
}

.entrar-aviso--erro {
    border-color: #fecaca;
    background-color: #fef2f2;
    color: #991b1b;
}

.entrar-aviso strong {
    font-weight: 700;
}

.entrar-voltar {
    display: block;
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #0067fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entrar-voltar:hover {
    color: #004cd2;
}

.entrar-voltar:focus-visible {
    outline: 2px solid #0067fd;
    outline-offset: 2px;
}

.entrar-recaptcha {
    display: flex;
    justify-content: center;
}

/* O widget do Google tem 304px fixos e passa do cartao no celular */
@media (max-width: 639px) {
    .entrar-recaptcha .g-recaptcha {
        transform: scale(0.88);
        transform-origin: center top;
        margin-bottom: -10px;
    }
}

.entrar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    margin: 2rem auto 0;
    border-radius: 9999px;
}

.entrar-status svg {
    height: 1.75rem;
    width: 1.75rem;
}

.entrar-status--ok {
    background-color: #d3f5db;
    color: #05ab58;
}

.entrar-status--erro {
    background-color: #fee2e2;
    color: #dc2626;
}

.entrar-status + .entrar-cartao-titulo {
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .entrar-lojas {
        gap: 0.75rem;
    }

    .entrar-loja {
        gap: 0.75rem;
        padding: 0.625rem 1.25rem;
    }

    .entrar-loja svg {
        height: 1.75rem;
        width: 1.75rem;
    }

    .entrar-loja-rotulo {
        font-size: 0.6rem;
    }

    .entrar-loja-nome {
        font-size: 1.125rem;
    }

    .entrar-flutuante {
        display: block;
    }

    .entrar-cartao {
        padding: 3rem 2.5rem;
    }

    .entrar-campo {
        padding: 0 1.25rem;
    }

    .entrar-logo img {
        height: 4rem;
    }

    .entrar-cartao-titulo {
        margin-top: 2.5rem;
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .entrar-opcoes {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .entrar-botao {
        padding: 1.25rem 0;
        border-radius: 18px;
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 768px) {
    .entrar-vitrine {
        grid-template-columns: 1.15fr 1fr;
    }

    .entrar-celular {
        margin-left: -2.5rem;
    }

    .entrar-flutuante--concedido {
        right: -1.5rem;
    }

    .entrar-flutuante--etapas {
        left: -22%;
    }
}

@media (min-width: 1024px) {
    .entrar {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

/* O Lovable lado a lado desde 1024px; abaixo de ~1280px o celular encolhia e os
   cards cobriam o titulo, entao as duas colunas so entram a partir de 1280px */
@media (min-width: 1280px) {
    .entrar-grade {
        grid-template-columns: 1.75fr 1fr;
    }

    .entrar-titulo {
        font-size: clamp(3.25rem, 4.3vw, 4.1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .entrar-loja,
    .entrar-botao,
    .entrar-campo {
        transition: none;
    }
}
