/* ==========================================================================
   FaturaMes - Folha de Estilos de Autenticação e Área Pública
   ========================================================================== */

/* Fontes Modernas */
body.app-public, 
body.app-public button, 
body.app-public input, 
body.app-public select, 
body.app-public textarea {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-public h1, 
body.app-public h2, 
body.app-public h3, 
body.app-public h4, 
body.app-public h5, 
body.app-public h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Properties Extras para Público */
:root {
  --auth-glow-1: rgba(0, 109, 91, 0.15);
  --auth-glow-2: rgba(196, 131, 47, 0.15);
  --auth-card-bg: rgba(255, 255, 255, 0.95);
  --auth-border-color: rgba(217, 227, 220, 0.8);
  --auth-shadow-premium: 0 30px 60px -15px rgba(17, 26, 22, 0.08), 0 18px 36px -18px rgba(17, 26, 22, 0.05);
}

/* ==========================================================================
   1. Navegação e Cabeçalho Público
   ========================================================================== */
body.app-public .app-header {
  border-bottom: 1px solid rgba(217, 227, 220, 0.4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

body.app-public .navbar {
  padding: 16px 0;
}

body.app-public .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--fm-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.app-public .navbar-brand::before {
  content: "FM";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fm-primary), #11bda3);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* ==========================================================================
   2. Estrutura de Autenticação (Auth Shell)
   ========================================================================== */
.auth-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 60px;
  align-items: center;
}

.auth-shell-wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
}

.auth-copy {
  max-width: 580px;
  position: relative;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fm-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--fm-primary-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.auth-copy h1 {
  color: var(--fm-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.auth-copy p {
  color: var(--fm-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* ==========================================================================
   3. Mockups Visuais e Efeitos (Coluna Esquerda)
   ========================================================================== */
.auth-visual-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 380px;
  background: linear-gradient(135deg, #111a16 0%, #06211a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(17, 26, 22, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Glow Blobs Animados */
.glow-blob {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.glow-1 {
  background: var(--fm-primary);
  top: -40px;
  left: -40px;
  animation: float-glow-1 12s infinite alternate ease-in-out;
}

.glow-2 {
  background: var(--fm-accent);
  bottom: -40px;
  right: -40px;
  animation: float-glow-2 15s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
  100% { transform: translate(-20px, 50px) scale(0.9); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-30px, -40px) scale(0.9); }
  100% { transform: translate(30px, 20px) scale(1.2); }
}

/* Elementos do Mockup */
.mockup-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card-main {
  width: 90%;
  background: rgba(25, 38, 33, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 24px;
  color: #fff;
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(2deg);
  transition: transform 0.5s ease-out;
}

.mockup-card-main:hover {
  transform: rotateX(4deg) rotateY(-4deg) rotateZ(1deg) scale(1.02);
}

.mockup-browser-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.mockup-header-info small {
  color: var(--fm-sidebar-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.mockup-header-info strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 4px;
}

.trend-badge-positive {
  background: rgba(39, 201, 63, 0.15);
  color: #55efc4;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Gráfico Simulado */
.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  margin-top: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.mockup-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px 4px 0 0;
  height: var(--height);
  transition: background 0.3s, height 0.3s;
}

.mockup-bar.active {
  background: linear-gradient(to top, var(--fm-primary), #00d2b4);
  box-shadow: 0 0 16px rgba(0, 109, 91, 0.4);
}

/* Cards Flutuantes */
.mockup-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
  color: var(--fm-heading);
  animation: float-widget 6s infinite alternate ease-in-out;
  pointer-events: none;
}

.float-card-1 {
  top: 15%;
  left: -20px;
  width: 220px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 15%;
  right: -20px;
  width: 240px;
  animation-delay: 1.5s;
}

@keyframes float-widget {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fm-accent), #f1c40f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.78rem;
}

.mockup-avatar.teal {
  background: linear-gradient(135deg, var(--fm-primary), #00cec9);
}

.mockup-text {
  flex: 1;
}

.mockup-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
}

.mockup-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--fm-muted);
}

.float-badge {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 99px;
}

.float-badge.success {
  background: #dff5e8;
  color: #0d6b45;
}

.float-badge.warning {
  background: #fff3cd;
  color: #856404;
}

/* Highlight Items */
.auth-highlights {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.auth-highlights div {
  border-left: 3px solid var(--fm-primary);
  padding-left: 18px;
  transition: transform 0.2s;
}

.auth-highlights div:hover {
  transform: translateX(4px);
}

.auth-highlights div:nth-child(2) { border-left-color: var(--fm-accent); }
.auth-highlights div:nth-child(3) { border-left-color: var(--fm-coral); }

/* ==========================================================================
   4. Cartão de Autenticação (Formulário)
   ========================================================================== */
.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border-color);
  border-radius: 16px;
  box-shadow: var(--auth-shadow-premium);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 5;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.auth-card-head h2 {
  color: var(--fm-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-card-head p {
  color: var(--fm-muted);
  font-size: 0.94rem;
  margin: 6px 0 0;
}

.auth-card-head a {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--fm-primary-soft);
  color: var(--fm-primary-dark);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.auth-card-head a:hover {
  background: var(--fm-primary);
  color: #fff;
}

/* Formulário e Controles */
.auth-card label.form-label {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--fm-heading);
  margin-bottom: 6px;
}

.auth-card .form-control {
  border: 1.5px solid #cbd7ce;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--fm-ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.auth-card .form-control:focus {
  border-color: var(--fm-primary);
  box-shadow: 0 0 0 4px rgba(0, 109, 91, 0.15);
  background-color: #fff;
  outline: none;
}

.auth-card .text-danger {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.auth-card .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fm-primary) 0%, #00937a 100%);
  border: none;
  box-shadow: 0 8px 20px -6px rgba(0, 109, 91, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(0, 109, 91, 0.5);
}

.auth-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 109, 91, 0.4);
}

.auth-card a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-card a:not(.btn):hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Página de Landing (Home/Index)
   ========================================================================== */
body.app-public .hero {
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(120% 120% at 85% 6%, rgba(17, 217, 184, 0.18) 0%, transparent 46%),
    radial-gradient(95% 95% at 2% 106%, rgba(196, 131, 47, 0.14) 0%, transparent 50%),
    linear-gradient(125deg, #06140f 0%, #0a1a14 40%, #0d2019 70%, #0f261d 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Textura de grade fina para profundidade */
body.app-public .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 30% 40%, #000 0%, transparent 78%);
}

/* Halo luminoso superior */
body.app-public .hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 217, 184, 0.45) 0%, transparent 68%);
  filter: blur(110px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

body.app-public .hero-content {
  min-width: 0;
}

/* Selo / kicker premium com indicador pulsante */
body.app-public .hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.app-public .hero .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #11d9b8;
  box-shadow: 0 0 0 4px rgba(17, 217, 184, 0.22);
  animation: heroPulse 2.4s ease-in-out infinite;
}

body.app-public .hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

body.app-public .hero h1 .hero-accent {
  background: linear-gradient(100deg, #2fe0c0 0%, #11bda3 45%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.app-public .hero p {
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
}

body.app-public .hero .btn-primary {
  position: relative;
  overflow: hidden;
  padding: 15px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background-image: linear-gradient(135deg, #0ea88c 0%, #006d5b 100%);
  box-shadow: 0 14px 30px -10px rgba(0, 150, 124, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Brilho deslizante no hover do CTA principal */
body.app-public .hero .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

body.app-public .hero .btn-primary:hover::after {
  left: 130%;
}

body.app-public .hero .btn-light {
  padding: 15px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fm-heading);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.app-public .hero .btn-primary:hover,
body.app-public .hero .btn-light:hover {
  transform: translateY(-3px);
}

body.app-public .hero .btn-primary:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 150, 124, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.app-public .hero .btn-light:hover {
  background: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

/* Métricas em cartões de vidro */
body.app-public .hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

body.app-public .hero-metrics div {
  position: relative;
  overflow: hidden;
  border-top: none;
  padding: 16px 15px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

body.app-public .hero-metrics div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

body.app-public .hero-metrics div:nth-child(1)::before {
  background: linear-gradient(90deg, #11d9b8, transparent);
}
body.app-public .hero-metrics div:nth-child(2)::before {
  background: linear-gradient(90deg, #e3b066, transparent);
}
body.app-public .hero-metrics div:nth-child(3)::before {
  background: linear-gradient(90deg, #ef8a6f, transparent);
}

body.app-public .hero-metrics div:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

body.app-public .hero-metrics strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

body.app-public .hero-metrics span {
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 5px;
  display: block;
}

/* Animações de entrada e pulso do selo */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 217, 184, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(17, 217, 184, 0); }
}

body.app-public .hero-content > * {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.app-public .hero-content > .hero-kicker { animation-delay: 0.05s; }
body.app-public .hero-content > h1 { animation-delay: 0.14s; }
body.app-public .hero-content > p { animation-delay: 0.24s; }
body.app-public .hero-content > .d-flex { animation-delay: 0.34s; }
body.app-public .hero-content > .hero-metrics { animation-delay: 0.44s; }
body.app-public .hero-visual {
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  body.app-public .hero-content > *,
  body.app-public .hero-visual,
  body.app-public .hero-board-chart span,
  body.app-public .hero-chip,
  body.app-public .hero .hero-kicker::before,
  body.app-public .hero-board-live::before {
    animation: none !important;
  }
}

/* ==========================================================================
   5b. Board / Dashboard mockup do Hero (substitui imagem de fundo)
   ========================================================================== */
body.app-public .hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

body.app-public .hero-board {
  position: relative;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

body.app-public .hero-board-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.app-public .hero-board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
body.app-public .hero-board-dot:nth-child(1) { background: #ff6058; }
body.app-public .hero-board-dot:nth-child(2) { background: #ffbd2e; }
body.app-public .hero-board-dot:nth-child(3) { background: #28c840; }

body.app-public .hero-board-tab {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

body.app-public .hero-board-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
}
body.app-public .hero-board-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: heroPulse 2.4s ease-in-out infinite;
}

body.app-public .hero-board-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.app-public .hero-board-kpi {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
body.app-public .hero-board-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
body.app-public .hero-board-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
body.app-public .hero-board-trend {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Mini gráfico de barras */
body.app-public .hero-board-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 88px;
}
body.app-public .hero-board-chart span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(17, 217, 184, 0.55), rgba(17, 217, 184, 0.10));
  transform-origin: bottom;
  animation: heroBarGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.app-public .hero-board-chart span.is-active {
  background: linear-gradient(180deg, #2fe0c0, #11bda3);
  box-shadow: 0 0 18px rgba(17, 217, 184, 0.45);
}
body.app-public .hero-board-chart span:nth-child(1) { animation-delay: 0.45s; }
body.app-public .hero-board-chart span:nth-child(2) { animation-delay: 0.52s; }
body.app-public .hero-board-chart span:nth-child(3) { animation-delay: 0.59s; }
body.app-public .hero-board-chart span:nth-child(4) { animation-delay: 0.66s; }
body.app-public .hero-board-chart span:nth-child(5) { animation-delay: 0.73s; }
body.app-public .hero-board-chart span:nth-child(6) { animation-delay: 0.80s; }
body.app-public .hero-board-chart span:nth-child(7) { animation-delay: 0.87s; }

body.app-public .hero-board-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.app-public .hero-board-stats div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.app-public .hero-board-stats strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

body.app-public .hero-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body.app-public .hero-board-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.app-public .hero-board-list li:first-child { border-top: none; }
body.app-public .hero-board-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0ea88c, #006d5b);
}
body.app-public .hero-board-list li:nth-child(2) .hero-board-avatar { background: linear-gradient(135deg, #e3b066, #c4832f); }
body.app-public .hero-board-list li:nth-child(3) .hero-board-avatar { background: linear-gradient(135deg, #ef8a6f, #b75c45); }
body.app-public .hero-board-name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
body.app-public .hero-board-amount {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}
body.app-public .hero-board-status {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
body.app-public .hero-board-status.is-paid {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}
body.app-public .hero-board-status.is-pending {
  color: #f0b765;
  background: rgba(240, 183, 101, 0.12);
}

/* Chips flutuantes */
body.app-public .hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(13, 26, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.7);
}
body.app-public .hero-chip > span {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}
body.app-public .hero-chip > span strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
body.app-public .hero-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  font-weight: 800;
}
body.app-public .hero-chip-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 26px;
  height: 26px;
}
body.app-public .hero-chip-bars i {
  flex: 1;
  border-radius: 2px;
  background: #11d9b8;
}
body.app-public .hero-chip-bars i:nth-child(1) { height: 45%; }
body.app-public .hero-chip-bars i:nth-child(2) { height: 75%; }
body.app-public .hero-chip-bars i:nth-child(3) { height: 100%; }
body.app-public .hero-chip-1 {
  left: -32px;
  top: 26%;
  animation: heroFloat 5s ease-in-out infinite;
}
body.app-public .hero-chip-2 {
  right: -24px;
  bottom: 14%;
  animation: heroFloat 5s ease-in-out infinite 1.2s;
}

@keyframes heroBarGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Feature Band e Grid */
body.app-public .feature-band {
  background: #fbfcfb;
  border-top: 1px solid var(--fm-line);
  border-bottom: 1px solid var(--fm-line);
  padding: 80px 0;
}

body.app-public .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

body.app-public .feature-item {
  border-left: none;
  background: #fff;
  border: 1px solid rgba(217, 227, 220, 0.8);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 20px -8px rgba(17, 26, 22, 0.04);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

body.app-public .feature-item::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
}

/* Cores de ícones e bordas superiores nos features */
body.app-public .feature-item:nth-child(1) {
  border-top: 4px solid var(--fm-primary);
}
body.app-public .feature-item:nth-child(1)::before {
  background-color: var(--fm-primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23006d5b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(2) {
  border-top: 4px solid var(--fm-accent);
}
body.app-public .feature-item:nth-child(2)::before {
  background-color: #fdf5eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c4832f' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9.5a2 2 0 00-.586-1.414l-4.5-4.5A2 2 0 0013.086 3H10' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(3) {
  border-top: 4px solid var(--fm-coral);
}
body.app-public .feature-item:nth-child(3)::before {
  background-color: #fbeee9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b75c45' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(4) {
  border-top: 4px solid #34495e;
}
body.app-public .feature-item:nth-child(4)::before {
  background-color: #ebf0f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2334495e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(17, 26, 22, 0.08);
  border-color: rgba(217, 227, 220, 1);
}

body.app-public .feature-item h2 {
  color: var(--fm-heading);
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 8px;
}

body.app-public .feature-item p {
  color: var(--fm-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ==========================================================================
   6. Rodapé Público (Public Footer)
   ========================================================================== */
body.app-public .public-footer {
  border-top: 1px solid rgba(217, 227, 220, 0.5);
  background: #fff;
  color: var(--fm-muted);
  font-size: 0.88rem;
}

body.app-public .public-footer span {
  font-size: 0.88rem;
}

body.app-public .public-footer a {
  color: var(--fm-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

body.app-public .public-footer a:hover {
  color: var(--fm-primary);
}

/* ==========================================================================
   7. Responsividade e Adaptação
   ========================================================================== */
@media (max-width: 992px) {
  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }

  .auth-copy {
    max-width: none;
    text-align: center;
  }

  .auth-kicker {
    justify-content: center;
  }

  .auth-highlights {
    text-align: left;
  }

  .auth-visual-preview {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  body.app-public .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  body.app-public .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    justify-items: center;
    text-align: center;
  }

  body.app-public .hero-content {
    max-width: 620px;
  }

  body.app-public .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  body.app-public .hero .d-flex {
    justify-content: center;
  }

  body.app-public .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  body.app-public .hero-visual {
    justify-self: center;
    margin-top: 4px;
  }
}

@media (max-width: 576px) {
  .auth-visual-preview {
    display: none; /* Oculta o mockup interativo em telas muito pequenas para focar no formulário */
  }

  body.app-public .hero-chip {
    display: none; /* Remove os selos flutuantes em telas pequenas para evitar sobreposição */
  }

  body.app-public .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  body.app-public .hero-board-value {
    font-size: 1.65rem;
  }

  .auth-shell,
  .auth-shell-wide {
    padding: 20px 0;
  }

  .auth-card {
    padding: 24px;
  }

  body.app-public .feature-grid {
    grid-template-columns: 1fr;
  }
  
  body.app-public .hero {
    text-align: center;
  }

  body.app-public .hero-inner {
    padding: 60px 0;
  }

  body.app-public .hero p {
    font-size: 1.1rem;
  }
  
  body.app-public .hero .d-flex {
    flex-direction: column;
    width: 100%;
  }
  
  body.app-public .hero .btn {
    width: 100%;
  }

  .auth-card-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-bottom: 24px;
  }

  .auth-card-head a {
    align-self: center;
  }
}

/* ==========================================================================
   8. Novos Estilos Públicos: Navbar Links, Captcha, Contato e Home
   ========================================================================== */

/* Navbar Public Links */
body.app-public .nav-link {
  color: var(--fm-muted) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  display: inline-flex;
  align-items: center;
}

body.app-public .nav-link:hover {
  color: var(--fm-primary) !important;
  background-color: var(--fm-primary-soft);
}

body.app-public .nav-item {
  display: flex;
  align-items: center;
}

/* Captcha Inline Styling */
.captcha-group {
  display: flex;
  align-items: stretch;
}

.captcha-label {
  background-color: var(--fm-soft);
  border: 1.5px solid #cbd7ce;
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--fm-primary-dark);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.captcha-input {
  border-radius: 0 10px 10px 0 !important;
}

/* Seção de Passos (Como Funciona) */
.steps-section {
  padding: 100px 0;
  background-color: #fff;
  border-bottom: 1px solid var(--fm-line);
}

.steps-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.steps-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.steps-header h2 {
  font-size: 2.2rem;
  color: var(--fm-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.steps-header p {
  color: var(--fm-muted);
  font-size: 1.1rem;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: dashed rgba(219, 227, 220, 0.8);
  z-index: 1;
}

.step-card {
  position: relative;
  z-index: 2;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--fm-primary-soft);
  color: var(--fm-primary);
  font-size: 1.8rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: var(--fm-shadow-soft);
  transition: transform 0.3s, border-color 0.3s, background-color 0.3s, color 0.3s;
}

.step-card:hover .step-number {
  transform: scale(1.08);
  border-color: var(--fm-primary);
  background-color: var(--fm-primary);
  color: #fff;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--fm-heading);
  font-weight: 750;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--fm-muted);
  line-height: 1.5;
  margin: 0;
  padding: 0 10px;
}

/* Banner de Chamada para Ação (CTA) */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #111a16 0%, #006d5b 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--fm-accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  bottom: -50px;
  left: -50px;
}

.cta-inner {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  background: #fff;
  color: var(--fm-primary-dark);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--fm-primary-soft);
  color: var(--fm-primary-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* Responsividade de Seções Públicas */
@media (max-width: 992px) {
  body.app-public .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .steps-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  
  .steps-timeline::before {
    display: none; /* remove linha tracejada no mobile */
  }
}

@media (max-width: 576px) {
  body.app-public .feature-grid,
  .steps-timeline {
    grid-template-columns: 1fr !important;
  }
  
  .steps-section {
    padding: 60px 0;
  }
  
  .cta-banner {
    padding: 60px 0;
  }
  
  .cta-banner h2 {
    font-size: 2rem;
  }
  
  .cta-banner p {
    font-size: 1.05rem;
  }
}
