/*
 * Login e cadastro. Celular primeiro: quem chega pelas redes sociais abre no
 * navegador do Instagram/Facebook, com uma mao so. Campos de 16px (o iPhone
 * nao da zoom), alvos de toque de 44px+ e nada que obrigue a rolar de lado.
 */
.ea-auth {
    --ea-sky-dark: #1f8ade;
    --ea-campo: #e3eaef;
    --ea-campo-fundo: #fbfdff;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 209, 102, .35), transparent 22rem),
        radial-gradient(circle at 100% 8%, rgba(49, 168, 255, .2), transparent 24rem),
        #f7fbff;
    color: var(--mesada-ink);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ea-auth a {
    color: var(--ea-sky-dark);
}

/* Topo */
.ea-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}

.ea-logo img {
    display: block;
    width: auto;
    height: 30px;
}

.ea-auth .ea-top-link {
    padding: 8px 14px;
    border: 1px solid var(--mesada-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

/* Conteudo */
.ea-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 8px 16px 24px;
}

.ea-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ea-intro h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.ea-intro p {
    margin: 0;
    color: var(--mesada-muted);
    font-size: 16px;
    line-height: 1.5;
}

.ea-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ea-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--mesada-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ea-chips i {
    color: var(--mesada-mint);
}

.ea-lojas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 16px;
    color: var(--mesada-muted);
    font-size: 14px;
    font-weight: 700;
}

.ea-auth .ea-lojas a {
    color: var(--mesada-ink);
    font-weight: 800;
    text-decoration: none;
}

.ea-lojas i {
    margin-right: 4px;
}

/* Botao da loja */
.ea-auth .ea-store {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 17, 17, .22);
}

.ea-store > i:first-child {
    width: 32px;
    font-size: 28px;
    text-align: center;
}

.ea-store small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    opacity: .75;
}

.ea-store strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
}

.ea-store-seta {
    margin-left: auto;
    opacity: .6;
}

.ea-divisor {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--mesada-muted);
    font-size: 13px;
    font-weight: 700;
}

.ea-divisor::before,
.ea-divisor::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mesada-line);
}

/* Formulario */
.ea-card {
    padding: 20px 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(38, 50, 56, .1);
}

.ea-campo {
    margin-bottom: 14px;
}

.ea-rotulo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
}

.ea-rotulo a {
    font-size: 13px;
    font-weight: 700;
}

.ea-input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 2px solid var(--ea-campo);
    border-radius: 14px;
    background: var(--ea-campo-fundo);
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.ea-input:focus {
    outline: none;
    border-color: var(--mesada-sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 168, 255, .15);
}

.ea-senha {
    position: relative;
}

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

.ea-ver-senha {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    color: var(--mesada-muted);
    font-size: 17px;
    cursor: pointer;
}

.ea-dica {
    display: block;
    margin-top: 4px;
    color: var(--mesada-muted);
    font-size: 12px;
}

/* Parentesco em botoes: no celular, um toque em vez de abrir um select */
.ea-opcoes {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.ea-opcoes legend {
    float: none;
    width: auto;
}

.ea-opcoes-grade {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ea-opcao {
    position: relative;
    margin: 0;
}

/* Fica sobre o botao (e nao display:none) para o aviso de obrigatorio aparecer */
.ea-opcao input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ea-opcao span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 4px;
    border: 2px solid var(--ea-campo);
    border-radius: 12px;
    background: var(--ea-campo-fundo);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.ea-opcao input:checked + span {
    border-color: var(--mesada-sky);
    background: rgba(49, 168, 255, .1);
    color: var(--ea-sky-dark);
}

.ea-opcao input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(49, 168, 255, .2);
}

.ea-extra {
    margin-bottom: 14px;
}

.ea-extra summary {
    color: var(--ea-sky-dark);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ea-extra[open] summary {
    margin-bottom: 8px;
}

.ea-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.ea-check input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--mesada-sky);
}

.ea-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: var(--mesada-sky);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(49, 168, 255, .32);
    cursor: pointer;
}

.ea-btn:hover {
    background: var(--ea-sky-dark);
}

.ea-btn:disabled {
    opacity: .75;
}

.ea-auth .ea-btn-sec {
    border: 2px solid var(--ea-campo);
    background: #fff;
    color: var(--mesada-ink);
    box-shadow: none;
    text-decoration: none;
}

.ea-auth .ea-btn-sec:hover {
    border-color: var(--mesada-sky);
    background: #fff;
    color: var(--ea-sky-dark);
}

.ea-aviso {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(53, 196, 140, .12);
    color: #1d7a55;
    font-size: 14px;
    font-weight: 700;
}

.ea-alt {
    margin: 0;
    font-size: 15px;
    text-align: center;
}

.ea-alt a {
    font-weight: 800;
}

/* Rodape */
.ea-rodape {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    font-size: 13px;
}

.ea-auth .ea-rodape a {
    color: var(--mesada-muted);
}

/* Telas bem estreitas (iPhone SE e afins) */
@media (max-width: 359.98px) {
    .ea-intro h1 {
        font-size: 24px;
    }

    .ea-opcoes-grade {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Computador: texto a esquerda, formulario a direita */
@media (min-width: 900px) {
    .ea-top {
        padding-top: 24px;
    }

    .ea-logo img {
        height: 36px;
    }

    .ea-main {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 56px;
        align-items: center;
        max-width: 1040px;
        padding: 32px 24px 48px;
    }

    .ea-intro h1 {
        margin-bottom: 14px;
        font-size: 46px;
        line-height: 1.06;
    }

    .ea-intro p {
        font-size: 19px;
    }

    .ea-chips {
        margin-top: 20px;
    }

    .ea-card {
        padding: 28px;
    }
}
