/* ==========================================================
   LINKDOCENTE — telas de acesso (login, recuperar e criar senha)
   ========================================================== */
:root {
    --tinta: #0E1A2B;
    --tinta-2: #15253B;
    --azul: #1C69D4;
    --azul-escuro: #1552A8;
    --texto: #1B2533;
    --texto-2: #5B6879;
    --linha: #D5DCE5;
    --fundo: #F6F7F9;
    --erro: #B42318;
    --erro-fundo: #FEF3F2;
    --ok: #067647;
    --ok-fundo: #ECFDF3;
    --margem: #C8463D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--texto);
    background: var(--fundo);
    -webkit-font-smoothing: antialiased;
}

.acesso { min-height: 100%; display: grid; grid-template-columns: minmax(380px, 44%) 1fr; }

/* ---------- Painel institucional (esquerda) ---------- */
.acesso-painel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 56px 40px 96px;
    color: #E7ECF3;
    background-color: var(--tinta);
    /* pauta de caderno + linha de margem */
    background-image:
        linear-gradient(90deg, transparent 63px, rgba(200, 70, 61, .55) 63px, rgba(200, 70, 61, .55) 65px, transparent 65px),
        repeating-linear-gradient(180deg, transparent 0 35px, rgba(255, 255, 255, .045) 35px 36px);
    overflow: hidden;
}

.acesso-marca { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; letter-spacing: -.2px; color: #FFFFFF; }
.acesso-logo { width: 30px; height: 30px; color: #FFFFFF; flex-shrink: 0; }

.acesso-painel-texto { max-width: 440px; padding: 48px 0; }
.acesso-sobretitulo {
    font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #8FB3E8; margin-bottom: 18px;
}
.acesso-painel-texto h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.18;
    letter-spacing: -.4px;
    color: #FFFFFF;
    margin-bottom: 18px;
}
.acesso-painel-texto p { font-size: 15.5px; line-height: 1.6; color: #A9B6C8; }

.acesso-painel-rodape { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: #8494A9; }
.acesso-seguro { display: inline-flex; align-items: center; gap: 7px; color: #9FD9B8; font-weight: 500; }
.acesso-seguro svg { width: 13px; height: 13px; }

/* ---------- Formulário (direita) ---------- */
.acesso-conteudo { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 24px; background: #FFFFFF; }
.acesso-caixa { width: 100%; max-width: 384px; margin: auto 0; }
.acesso-rodape { margin-top: 32px; font-size: 12px; color: #98A2B3; }

.acesso-caixa h1 { font-size: 26px; font-weight: 600; letter-spacing: -.4px; color: var(--tinta); margin-bottom: 8px; }
.acesso-descricao { font-size: 15px; line-height: 1.55; color: var(--texto-2); margin-bottom: 28px; }
.acesso-descricao strong { color: var(--texto); font-weight: 600; }
.acesso-nota { font-size: 13px; color: var(--texto-2); line-height: 1.5; margin: 18px 0; }

.form-acesso { display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo-topo { display: flex; justify-content: space-between; align-items: baseline; }
.campo label { font-size: 14px; font-weight: 500; color: var(--texto); }

.campo input, .campo select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--texto);
    background: #FFFFFF;
    border: 1px solid var(--linha);
    border-radius: 6px;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.campo select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6879' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.campo input:hover, .campo select:hover { border-color: #B6C1CE; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(28, 105, 212, .16); }

.campo-senha { position: relative; }
.campo-senha input { padding-right: 84px; }
.btn-mostrar {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    height: 34px; padding: 0 12px;
    font: inherit; font-size: 13px; font-weight: 500; color: var(--texto-2);
    background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.btn-mostrar:hover { color: var(--texto); background: #F1F4F7; }
.btn-mostrar:focus-visible { outline: 2px solid var(--azul); outline-offset: 1px; }

.link-discreto { font-size: 13.5px; color: var(--azul); text-decoration: none; font-weight: 500; }
.link-discreto:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-voltar { display: inline-block; font-size: 14px; color: var(--texto-2); text-decoration: none; margin-bottom: 24px; }
.link-voltar:hover { color: var(--texto); }
.link-centro { display: block; text-align: center; margin: 18px 0 0; }

.btn-acesso {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 48px; margin-top: 4px;
    font: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF; text-decoration: none;
    background: var(--azul); border: 0; border-radius: 6px; cursor: pointer;
    transition: background .15s;
}
.btn-acesso:hover { background: var(--azul-escuro); }
.btn-acesso:focus-visible { outline: 3px solid rgba(28, 105, 212, .35); outline-offset: 2px; }
.btn-acesso[disabled] { opacity: .7; cursor: progress; }
.btn-secundario { background: #FFFFFF; color: var(--texto); border: 1px solid var(--linha); }
.btn-secundario:hover { background: #F6F7F9; }

.alerta { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 6px; margin-bottom: 20px; border: 1px solid; }
.alerta-erro { color: var(--erro); background: var(--erro-fundo); border-color: #FECDCA; }
.alerta-sucesso { color: var(--ok); background: var(--ok-fundo); border-color: #ABEFC6; }

.conta-info { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--fundo); border: 1px solid #E4E8EE; border-radius: 6px; margin-bottom: 22px; }
.conta-info span { font-size: 12px; color: var(--texto-2); }
.conta-info strong { font-size: 14.5px; font-weight: 500; word-break: break-all; }

.requisitos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.requisitos li { position: relative; padding-left: 18px; font-size: 13px; color: var(--texto-2); }
.requisitos li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #A0ABBA; }
.requisitos li.ok { color: var(--ok); }
.requisitos li.ok::before { background: var(--ok); border-color: var(--ok); }

.lista-municipios { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lista-municipios a {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
    border: 1px solid var(--linha); border-radius: 6px; text-decoration: none; color: var(--texto);
    transition: border-color .15s, background .15s;
}
.lista-municipios a:hover { border-color: var(--azul); background: #F8FAFD; }
.lista-municipios span { font-weight: 500; font-size: 15px; }
.lista-municipios small { font-size: 12.5px; color: var(--texto-2); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .acesso { grid-template-columns: 1fr; }
    .acesso-painel { padding: 22px 20px 22px 56px; background-image:
        linear-gradient(90deg, transparent 37px, rgba(200, 70, 61, .55) 37px, rgba(200, 70, 61, .55) 39px, transparent 39px),
        repeating-linear-gradient(180deg, transparent 0 35px, rgba(255, 255, 255, .045) 35px 36px); }
    .acesso-painel-texto { padding: 18px 0 0; }
    .acesso-painel-texto h2, .acesso-painel-texto > p:last-child, .acesso-painel-rodape { display: none; }
    .acesso-sobretitulo { margin-bottom: 0; }
    .acesso-conteudo { padding: 36px 16px 20px; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
