:root {
  --nle-rubi: #b91c1c;
  --nle-vermelho: #dc2626;
  --nle-cinza-escuro: #111827;
  --nle-cinza: #6b7280;
  --nle-cinza-claro: #f3f4f6;
  --nle-branco: #ffffff;
  --nle-preto: #000000;
  --nle-borda-suave: #e5e7eb;
  --nle-sombra: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --nle-sombra-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--nle-preto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Premium */
.nle-background-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background-color: var(--nle-preto);
  background-size: cover;
  background-position: center;
}

.nle-background-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(185,28,28,0.15) 0%, rgba(0,0,0,0.9) 100%);
}

.nle-login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 8%;
  /* Aplica escala de 0.9 (redução de 10%) e move conforme solicitado */
  transform: translate(-20px, -10px) scale(0.9);
  transform-origin: left center; /* Garante que a redução não crie um buraco na esquerda */
}

/* Estrutura do Flip Card - Altura aumentada para mostrar tudo */
.nle-flip-container {
  perspective: 2000px;
  width: 100%;
  max-width: 420px;
  height: 720px; /* Altura suficiente para o formulário + institucional */
}

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

.nle-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.nle-front-face, .nle-back-face {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nle-sombra-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilo Glassmorphism para os Cards */
.nle-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 8px solid var(--nle-rubi);
}

.nle-front-face {
  z-index: 2;
  transform: rotateY(0deg);
}

.nle-back-face {
  transform: rotateY(180deg);
  background: var(--nle-branco);
  padding: 3rem 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Cabeçalho do Login */
.nle-header {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.nle-logo-img {
  max-width: 180px;
  margin-bottom: 1rem;
}

.nle-header-subtitle {
  color: var(--nle-cinza);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nle-body {
  padding: 0 2.5rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Formulário e Inputs */
.nle-input-group {
  margin-bottom: 1.25rem;
}

.nle-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--nle-preto);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.nle-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--nle-borda-suave);
  border-radius: 1.25rem;
  font-size: 0.95rem;
  transition: all 0.3s;
  background: #f9fafb;
}

.nle-input:focus {
  outline: none;
  border-color: var(--nle-rubi);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
}

/* Botão de Ação */
.nle-btn-primary {
  background: var(--nle-rubi);
  color: white;
  width: 100%;
  padding: 1.1rem;
  border-radius: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.nle-btn-primary:hover {
  background: #991b1b;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(185, 28, 28, 0.5);
}

/* Institucional e Essência */
.nle-institucional {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.nle-essence-link {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--nle-rubi);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.nle-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nle-valor-card {
  background: #fff;
  border: 1px solid var(--nle-borda-suave);
  border-radius: 1.5rem;
  padding: 1rem 0.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.nle-valor-card:hover {
  border-color: var(--nle-rubi);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.nle-valor-svg {
  width: 34px;
  height: 34px;
  margin-bottom: 0.5rem;
}

.nle-valor-title {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--nle-cinza-escuro);
  text-transform: uppercase;
}

/* Back Face Detalhes */
.nle-btn-outline {
  background: transparent;
  border: 2px solid var(--nle-rubi);
  color: var(--nle-rubi);
  padding: 0.75rem 1.5rem;
  border-radius: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.nle-btn-outline:hover {
  background: var(--nle-rubi);
  color: white;
}

#nle-detalhe-titulo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--nle-rubi);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

#nle-detalhe-texto {
  font-size: 1rem;
  color: var(--nle-cinza-escuro);
  line-height: 1.6;
  padding: 0 1rem;
}

/* Footer */
.nle-footer {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
