/* login — o cartão de entrada da família (campos, chips de condição, avisos de tentativa e o rodapé de pedir acesso).
   Tokens e reset vêm do base.css, carregado antes. Compartilha desenho com o trocar-senha.css — dívida registrada pra Etapa 3a. */
/* Página fora do site estático: só usa os tokens do base.css. */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #eaf6ff 0%, #fff 70%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), .14);
    padding: 36px 32px;
    text-align: center;
}
.login-card .mascote { width: 110px; margin-bottom: 4px; }
.login-card h1 { color: var(--c-ink); font-size: 1.7rem; font-weight: 800; }
.login-card .oi { color: var(--c-text-soft); margin: 4px 0 22px; }
.campo { text-align: left; margin-bottom: 14px; }
/* .rotulo: mesmo desenho do label, pra texto que encabeça um GRUPO (os chips de
   condição). <label> sem for= e sem controle dentro não rotula nada. */
.campo label, .campo .rotulo { display: block; color: var(--c-ink); font-weight: 700; font-size: .92rem; margin-bottom: 5px; }
.campo input {
    width: 100%;
    font: inherit;
    color: var(--c-ink);
    padding: 11px 14px;
    border: 2px solid var(--c-line);
    border-radius: 14px;
    outline: none;
    background: var(--c-surface-2);
}
.campo input:focus { border-color: var(--c-blue); background: #fff; }
.lembrar { font-size: .95rem; margin: 2px 0 18px; }
.botao-entrar {
    width: 100%;
    font: inherit;
    font-weight: 800;
    font-size: 1.05rem;
    /* ETAPA 3b: o verde continua igual; o texto virou navy — branco no verde dava 2,77:1 */
    color: var(--c-ink);
    background: var(--c-green);
    border: none;
    border-radius: 999px;
    padding: 13px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(34, 176, 125, .35);
    transition: transform .12s ease, filter .12s ease;
}
.botao-entrar:hover { transform: translateY(-2px); filter: brightness(1.05); }
.aviso {
    border-radius: 14px;
    padding: 11px 14px;
    font-size: .95rem;
    margin-bottom: 16px;
}
.aviso.erro { background: #fdecec; color: #b3403a; border: 1px solid #f6c9c6; }
/* placar de tentativas: pílula vermelha inteira, texto branco grande */
.aviso-restam {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: #b3403a;
    color: #fff;
    border-radius: 14px;
    padding: 9px 18px;
    max-width: 100%;
    font-weight: 800;
    /* fluida: no celular de 360 a pílula estourava o card e empurrava a página */
    font-size: clamp(.85rem, 3.6vw, 1.1rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.aviso-restam .numero { font-size: clamp(1.35rem, 6vw, 1.8rem); }
.divisor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 4px;
    color: var(--c-text-soft);
    font-size: .88rem;
}
.divisor::before, .divisor::after { content: ''; height: 1px; background: var(--c-line); flex: 1; }
.botao-pedir {
    width: 100%;
    font: inherit;
    font-weight: 800;
    font-size: 1.05rem;
    /* ETAPA 3b: o amber continua igual; o texto virou navy — branco no amber dava 2,14:1 */
    color: var(--c-ink);
    background: #f59e0b;
    border: none;
    border-radius: 999px;
    padding: 13px;
    cursor: pointer;
    margin-top: 14px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, .35);
    transition: transform .12s ease, filter .12s ease;
}
.botao-pedir:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* #607993 e não var(--c-muted): o token dá 3,77:1 e é usado em metadado grande pelo
   site; aqui é link pequeno, que precisa de 4,5 (ETAPA 3b) */
.voltar-site { display: inline-block; margin-top: 14px; color: #607993; font-size: .9rem; text-decoration: none; }
.voltar-site:hover { color: var(--c-text); }
