/**
 * SAJO-8575: Estilos da página PEI - Login/Cadastro
 * Tela exibida para usuários não logados em /ferramenta-pei
 * Tokens de cor: palette.css (--surface-onSurface: #1B1B1B, --neutrals-40: #5E5E5E)
 */

.pei-page-wrapper {
  width: 100% !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove padding do contentInner que envolve a página PEI */
.contentInner:has(.pei-page-wrapper) {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ===== Hero Section ===== */
.pei-hero-section {
  background-color: #DDF5EC;
  padding: 48px 24px;
  width: 100%;
  box-sizing: border-box;
}

.pei-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ===== Lado Esquerdo ===== */
.pei-hero-left {
  flex: 1;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

/* Hero Illustration */
.pei-hero-illustration {
  width: 522px;
  height: 261px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.pei-hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title - Desktop/headline/s: Roboto 500, font-size-xl, line-height 120%, color #1B1B1B */
.pei-hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.34px;
  color: var(--surface-onSurface, #1B1B1B);
  margin-bottom: 16px;
}

/* Description - Desktop/title/small: Roboto 400, font-size-sm, line-height 148%, color #1B1B1B */
.pei-hero-description {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 148%;
  letter-spacing: 0.34px;
  color: var(--surface-onSurface, #1B1B1B);
  margin-bottom: 32px;
}

/* ===== Benefícios ===== */
.pei-hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pei-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Ícones: 40x40px */
img.pei-benefit-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.pei-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Benefit Title - Desktop/title/small: Roboto 700, font-size-sm (16px), line-height 148%, color #1B1B1B */
.pei-benefit-text strong {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 148%;
  letter-spacing: 0.34px;
  color: var(--surface-onSurface, #1B1B1B);
}

/* Benefit Description - Desktop/body/med: Roboto 400, font-size-xs2 (14px), line-height 148%, color #5E5E5E, letter-spacing 5% */
.pei-benefit-text span {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 148%;
  letter-spacing: 0.7px;
  color: var(--neutrals-40, #5E5E5E);
}

/* ===== Lado Direito (formulário) ===== */
.pei-hero-right {
  flex: 1;
  max-width: 480px;
}

.pei-hero-right .contentInnerLoggedArea {
  background-color: white !important;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 0;
}

.pei-hero-right .contentInnerLoggedAreaRight {
  background-color: white !important;
  padding: 32px 24px !important;
  border-radius: 16px;
}

/* ===== Page Builder abaixo do hero ===== */
.pei-page-wrapper > .pb-layout-reset {
  width: 100% !important;
  padding: 32px 0;
  display: block !important;
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 900px) {
  .pei-hero-section {
    padding: 32px 16px;
  }

  .pei-hero-container {
    flex-direction: column;
    gap: 32px;
  }

  .pei-hero-left {
    padding: 0;
    max-width: 100%;
  }

  .pei-hero-illustration {
    width: 100%;
    height: auto;
    aspect-ratio: 522 / 261;
  }

  .pei-hero-title {
    font-size: 24px;
  }

  .pei-hero-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .pei-hero-right {
    max-width: 100%;
    width: 100%;
  }
}
