/* Telas sem menu (login, troca de senha, esqueci/redefinir senha).
   Painel da marca à esquerda (gradiente institucional nas cores do brasão), cartão do formulário à direita. */

.auth { background: var(--cor-fundo); }
.auth-grade { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); min-height: 100vh; }

/* ---------- Painel da marca ---------- */
.auth-marca {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 44px 56px;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(99, 108, 255, .55), transparent 60%),
        radial-gradient(900px 500px at -20% 110%, rgba(56, 189, 248, .25), transparent 60%),
        linear-gradient(160deg, #0b1230 0%, #121c4d 45%, #1e2a7a 100%);
}
/* textura de grade, bem discreta */
.auth-marca::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
/* ondas (referência ao brasão), no canto */
.auth-marca::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px; pointer-events: none;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(255, 255, 255, .06) 0 2px, transparent 2px 26px);
}
.auth-marca > * { position: relative; z-index: 1; }

.auth-marca-topo { display: flex; align-items: center; gap: 14px; }
.auth-brasao { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); overflow: hidden; }
.auth-brasao img { width: 44px; height: 44px; object-fit: contain; }
.auth-marca-nome { display: flex; flex-direction: column; line-height: 1.2; }
.auth-marca-nome strong { font-size: 1.15rem; letter-spacing: .01em; }
.auth-marca-nome small { color: rgba(255, 255, 255, .7); font-size: .8rem; }

.auth-marca-centro { max-width: 540px; }
.auth-marca-selo { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); }
.auth-marca-titulo { margin: 0; font-size: clamp(1.9rem, 2.6vw, 2.7rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.auth-marca-titulo span { background: linear-gradient(90deg, #a5b4fc, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-marca-sub { margin: 16px 0 0; color: rgba(255, 255, 255, .75); font-size: 1rem; line-height: 1.6; max-width: 46ch; }

.auth-destaques { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-destaques li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.auth-destaques li > span { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(165, 180, 252, .18); color: #c7d2fe; }
.auth-destaques li > span .icone { width: 19px; height: 19px; }
.auth-destaques b { display: block; font-size: .95rem; }
.auth-destaques small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .68); font-size: .82rem; line-height: 1.45; }

.auth-marca-rodape { margin: 0; color: rgba(255, 255, 255, .55); font-size: .76rem; }

/* ---------- Painel do formulário ---------- */
.auth-painel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; }
.auth-caixa {
    width: min(440px, 100%);
    padding: 38px 36px 30px;
    border-radius: 20px;
    background: var(--cor-superficie);
    border: var(--borda);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
    animation: auth-surgir .45s ease-out both;
}
@keyframes auth-surgir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-caixa { animation: none; } }

.auth-selo { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cor-primaria-texto, var(--cor-primaria)); background: var(--cor-primaria-suave); }
.auth-selo .icone { width: 13px; height: 13px; }
.auth-titulo { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { margin: 6px 0 22px; color: var(--cor-texto-2); font-size: .92rem; line-height: 1.5; }
.auth-sub b { color: var(--cor-texto); font-weight: var(--peso-forte); }
.auth-caixa .alerta { margin-bottom: 18px; }

.auth-form { display: grid; gap: 16px; }
.auth-rotulo-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-link { font-size: .82rem; font-weight: var(--peso-forte); }
.auth-entrada { position: relative; display: flex; align-items: center; }
.auth-entrada .entrada { min-height: 48px; padding-left: 42px; border-radius: 12px; font-size: .95rem; }
.auth-entrada-icone { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--cor-texto-3); pointer-events: none; transition: color var(--transicao); }
.auth-entrada:focus-within .auth-entrada-icone { color: var(--cor-primaria); }
.auth-entrada .entrada[type="password"], .auth-entrada .entrada#senha { padding-right: 84px; }
.auth-ver-senha { position: absolute; right: 8px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cor-primaria-texto, var(--cor-primaria)); font: inherit; font-size: .8rem; font-weight: var(--peso-forte); cursor: pointer; }
.auth-ver-senha:hover { background: var(--cor-primaria-suave); }
.auth-caps { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--cor-atencao); }
.auth-caps .icone { width: 14px; height: 14px; }

.auth-entrar { min-height: 50px; margin-top: 4px; border-radius: 12px; font-size: 1rem; font-weight: 700; gap: 10px; box-shadow: 0 10px 24px -10px var(--cor-primaria); }
.auth-seta { transform: rotate(180deg); width: 18px; height: 18px; transition: transform var(--transicao); }
.auth-entrar:hover .auth-seta { transform: rotate(180deg) translateX(-3px); }

.auth-seguranca { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--cor-fundo); color: var(--cor-texto-2); font-size: .8rem; line-height: 1.5; }
.auth-seguranca .icone { width: 18px; height: 18px; flex: none; color: var(--cor-sucesso); margin-top: 1px; }
.auth-seguranca p { margin: 0; }
.auth-primeiro { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--cor-texto-3); }
.auth-rodape-direito { margin: 0; font-size: .76rem; color: var(--cor-texto-3); }

/* outras telas sem menu que reaproveitam o cartão */
.auth-caixa .formulario { display: grid; gap: 16px; }
.botao-bloco { width: 100%; }

/* ---------- Celular e telas estreitas: só o cartão ---------- */
.auth-marca-movel { display: none; }
@media (max-width: 980px) {
    .auth-grade { grid-template-columns: minmax(0, 1fr); }
    .auth-marca { display: none; }
    .auth-painel { justify-content: flex-start; padding-top: 8vh; background: linear-gradient(180deg, #121c4d 0, #1e2a7a 220px, var(--cor-fundo) 220px); }
    .auth-marca-movel { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
    .auth-marca-movel .auth-brasao { width: 44px; height: 44px; border-radius: 12px; border: var(--borda); }
    .auth-marca-movel .auth-brasao img { width: 36px; height: 36px; }
    .auth-marca-movel span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
    .auth-marca-movel small { font-size: var(--texto-xs); color: var(--cor-texto-2); }
}
@media (max-width: 480px) { .auth-caixa { padding: 28px 22px 24px; border-radius: 16px; } }
.auth-entrada .entrada { flex: 1 1 auto; min-width: 0; width: 100%; }
.auth-caixa { min-width: 0; }
.auth-marca-centro { display: grid; place-items: center; max-width: none; flex: 1; }
.auth-brasao-grande { display: grid; place-items: center; width: min(260px, 60%); aspect-ratio: 1; border-radius: 32px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.auth-brasao-grande img { width: 76%; height: 76%; object-fit: contain; }
.auth-marca-centro.auth-marca-info { display: block; place-items: initial; max-width: 540px; flex: 0 1 auto; }

/* ---------- Login em formato de crachá digital ---------- */
.auth-painel-cracha { overflow: hidden; justify-content: center; padding-top: 0; }
.cracha-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.cracha-cordao { position: relative; width: 120px; height: 120px; margin-bottom: -16px; }
.cracha-cordao::before, .cracha-cordao::after {
    content: ""; position: absolute; bottom: 18px; width: 22px; height: 300px; border-radius: 6px;
    background: linear-gradient(90deg, #1e3a8a, #2f55d4 45%, #3b6cf0 55%, #1e3a8a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .25);
}
.cracha-cordao::before { left: 22px; transform: rotate(-14deg); transform-origin: bottom center; }
.cracha-cordao::after { right: 22px; transform: rotate(14deg); transform-origin: bottom center; }
.cracha-cordao span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 34px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); z-index: 2; }
.cracha-cordao span::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 6px; height: 14px; background: #9ca3af; border-radius: 0 0 3px 3px; }
.cracha {
    position: relative; width: 420px; max-width: 100%; border-radius: 22px; overflow: hidden;
    background: var(--cor-superficie); border: var(--borda);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .08);
    transform-origin: top center; animation: cracha-balanco 1.4s ease-out both;
}
@keyframes cracha-balanco { 0% { transform: rotate(-3deg) translateY(-8px); opacity: 0; } 40% { transform: rotate(2deg); opacity: 1; } 70% { transform: rotate(-1deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cracha { animation: none; } }
.cracha-topo { position: relative; padding: 30px 26px 54px; color: #fff; background: radial-gradient(400px 200px at 100% 0, rgba(99, 108, 255, .6), transparent 60%), linear-gradient(160deg, #0b1230, #1e2a7a); }
.cracha-furo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 58px; height: 10px; border-radius: 999px; background: var(--cor-fundo); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .4); }
.cracha-marca { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.cracha-marca .auth-brasao { width: 46px; height: 46px; border-radius: 12px; }
.cracha-marca .auth-brasao img { width: 38px; height: 38px; }
.cracha-marca div { line-height: 1.2; }
.cracha-marca strong { display: block; font-size: 1.15rem; letter-spacing: .02em; }
.cracha-marca small { color: rgba(255, 255, 255, .72); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cracha-foto { position: relative; width: 92px; height: 92px; margin: -46px auto 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #e0e7ff, #c7d2fe); color: #3730a3; border: 5px solid var(--cor-superficie); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.cracha-foto .icone { width: 40px; height: 40px; color: #4f46e5; }
.cracha-foto span { display: none; font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.cracha-foto.com-iniciais .icone { display: none; }
.cracha-foto.com-iniciais span { display: block; }
.cracha-corpo { padding: 12px 28px 22px; }
.cracha-ola { margin: 6px 0 2px; text-align: center; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.cracha-dica { margin: 0 0 18px; text-align: center; color: var(--cor-texto-2); font-size: .86rem; }
.cracha-dica b { color: var(--cor-texto); }
.cracha-corpo .alerta { margin-bottom: 16px; text-align: left; }
.cracha .auth-seguranca { margin-top: 16px; }
.cracha-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px dashed var(--cor-borda-forte); background: var(--cor-fundo); font-size: .72rem; color: var(--cor-texto-3); }
.cracha-barras { width: 110px; height: 22px; flex: none; opacity: .55; background: repeating-linear-gradient(90deg, var(--cor-texto) 0 2px, transparent 2px 4px, var(--cor-texto) 4px 5px, transparent 5px 8px, var(--cor-texto) 8px 11px, transparent 11px 13px); }
@media (max-width: 980px) {
    .auth-painel-cracha { padding-top: 0; }
    .cracha-cordao { height: 70px; }
}
@media (max-width: 480px) { .cracha-corpo { padding: 12px 18px 18px; } .cracha-barras { display: none; } }

/* Destaques da intranet: três blocos lado a lado, ícone em degradê iluminado */
.auth-destaques { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.auth-destaques li {
    position: relative; flex-direction: column; gap: 10px; padding: 20px 18px 18px;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.auth-destaques li::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #818cf8, #38bdf8); opacity: .7; }
.auth-destaques li:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, .35); background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); }
.auth-destaque-icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 8px 22px -6px rgba(99, 102, 241, .7); }
.auth-destaque-icone .icone { width: 20px; height: 20px; }
.auth-destaques b { font-size: .98rem; letter-spacing: -.005em; }
.auth-destaques small { margin-top: 0; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .7); }
@media (max-width: 1250px) { .auth-destaques { grid-template-columns: minmax(0, 1fr); } .auth-destaques li { flex-direction: row; align-items: flex-start; } .auth-destaques li > b, .auth-destaques li > small { display: block; } }
.auth-destaques li > .auth-destaque-icone { width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 8px 22px -6px rgba(99, 102, 241, .75); }
.auth-destaques li > .auth-destaque-icone .icone { width: 20px; height: 20px; }
.auth-destaques li > b { margin-top: 4px; }
.auth-entrada-icone { z-index: 1; }
.auth-entrada .campo-senha > .entrada { padding-right: 46px; }

/* Botão de tema no canto da tela de login */
.auth-tema { position: fixed; top: 16px; right: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: var(--borda); background: var(--cor-superficie); color: var(--cor-texto); font: inherit; font-size: .8rem; font-weight: var(--peso-forte); cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); transition: background var(--transicao), transform var(--transicao); }
.auth-tema:hover { background: var(--cor-primaria-suave); transform: translateY(-1px); }
.auth-tema .icone { width: 16px; height: 16px; }
@media (max-width: 480px) { .auth-tema span { display: none; } .auth-tema { padding: 9px; } }
