﻿/* NLE Login styles (padrão branco/vermelho/cinza/preto) */
:root {
  --nle-red: #d81e1e;
  --nle-red-dark: #b91515;
  --nle-bg: #f4f5f7;
  --nle-card-bg: #ffffff;
  --nle-text: #111827;
  --nle-muted: #6b7280;
  --nle-line: #e5e7eb;
  --nle-input-bg: #f3f4f6;
  --nle-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
  --nle-cinza: #6b7280;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--nle-text);
  background: var(--nle-bg);
  overflow: hidden;
}

/* Fundo (opcional via /api/visuals). Mantém leve no padrão. */
.nle-background-container {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.nle-login-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* card à esquerda */
  padding: 32px 32px 32px 64px;
}

.nle-flip-container {
  width: min(420px, 92vw);
  perspective: 1200px;
}

.nle-flipper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.nle-flip-container.is-flipped .nle-flipper {
  transform: rotateY(180deg);
}

.nle-front-face,
.nle-back-face {
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: 26px;
  background: var(--nle-card-bg);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--nle-shadow);
  backface-visibility: hidden;
  overflow: hidden;
}

.nle-back-face {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  padding: 30px;
}

.nle-card { padding: 30px; }

.nle-header {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nle-line);
}

.nle-logo-img {
  width: 160px;
  height: auto;
  display: block;
}

.nle-header-subtitle {
  margin: 0;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #374151;
  font-size: .72rem;
}

.nle-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.nle-login-form {
  display: grid;
  gap: 14px;
}

.nle-input-group label {
  display: block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 8px;
}

.nle-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--nle-line);
  background: var(--nle-input-bg);
  color: var(--nle-text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.nle-input:focus {
  background: #ffffff;
  border-color: rgba(216, 30, 30, 0.5);
  box-shadow: 0 0 0 4px rgba(216, 30, 30, 0.12);
}

.nle-btn-primary {
  margin-top: 6px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--nle-red);
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(216, 30, 30, 0.28);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.nle-btn-primary:hover {
  background: var(--nle-red-dark);
  transform: translateY(-1px);
}

.nle-btn-primary:active {
  transform: translateY(0);
}

.nle-btn-primary:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none;
}

.nle-institucional {
  padding-top: 10px;
  border-top: 1px solid var(--nle-line);
}

.nle-institucional h4 {
  margin: 0 0 12px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nle-red);
}

.nle-essence-link {
  color: var(--nle-red);
  text-decoration: none;
}

.nle-essence-link:hover { text-decoration: underline; }

.nle-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nle-valor-card {
  border: 1px solid var(--nle-line);
  background: #fff;
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.nle-valor-card:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 30, 30, 0.35);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.10);
}

.nle-valor-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto;
  background: rgba(216, 30, 30, 0.08);
  display: grid;
  place-items: center;
}

.nle-valor-svg { width: 22px; height: 22px; }

.nle-valor-title {
  margin: 10px 0 0;
  font-size: .7rem;
  font-weight: 900;
  color: #111827;
}

#nle-conteudo-detalhe h2 {
  margin: 0 0 10px;
  font-size: .9rem;
  font-weight: 1000;
  letter-spacing: .14em;
}

#nle-conteudo-detalhe p {
  margin: 0;
  color: var(--nle-muted);
  line-height: 1.6;
}

.nle-back-actions {
  margin-top: 18px;
  display: flex;
}

.nle-back-actions button {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--nle-line);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.nle-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: .78rem;
  color: rgba(17, 24, 39, 0.55);
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .nle-login-container { justify-content: center; padding: 24px; }
  .nle-front-face, .nle-back-face { min-height: 640px; }
}

@media (max-width: 520px) {
  .nle-valores-grid { grid-template-columns: 1fr; }
}
