/*
 * nst-entrada.css — TELA DE LOGIN PADRÃO de todos os sistemas da Nova System (MODELO_SAAS_NST.md, regra 13).
 * Mesmo desenho do login do Help Desk (chamados/_app/login.php + hd-entrada.css, 11/10/2026), num lugar só.
 * Por produto mudam só: escrita, desenhos (fundo e personagem), logo e cor. A cor vem da página:
 *   <body class="nst-entrada" style="--p:#6D28D9;--d:#5B21B6">
 * Estrutura: .login-left (fundo desenhado + .login-branding) | .login-right (formulário, personagem, rodapé).
 * Personagem que anda sobre a linha: .ht-chao-login.nst-personagem + /assets/padrao/nst_personagem.js.
 * Criado pelo chat da Igreja em 18/10/2026; o Help Desk passa a usar este arquivo quando migrar.
 */
body.nst-entrada {
    --p: #4169e1; --d: #3457b1;
    --ht-tinta: #0F172A; --ht-suave: #64748B; --ht-linha: #E2E8F0; --ht-ambar: #F59E0B;
    --ht-mao: 'Caveat', 'Segoe Print', cursive;
    --ht-grifo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 26'%3E%3Cpath d='M6 15.6Q21 15.5 28.5 14.9T42.8 13.4 57.5 12.4 72.3 11.9 87.6 11.6 103.7 11.7 119.8 12.1 135.8 12.3 151.9 12.5 168.1 12.5 184.3 11.5 200.2 10.4 215.9 9.6 231.6 8.6 248.4 8.4 266.4 9.2 293.6 9.4' fill='none' stroke='%23F59E0B' stroke-width='4.2' stroke-linecap='round'/%3E%3Cpath d='M29.6 20.5Q44.6 20.6 52.4 20T67.7 19.2 82.6 18.9 97.4 18.4 112.5 17.7 127.3 17.2 142.5 17.6 158 17.8 172.8 18.1 187.8 18.8 202.5 18.8 217 18.4 231.5 17.6 245.5 17 259.2 16.2 280.1 15.2' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    --ht-chao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7Q40 5 80 6.5T160 6 240 7.5 320 5.5 400 7 480 6 598 6.5' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    margin: 0; min-height: 100vh; display: flex; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f0f2f5;
}
body.nst-entrada * { box-sizing: border-box; }

/* ── lado esquerdo: desenho + marca ─────────────────────────────────────── */
.nst-entrada .login-left { flex: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 60px; overflow: hidden; background: #0E1233 center/cover no-repeat; }
.nst-entrada .login-left::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.05) 100%); }
.nst-entrada .login-branding { position: relative; z-index: 1; }
.nst-entrada .login-branding-logo { height: 48px; max-width: 200px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); margin-bottom: 20px; }
.nst-entrada .login-branding h1 { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.nst-entrada .login-branding p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 380px; line-height: 1.6; margin: 0; }
.nst-entrada .login-features { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.nst-entrada .login-feature { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-size: .82rem; }
.nst-entrada .login-feature i { width: 28px; height: 28px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; }

/* ── lado direito: formulário ──────────────────────────────────────────── */
.nst-entrada .login-right { width: 420px; min-height: 100vh; background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; border-left: 1px solid var(--ht-linha); }
.nst-entrada .login-right-header { margin-bottom: 36px; }
.nst-entrada .login-right-header .tag { display: inline-block; color: var(--ht-suave); font-family: var(--ht-mao); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.nst-entrada .login-right-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--ht-tinta); letter-spacing: -.02em; margin: 0 0 6px; }
.nst-entrada .login-right-header h2::after { content: ""; display: block; width: 180px; height: 14px; margin-top: 4px; background: var(--ht-grifo) no-repeat left center / contain; }
.nst-entrada .login-right-header p { color: #6b7280; font-size: .88rem; margin: 0; }

.nst-entrada .form-label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.nst-entrada .form-control { width: 100%; border-radius: 8px; border: 1.5px solid #e5e7eb; padding: 11px 14px; font-size: .88rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.nst-entrada .form-control:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 15%, transparent); }
.nst-entrada .input-group { display: flex; }
.nst-entrada .input-group .form-control { border-right: none; border-radius: 8px 0 0 8px; }
.nst-entrada .input-group-text { display: flex; align-items: center; padding: 0 14px; border-radius: 0 8px 8px 0; border: 1.5px solid #e5e7eb; border-left: none; background: #fff; cursor: pointer; color: #9ca3af; }
.nst-entrada .input-group-text:hover { color: var(--p); }
.nst-entrada .input-group:focus-within .form-control, .nst-entrada .input-group:focus-within .input-group-text { border-color: var(--p); }
.nst-entrada .campo { margin-bottom: 18px; }
.nst-entrada .campo-ultimo { margin-bottom: 24px; }

.nst-entrada .btn-login { background: var(--p); color: #fff; border: none; border-radius: 8px; padding: 13px; font-weight: 700; font-size: .92rem; width: 100%; cursor: pointer; letter-spacing: .3px; transition: background .2s, transform .1s; }
.nst-entrada .btn-login:hover { background: var(--d); }
.nst-entrada .btn-login:active { transform: scale(.99); }
.nst-entrada .btn-login:disabled { opacity: .5; cursor: not-allowed; }
.nst-entrada .link-esqueci { display: block; text-align: center; margin-top: 16px; color: var(--p); text-decoration: none; font-size: .88rem; font-weight: 600; }

.nst-entrada .alert-login { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 11px 14px; font-size: .84rem; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.nst-entrada .espera-login { display: none; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; text-align: center; color: #92400e; font-size: .84rem; }
.nst-entrada .espera-login strong { display: block; font-size: 1.8rem; font-family: monospace; line-height: 1; }
.nst-entrada .espera-barra { height: 4px; background: #fde68a; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.nst-entrada .espera-barra div { height: 100%; background: #f59e0b; width: 100%; transition: width 1s linear; }

/* personagem sobre a linha, acima do rodapé */
.nst-entrada .ht-chao-login { position: relative; height: 96px; margin-top: 18px; pointer-events: none; }
.nst-entrada .ht-chao-login::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: var(--ht-chao) no-repeat center / 100% 100%; }

.nst-entrada .login-footer { margin-top: 28px; color: #9ca3af; font-size: .75rem; text-align: center; line-height: 1.6; }
.nst-entrada .login-footer a { color: inherit; }

@media (max-width: 768px) {
    .nst-entrada .login-left { display: none; }
    .nst-entrada .login-right { width: 100%; padding: 40px 28px; border-left: 0; }
}

