/* Portal de acesso (Login/administrador.php) — mesmo visual do site: branco, azul e dourado */
:root {
    --azul: #133b6e;
    --azul-2: #1c4c8a;
    --azul-escuro: #0c2749;
    --ouro: #c9a75c;
    --ouro-texto: #8a6a2c;
    --texto: #1f2937;
    --suave: #56637a;
    --linha: #e1e7f0;
    --fundo: #f4f7fb;
    --branco: #ffffff;
    --verde: #0f766e;
    --verde-fundo: #e6f4f1;
    --azul-fundo: #e9f0fa;
    --raio: 14px;
    --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(19, 59, 110, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--texto);
    background: var(--fundo);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

h1, h2, h3 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: var(--azul);
    line-height: 1.25;
    margin: 0;
}

/* ---------- Topo ---------- */
.p-topo {
    background: var(--branco);
    border-top: 3px solid var(--ouro);
    border-bottom: 1px solid var(--linha);
}
.p-topo-linha {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 20px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.p-marca {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}
.p-marca img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(19, 59, 110, .18));
}
.p-marca-nome {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    color: var(--azul);
}
.p-marca-sub {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ouro-texto);
}
.p-topo-acoes { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.p-link-topo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #c9d4e3;
    border-radius: 10px;
    background: var(--branco);
    color: var(--azul);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}
.p-link-topo:hover { border-color: var(--azul); background: #f7f9fd; }
.p-link-topo i { color: var(--ouro-texto); }

/* ---------- Conteúdo ---------- */
.p-pagina {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 20px 56px;
}
.p-pagina.estreita { max-width: 520px; }

.p-intro { text-align: center; margin-bottom: 30px; }
.p-selo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ouro-texto);
}
.p-selo::before, .p-selo::after { content: ""; width: 26px; height: 2px; background: var(--ouro); }
.p-intro h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.p-intro p { margin: 0; color: var(--suave); }
.p-cargo {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    border: 1px solid #e6d7b3;
    border-radius: 999px;
    background: #fbf8f1;
    color: var(--ouro-texto);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    max-width: 100%;
}

/* Cartões de setor */
.p-setores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 860px;
    margin: 0 auto;
}
.p-setor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 26px 24px;
    border: 1px solid var(--linha);
    border-radius: var(--raio);
    background: var(--branco);
    text-decoration: none;
    color: var(--suave);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.p-setor:hover { border-color: var(--ouro); box-shadow: var(--sombra); transform: translateY(-2px); }
.p-setor strong { font-family: 'Lora', Georgia, serif; font-size: 21px; color: var(--azul); }
.p-icone {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 4px;
    background: var(--azul-fundo);
    color: var(--azul);
}
.p-icone.verde { background: var(--verde-fundo); color: var(--verde); }
.p-icone.ouro { background: #fbf3df; color: var(--ouro-texto); }
.p-setor-acao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--azul);
}
.p-setor-acao i { font-size: 12px; transition: transform .2s; }
.p-setor:hover .p-setor-acao i { transform: translateX(3px); }

.p-rodape-acoes { text-align: center; margin-top: 30px; }

/* ---------- Botões ---------- */
.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--azul);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.p-btn:hover { background: var(--azul-2); }
.p-btn i { color: var(--ouro); }
.p-btn:disabled { opacity: .75; cursor: wait; }
.p-btn.contorno { background: var(--branco); color: var(--azul); border-color: #c9d4e3; }
.p-btn.contorno:hover { border-color: var(--azul); background: #f7f9fd; }
.p-btn.contorno i { color: var(--ouro-texto); }
.p-btn.largo { width: 100%; }

/* ---------- Caixa de login ---------- */
.p-caixa {
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: 16px;
    box-shadow: var(--sombra);
    padding: 32px 30px 28px;
}
.p-caixa .p-icone { margin: 0 auto 14px; }
.p-caixa h1 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.p-caixa > p { margin: 0 0 20px; text-align: center; color: var(--suave); font-size: 15px; }
.p-campo { margin-bottom: 16px; }
.p-campo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #334155; }
.p-campo input,
.p-caixa input[type="text"],
.p-caixa input[type="password"],
.p-caixa input:not([type]) {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--texto);
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.p-caixa input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(19, 59, 110, .12); }
.p-caixa .p-btn { margin-top: 8px; }
.p-voltar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--azul);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}
.p-voltar:hover { text-decoration: underline; }
.p-voltar i { color: var(--ouro-texto); }

.p-erro {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
}
.p-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    color: var(--suave);
    font-size: 13.5px;
}
.p-nota i { color: var(--verde); }

/* Senha com botão de mostrar (setor de protesto) */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 52px !important; }
.mostrar-senha {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}
.mostrar-senha:hover, .mostrar-senha:focus-visible { background: #eef3fa; color: var(--azul); }
.icone-olho { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-ocultar { display: none; }
.mostrar-senha.senha-visivel .icone-ver { display: none; }
.mostrar-senha.senha-visivel .icone-ocultar { display: block; }

/* ---------- Seleção de apresentante (conta mestre) ---------- */
.p-painel {
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: 16px;
    box-shadow: var(--sombra);
    overflow: hidden;
}
.p-painel-cab { padding: 22px 26px; border-bottom: 1px solid var(--linha); }
.p-painel-cab h1 { font-size: 24px; }
.p-painel-cab p { margin: 6px 0 0; color: var(--suave); font-size: 15px; }
.p-painel-corpo { padding: 20px 26px 26px; }
.busca { position: relative; margin-bottom: 14px; }
.busca i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.busca input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--texto);
    font-size: 16px;
}
.busca input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(19, 59, 110, .12); }
.contador { margin: 0 0 12px; font-size: 13px; color: var(--suave); }
.lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}
.item {
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--linha);
    border-radius: 12px;
    background: var(--branco);
    transition: border-color .2s, box-shadow .2s;
}
.item:hover { border-color: #cdd5e2; box-shadow: var(--sombra); }
.item strong { display: block; margin-bottom: 6px; color: var(--azul); font-size: 15px; line-height: 1.35; }
.item small { display: block; margin: 2px 0; color: var(--suave); font-size: 12.5px; }
.selo-apr {
    display: inline-block;
    width: max-content;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
}
.selo-ok { background: #e7f6ee; color: #166534; border: 1px solid #bbe5cb; }
.selo-no { background: #fdeeee; color: #9f1239; border: 1px solid #f7cfd6; }
.item button {
    margin-top: 14px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: var(--azul);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.item button:hover { background: var(--azul-2); }
.vazio {
    grid-column: 1 / -1;
    padding: 26px;
    text-align: center;
    color: var(--suave);
    border: 1px dashed #cfd8e5;
    border-radius: 12px;
}
.p-painel-rodape {
    padding: 14px 26px;
    border-top: 1px solid var(--linha);
    background: #fafbfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: var(--suave);
}
.p-painel-rodape strong { color: var(--azul); }
.p-painel-rodape a { color: var(--azul); font-weight: 600; text-decoration: none; }
.p-painel-rodape a:hover { text-decoration: underline; }

/* ---------- Login de currículos (duas colunas) ---------- */
.p-cartao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
    margin: 0 auto;
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: 16px;
    box-shadow: var(--sombra);
    overflow: hidden;
}
.p-lado-marca {
    padding: clamp(26px, 4vw, 40px);
    background: linear-gradient(180deg, #f7f9fd 0%, var(--fundo) 100%);
    border-right: 1px solid var(--linha);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.p-lado-marca .logo { width: 96px; height: auto; filter: drop-shadow(0 6px 14px rgba(19, 59, 110, .18)); }
.p-lado-marca .p-selo { margin: 0; }
.p-lado-marca .p-selo::after { display: none; }
.p-lado-marca h2 { font-size: clamp(26px, 3.2vw, 32px); }
.p-lado-marca h2 span { display: block; margin-top: 2px; font-size: .6em; color: var(--ouro-texto); }
.p-lado-marca > p { margin: 0; color: var(--suave); font-size: 15px; }
.recursos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.recursos li { display: flex; align-items: center; gap: 12px; color: #334155; font-size: 14.5px; font-weight: 600; }
.recursos i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
}
.recursos li:nth-child(1) i { background: var(--azul-fundo); color: var(--azul); }
.recursos li:nth-child(2) i { background: #e7f6ee; color: #15803d; }
.recursos li:nth-child(3) i { background: #fbf3df; color: var(--ouro-texto); }
.p-lado-form { padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.p-lado-form h1 { font-size: clamp(24px, 2.6vw, 28px); margin-bottom: 6px; }
.p-lado-form > p { margin: 0 0 20px; color: var(--suave); font-size: 15px; }
.p-lado-form .p-icone { margin-bottom: 12px; }
.entrada { position: relative; }
.entrada > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.entrada input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--texto);
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.entrada input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(19, 59, 110, .12); }
.entrada input.com-olho { padding-right: 54px; }
.olho {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}
.olho:hover, .olho:focus-visible { background: #eef3fa; color: var(--azul); outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Rodapé VGSystem (incluído pelo rodape_vgsystem.php) no azul do site */
body .vg-rodape { margin-top: 0; background: var(--azul-escuro); border-top: 3px solid var(--ouro); }
body .vg-rodape .vg-rodape__linha { color: #a9b8d0; }
body .vg-rodape .vg-rodape__marca { color: var(--ouro); }
body .vg-rodape .vg-rodape__sep { color: #4a5f80; }
body .vg-rodape a { color: #c3d0e4; }
body .vg-rodape a:hover { color: var(--ouro); }

/* ---------- Responsivo ---------- */
@media (max-width: 800px) {
    .p-setores { grid-template-columns: 1fr; }
    .p-cartao { grid-template-columns: 1fr; }
    .p-lado-marca { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--linha); }
    .p-lado-marca .logo { width: 56px; }
    .p-lado-marca .p-selo, .p-lado-marca > p, .recursos { display: none; }
    .p-lado-marca h2 { font-size: 22px; }
}

@media (max-width: 640px) {
    .p-topo-linha { padding: 10px 16px; min-height: 68px; flex-wrap: wrap; }
    .p-marca img { width: 46px; height: 46px; }
    .p-marca-nome { font-size: 15px; }
    .p-marca-sub { font-size: 12px; }
    .p-topo-acoes { width: 100%; }
    .p-topo-acoes .p-link-topo { flex: 1; justify-content: center; }
    .p-pagina { padding: 28px 16px 40px; }
    .p-intro { margin-bottom: 22px; }
    .p-setor { padding: 22px 20px 20px; }
    .p-caixa { padding: 26px 20px 22px; }
    .p-painel-cab, .p-painel-corpo, .p-painel-rodape { padding-left: 16px; padding-right: 16px; }
    .lista { grid-template-columns: 1fr; max-height: none; }
    .p-lado-form { padding: 22px 18px 24px; }
    .p-lado-form .p-icone { display: none; }
    .p-cargo { font-size: 10.5px; }
}
