/* Tela de entrada do e-edutech.
   Layout próprio (flex), sem o posicionamento absoluto do tema: a marca à
   esquerda, o cartão à direita; no celular, um embaixo do outro. */

.ee-login {
    --ee-tinta: #1e1b4b;
    --ee-texto: #3f3d5a;
    --ee-suave: #6b6f86;
    --ee-borda: #dcdcea;
    --ee-campo: #f7f7fc;
    --ee-indigo: #4f46e5;
    --ee-violeta: #7c3aed;
    --ee-ciano: #22d3ee;
    margin: 0;
    background: var(--ee-tinta);
    --ee-fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--ee-fonte);
}
/* O tema troca a fonte de títulos, botões e campos por largura de tela; aqui é uma só. */
.ee-login .ee-pagina, .ee-login .ee-pagina * { font-family: var(--ee-fonte); }

.ee-pagina {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 8vw, 140px);
    padding: 40px 24px;
    box-sizing: border-box;
    background-color: var(--ee-tinta);
    background-size: cover;
    background-position: center;
}

/* ── Marca ── */
.ee-marca { max-width: 420px; color: #e0e7ff; }
.ee-marca-logo { display: block; width: 300px; max-width: 100%; height: auto; }
.ee-marca-frase {
    margin: 28px 0 20px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.15;
    color: #fff;
}
.ee-marca-lista { list-style: none; margin: 0; padding: 0; }
/* O que o nome significa (só quando a marca ativa tem texto, config/marca.php). */
.ee-marca-nome { margin: 26px 0 0; padding: 14px 16px; border-left: 3px solid #22d3ee; background: rgba(15, 12, 50, .35); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5; color: #c7d2fe; }
.ee-marca-nome b { color: #fff; }
.ee-marca-lista li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 15px;
    color: #c7d2fe;
}
.ee-marca-lista li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: var(--ee-ciano);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
}

/* ── Cartão ── */
.ee-cartao {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 28px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(15, 12, 50, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    color: var(--ee-texto);
}
.ee-titulo {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.1;
    color: var(--ee-tinta);
}
.ee-subtitulo { margin: 6px 0 22px; font-size: 14px; color: var(--ee-suave); }

/* Avisos: todos no mesmo lugar, um bloco por aviso */
.ee-aviso {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}
.ee-aviso-erro  { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.ee-aviso-aviso { background: #fffbeb; border-color: #d97706; color: #92400e; }
.ee-aviso-ok    { background: #ecfdf5; border-color: #059669; color: #065f46; }

/* Usuário × Servidor */
.ee-abas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 12px;
    background: #eef0f7;
}
.ee-aba {
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ee-suave);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.ee-aba:hover { color: var(--ee-tinta); }
.ee-aba[aria-pressed="true"] {
    background: #fff;
    color: var(--ee-indigo);
    box-shadow: 0 1px 3px rgba(30, 27, 75, .15);
}

/* Campos */
.ee-campo { margin-bottom: 16px; }
.ee-campo[hidden] { display: none; }
.ee-campo label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ee-tinta);
}
.ee-campo-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ee-campo-topo .ee-link { font-size: 13px; }
.ee-campo input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1.5px solid var(--ee-borda);
    border-radius: 12px;
    background: var(--ee-campo);
    color: var(--ee-tinta);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.ee-campo input::placeholder { color: #a5a8bd; font-weight: 400; }
.ee-campo input:hover { border-color: #c5c6dc; }
.ee-campo input:focus {
    outline: none;
    border-color: var(--ee-indigo);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
}
.ee-senha { position: relative; }
.ee-senha input { padding-right: 86px; }
.ee-ver-senha {
    position: absolute;
    top: 50%;
    right: 8px;
    left: auto;
    width: auto;
    height: auto;
    margin: 0;
    transform: translateY(-50%);
    padding: 6px 10px;
    line-height: 1.2;
    box-shadow: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ee-indigo);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ee-ver-senha:hover { background: #eef0ff; }

.ee-captcha p { margin: 0 0 8px; font-size: 13px; }
.ee-captcha-imagem { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.ee-captcha-imagem img { border: 1px solid var(--ee-borda); border-radius: 10px; }

.ee-link { color: var(--ee-indigo); font-weight: 700; text-decoration: none; }
.ee-link:hover { color: var(--ee-violeta); text-decoration: underline; }

.ee-entrar {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ee-indigo), var(--ee-violeta));
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .7);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.ee-entrar:hover { filter: brightness(1.06); box-shadow: 0 14px 24px -8px rgba(79, 70, 229, .75); }
.ee-entrar:active { transform: translateY(1px); }

.ee-separador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a5a8bd;
}
.ee-separador::before, .ee-separador::after { content: ""; flex: 1; height: 1px; background: #ececf4; }
.ee-social { justify-content: center; }

/* Primeiro acesso: caminho próprio para aluno e família */
.ee-primeiro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1.5px solid #ececf4;
    border-radius: 14px;
    color: var(--ee-tinta);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.ee-primeiro:hover { border-color: #c7c4f5; background: #f8f7ff; color: var(--ee-tinta); }
.ee-primeiro-icone {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eef0ff;
    color: var(--ee-indigo);
}
.ee-primeiro-texto { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.ee-primeiro-texto strong { font-size: 14.5px; }
.ee-primeiro-texto small { font-size: 12.5px; color: var(--ee-suave); }
.ee-primeiro-seta { font-size: 18px; color: var(--ee-indigo); transition: transform .2s; }
.ee-primeiro:hover .ee-primeiro-seta { transform: translateX(3px); }

.ee-rodape {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #ececf4;
    font-size: 13px;
    color: #a5a8bd;
}

.ee-login :focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.ee-login .ee-campo input:focus-visible { outline: none; }

/* ── Celular e janelas estreitas: marca em cima, cartão embaixo ── */
@media (max-width: 960px) {
    .ee-pagina { flex-direction: column; justify-content: flex-start; gap: 24px; padding: 32px 16px 96px; }
    .ee-marca { text-align: center; }
    .ee-marca-logo { width: 220px; margin: 0 auto; }
    .ee-marca-frase { margin: 16px 0 0; font-size: 22px; }
    .ee-marca-lista { display: none; }
    .ee-marca-nome { display: none; }
}
@media (max-width: 420px) {
    .ee-cartao { padding: 28px 20px 22px; border-radius: 16px; }
}

/* Alto contraste: o widget de acessibilidade troca as cores da página toda */
html.acessibilidade-alto-contraste .ee-pagina { background-image: none !important; background: #000; }
html.acessibilidade-alto-contraste .ee-cartao { background: #000; border: 2px solid #fff; color: #fff; }
html.acessibilidade-alto-contraste .ee-titulo,
html.acessibilidade-alto-contraste .ee-campo label,
html.acessibilidade-alto-contraste .ee-primeiro { color: #fff; }

.ee-dica { margin: -12px 0 18px; padding: 10px 12px; border-radius: 10px; background: #f5f3ff; color: #4c3d99; font-size: 13px; line-height: 1.45; }
.ee-dica[hidden] { display: none; }
