/**
 * Login / recuperação — layout split 50/50 alinhado à identidade Jaepel.
 * Escopo: body.pv-login-shell
 */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700;800&display=swap");

body.pv-login-shell {
  --jaepel-orange: #ea5501;
  --jaepel-orange-dark: #c74701;
  /* Azuis alinhados ao site / Elementor kit Jaepel */
  --jaepel-blue-night: #052538;
  --jaepel-blue-deep: #082f49;
  --jaepel-blue-mid: #0d4a7c;
  --jaepel-blue-accent: #16659e;
  --jaepel-blue-sky: #6ec1e4;
  /* Destaque tipo mural — lima/amarelo institucional */
  --jaepel-slogan-lime: #dce629;
  --jaepel-ink: #1f1f1f;
  --jaepel-muted: #616161;
  --jaepel-line: #d4d4d8;
  --jaepel-bg-page: #f3f7fb;

  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--jaepel-ink);
  background: var(--jaepel-bg-page);
}

body.pv-login-shell * {
  box-sizing: border-box;
}

body.pv-login-shell a:focus-visible,
body.pv-login-shell button:focus-visible {
  outline: 2px solid var(--jaepel-blue-accent);
  outline-offset: 2px;
}

/* ----- Split principal ----- */
.pv-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.pv-split__panel--light {
  position: relative;
  overflow: hidden;
  background: #f5f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* Ondas decorativas — canto superior esquerdo */
.pv-split__light-decor {
  position: absolute;
  top: -4%;
  left: -18%;
  width: min(115%, 620px);
  height: auto;
  max-height: 72vh;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.pv-split__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pv-split__card {
  width: 100%;
  max-width: 440px;
  padding: clamp(1.85rem, 4vw, 2.65rem);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 22px 44px -14px rgba(8, 47, 73, 0.14);
}

.pv-split__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.25rem, 3vw, 1.65rem);
  min-height: 72px;
}

.pv-split__logo-img {
  display: block;
  height: auto;
  max-height: clamp(72px, 14vw, 100px);
  width: auto;
  max-width: min(320px, 92%);
  object-fit: contain;
  opacity: 1;
}

.pv-split__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.8vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--jaepel-blue-deep);
}

.pv-split__subtitle {
  margin: 0 0 1.65rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--jaepel-muted);
}

/* Mensagens */
.pv-login-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1.15rem;
  text-align: center;
}

.pv-login-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.pv-login-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Form base */
body.pv-login-shell .pv-login-form.validate-form {
  width: 100%;
  padding: 0;
  margin: 0;
  min-height: unset;
  background: transparent;
}

/* Campo com label na borda (estilo outlined) */
.pv-outline {
  position: relative;
  margin-bottom: 1.35rem;
}

.pv-outline__label {
  position: absolute;
  left: 14px;
  top: 0;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--jaepel-muted);
  background: #fff;
  line-height: 1;
  pointer-events: none;
}

body.pv-login-shell .pv-outline__control.validate-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 0.85rem;
  border: 1px solid var(--jaepel-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.pv-login-shell .pv-outline__control.validate-input:focus-within {
  border-color: var(--jaepel-blue-accent);
  box-shadow: 0 0 0 3px rgba(22, 101, 158, 0.18);
}

.pv-outline__ico {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  color: #909090;
  font-size: 0.95rem;
}

body.pv-login-shell .pv-outline__control .input100 {
  flex: 1;
  min-width: 0;
  width: auto !important;
  height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: "Roboto", system-ui, sans-serif !important;
  font-size: 0.9375rem !important;
  color: var(--jaepel-ink) !important;
}

body.pv-login-shell .pv-outline__control .input100::placeholder {
  color: #a1a1aa;
}

body.pv-login-shell .pv-eye-btn {
  flex-shrink: 0;
  padding: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #909090;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.pv-login-shell .pv-eye-btn:hover {
  color: var(--jaepel-blue-accent);
  background: rgba(22, 101, 158, 0.1);
}

/* Linha lembrar + esqueci */
.pv-split__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.pv-split__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--jaepel-muted);
  cursor: pointer;
  user-select: none;
}

.pv-split__remember input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--jaepel-blue-accent);
  cursor: pointer;
}

.pv-split__toolbar a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jaepel-blue-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pv-split__toolbar a:hover {
  color: var(--jaepel-blue-deep);
}

/* Botão principal — azul vibrante + ícone circular (mockup) */
body.pv-login-shell .pv-split__submit {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem 0 1.35rem;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(
    180deg,
    #2083c9 0%,
    var(--jaepel-blue-accent) 42%,
    #124f82 100%
  );
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(22, 101, 158, 0.38);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

body.pv-login-shell .pv-split__submit-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
}

body.pv-login-shell .pv-split__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(22, 101, 158, 0.45);
}

body.pv-login-shell .pv-split__submit:active {
  transform: translateY(0);
}

/* Rodapé formulário */
.pv-split__signup {
  margin-top: 1.45rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--jaepel-muted);
  line-height: 1.5;
}

.pv-split__signup a {
  font-weight: 700;
  color: var(--jaepel-blue-accent);
  text-decoration: none;
}

.pv-split__signup a:hover {
  color: var(--jaepel-blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pv-split__copy {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
}

.pv-split__copy--card {
  margin-top: 1.5rem;
}

/* Painel direito — foto institucional + overlay azul */
.pv-split__panel--brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--jaepel-blue-night);
}

.pv-split__brand-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pv-split__brand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  filter: blur(7px);
}

@media (prefers-reduced-motion: no-preference) {
  /* Zoom suave sem alterar blur perceptível */
  .pv-split__brand-photo {
    animation: pv-split-bg-drift 36s ease-in-out infinite alternate;
  }

  @keyframes pv-split-bg-drift {
    from {
      transform: scale(1.08);
    }
    to {
      transform: scale(1.14);
    }
  }
}

/* Tom azul sobre a imagem — mais leve para a fábrica aparecer melhor */
.pv-split__brand-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    118deg,
    rgba(5, 37, 56, 0.58) 0%,
    rgba(8, 47, 73, 0.48) 35%,
    rgba(13, 74, 124, 0.4) 62%,
    rgba(22, 101, 158, 0.28) 100%
  );
  pointer-events: none;
}

.pv-split__brand-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 18%, transparent 35%, rgba(5, 37, 56, 0.22) 100%);
  pointer-events: none;
}

.pv-split__brand-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 2.8vw, 2rem);
  flex: 1;
  text-align: center;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.pv-split__brand-collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  max-width: 100%;
}

.pv-split__brand-card {
  margin: 0;
  width: min(42vw, 220px);
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(110, 193, 228, 0.2) inset;
  background: rgba(255, 255, 255, 0.06);
}

.pv-split__brand-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pv-split__brand-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  height: clamp(52px, 8vw, 88px);
  pointer-events: none;
  opacity: 0.95;
}

.pv-split__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.pv-split__tagline-accent {
  color: var(--jaepel-blue-sky);
  font-weight: 800;
}

/* Slogan — largura total do painel + tipografia Outfit (mais atual que Roboto no hero) */
.pv-split__slogan-panel {
  align-self: stretch;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.35rem, 1.5vw, 0.85rem) clamp(0.25rem, 2vw, 1.25rem);
  font-family: "Outfit", "Roboto", system-ui, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  background: none;
  box-shadow: none;
}

.pv-split__slogan-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  text-wrap: balance;
}

.pv-split__slogan-kicker {
  margin: 0 0 clamp(0.65rem, 2vw, 1.05rem);
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  font-size: clamp(0.72rem, 1.05vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.38;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 1px 3px rgba(5, 37, 56, 0.8),
    0 10px 32px rgba(5, 37, 56, 0.42);
}

.pv-split__slogan-accent {
  margin: 0 0 clamp(0.75rem, 2.2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  font-size: clamp(1.45rem, 4.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: var(--jaepel-slogan-lime);
  text-shadow:
    0 2px 4px rgba(5, 37, 56, 0.45),
    0 8px 36px rgba(5, 37, 56, 0.42);
}

.pv-split__slogan-base {
  margin: 0 auto;
  max-width: min(52rem, 100%);
  padding: 0 clamp(0.35rem, 3vw, 2rem);
  font-size: clamp(0.84rem, 1.35vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 3px rgba(5, 37, 56, 0.72),
    0 8px 26px rgba(5, 37, 56, 0.38);
}

.pv-split__slogan-base strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.015em;
}

/* Três pilares — ícones em círculo */
.pv-split__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
  max-width: 640px;
}

.pv-split__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.pv-split__pillar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.15rem;
}

.pv-split__pillar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.pv-split__pillar-text {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 11rem;
}

body.pv-login-shell .alert-validate::before {
  font-family: "Roboto", system-ui, sans-serif;
}

@media (max-width: 960px) {
  .pv-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .pv-split__light-decor {
    left: -40%;
    top: -8%;
    opacity: 0.55;
    max-height: 48vh;
  }

  .pv-split__panel--brand {
    order: -1;
    min-height: auto;
    padding: 1.75rem 1rem 4rem;
  }

  .pv-split__brand-card {
    width: min(46vw, 200px);
    border-radius: 14px;
  }

  .pv-split__tagline {
    font-size: 0.98rem;
    max-width: 22rem;
  }

  .pv-split__slogan-panel {
    align-self: stretch;
    max-width: none;
    padding-inline: clamp(0.35rem, 4vw, 1rem);
  }

  .pv-split__pillars {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    max-width: 280px;
  }

  .pv-split__pillar-text {
    max-width: none;
  }

  .pv-split__brand-wave {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-split__brand-photo {
    animation: none !important;
    transform: scale(1.1);
  }

  body.pv-login-shell .pv-split__submit:hover {
    transform: none;
  }
}
