/* Home pública do Desenvolve. Escopo isolado para não afetar a aplicação após o login. */
body.auth-pending,
body.auth-open {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f4f7f4;
}

body.auth-pending #authGate[hidden],
body.auth-open #authGate[hidden],
body.auth-pending #authGate [hidden],
body.auth-open #authGate [hidden] {
  display: none !important;
}

body.auth-pending #authGate,
body.auth-open #authGate {
  display: grid !important;
  grid-template-columns: minmax(430px, 46%) minmax(500px, 54%) !important;
  width: 100% !important;
  min-height: 100vh !important;
  background: #f4f7f4 !important;
  overflow-anchor: none !important;
}

body.auth-pending #authGate .auth-showcase,
body.auth-open #authGate .auth-showcase {
  position: relative !important;
  display: flex !important;
  min-height: 100vh !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  padding: clamp(34px, 5vw, 72px) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 8% 76%, rgba(225, 132, 104, .18), transparent 27%),
    radial-gradient(circle at 88% 10%, rgba(136, 199, 184, .18), transparent 30%),
    linear-gradient(145deg, #113d48 0%, #204e5b 58%, #153c47 100%) !important;
  box-shadow: none !important;
}

body.auth-pending #authGate .auth-showcase::before,
body.auth-open #authGate .auth-showcase::before {
  position: absolute !important;
  top: 30% !important;
  right: -170px !important;
  width: 440px !important;
  height: 440px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 50% !important;
  background: transparent !important;
  content: "" !important;
}

body.auth-pending #authGate .auth-showcase::after,
body.auth-open #authGate .auth-showcase::after {
  position: absolute !important;
  right: 8% !important;
  bottom: -100px !important;
  width: 260px !important;
  height: 260px !important;
  border: 1px solid rgba(231, 153, 125, .16) !important;
  border-radius: 50% !important;
  background: transparent !important;
  content: "" !important;
}

body.auth-pending #authGate .auth-showcase > *,
body.auth-open #authGate .auth-showcase > * {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.auth-pending #authGate .auth-brand,
body.auth-open #authGate .auth-brand {
  display: flex !important;
  width: auto !important;
  min-height: 62px !important;
  align-items: center !important;
  margin: 0 0 34px !important;
}

body.auth-pending #authGate .auth-brand .brand-mark,
body.auth-open #authGate .auth-brand .brand-mark {
  display: block !important;
  width: min(290px, 72%) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.auth-pending #authGate .auth-brand img,
body.auth-open #authGate .auth-brand img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.18));
}

body.auth-pending #authGate .auth-message,
body.auth-open #authGate .auth-message {
  display: block !important;
  max-width: 610px !important;
  padding: 0 !important;
}

body.auth-pending #authGate .auth-message .eyebrow,
body.auth-open #authGate .auth-message .eyebrow {
  display: inline-flex !important;
  width: max-content !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 13px !important;
  color: #f9e6de !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  font-size: 10px !important;
  letter-spacing: .1em !important;
}

body.auth-pending #authGate .auth-message h1,
body.auth-open #authGate .auth-message h1 {
  display: block !important;
  max-width: 590px !important;
  margin: 22px 0 18px !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(44px, 5.1vw, 70px) !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
  text-shadow: 0 12px 28px rgba(0,0,0,.2) !important;
}

body.auth-pending #authGate .hero-accent,
body.auth-open #authGate .hero-accent {
  color: #f19a80 !important;
}

body.auth-pending #authGate .auth-short-copy,
body.auth-open #authGate .auth-short-copy {
  display: block !important;
  max-width: 520px !important;
  margin: 0 0 22px !important;
  color: rgba(235,247,246,.88) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body.auth-pending #authGate .auth-about,
body.auth-open #authGate .auth-about {
  display: grid !important;
  max-width: 540px !important;
  gap: 8px !important;
  margin: 0 0 20px !important;
  padding: 17px 19px !important;
  color: rgba(238,249,247,.86) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.07) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body.auth-pending #authGate .auth-about strong,
body.auth-open #authGate .auth-about strong {
  color: #fff !important;
  font-size: 15px !important;
}

body.auth-pending #authGate .auth-about span,
body.auth-open #authGate .auth-about span {
  color: rgba(238,249,247,.83) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

body.auth-pending #authGate .auth-features,
body.auth-open #authGate .auth-features {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
}

body.auth-pending #authGate .auth-feature,
body.auth-open #authGate .auth-feature {
  position: relative !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.07) !important;
  font-size: 9px !important;
  box-shadow: none !important;
}

body.auth-pending #authGate .auth-3d-stage,
body.auth-open #authGate .auth-3d-stage {
  display: none !important;
}

body.auth-pending #authGate .auth-public-actions,
body.auth-open #authGate .auth-public-actions {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

body.auth-pending #authGate .plans-hero-button,
body.auth-open #authGate .plans-hero-button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 210px !important;
  min-height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  font-size: 11px !important;
}

body.auth-pending #authGate .plans-hero-button::before,
body.auth-open #authGate .plans-hero-button::before,
body.auth-pending #authGate .plans-hero-button::after,
body.auth-open #authGate .plans-hero-button::after {
  display: none !important;
  content: none !important;
}

body.auth-pending #authGate .auth-credit,
body.auth-open #authGate .auth-credit {
  display: block !important;
  margin-top: auto !important;
  padding-top: 25px !important;
  color: rgba(235,247,246,.72) !important;
  font-size: 10px !important;
}

body.auth-pending #authGate .auth-panel,
body.auth-open #authGate .auth-panel {
  position: relative !important;
  display: grid !important;
  min-height: 100vh !important;
  place-items: start center !important;
  overflow: visible !important;
  padding: clamp(28px, 5vw, 70px) !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(137,196,181,.17), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(225,132,104,.1), transparent 25%),
    linear-gradient(145deg, #f6f8f4, #eef4f0) !important;
}

body.auth-pending #authGate .auth-panel::before,
body.auth-open #authGate .auth-panel::before,
body.auth-pending #authGate .auth-card::after,
body.auth-open #authGate .auth-card::after {
  display: none !important;
  content: none !important;
}

body.auth-pending #authGate .auth-card,
body.auth-open #authGate .auth-card {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(500px, 100%) !important;
  min-width: 0 !important;
  max-width: 500px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 12px 0 !important;
  padding: clamp(22px, 3vw, 34px) !important;
  overflow: visible !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 28px 65px rgba(25,64,72,.14), inset 0 1px 0 #fff !important;
  backdrop-filter: blur(14px) !important;
  overflow-anchor: none !important;
}

body.auth-pending #authGate .auth-card:has(#signupForm:not([hidden])),
body.auth-open #authGate .auth-card:has(#signupForm:not([hidden])),
body.auth-pending #authGate .auth-card:has(.recovery-panel:not([hidden])),
body.auth-open #authGate .auth-card:has(.recovery-panel:not([hidden])) {
  inset: auto !important;
  align-self: start !important;
  justify-self: center !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 12px 0 !important;
}

body.auth-pending #authGate .auth-card:has(#signupForm:not([hidden])) .auth-plans-trigger,
body.auth-open #authGate .auth-card:has(#signupForm:not([hidden])) .auth-plans-trigger,
body.auth-pending #authGate .auth-card:has(.recovery-panel:not([hidden])) .auth-plans-trigger,
body.auth-open #authGate .auth-card:has(.recovery-panel:not([hidden])) .auth-plans-trigger {
  display: none !important;
}

body.auth-pending #authGate .auth-card-brand,
body.auth-open #authGate .auth-card-brand {
  display: grid !important;
  width: 60px !important;
  height: 60px !important;
  place-items: center !important;
  margin: 0 auto 10px !important;
  border: 1px solid #fff !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #fff, #edf4f0) !important;
  box-shadow: 0 16px 32px rgba(25,64,72,.13) !important;
}

body.auth-pending #authGate .auth-card-brand .brand-mark,
body.auth-open #authGate .auth-card-brand .brand-mark {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
}

body.auth-pending #authGate .auth-card-brand img,
body.auth-open #authGate .auth-card-brand img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.auth-pending #authGate .environment-badge,
body.auth-open #authGate .environment-badge {
  display: flex !important;
  width: max-content !important;
  margin: 0 auto 10px !important;
}

body.auth-pending #authGate .auth-heading,
body.auth-open #authGate .auth-heading {
  display: block !important;
  text-align: left !important;
}

body.auth-pending #authGate .auth-heading h2,
body.auth-open #authGate .auth-heading h2 {
  margin: 6px 0 !important;
  color: #173641 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(32px, 3vw, 42px) !important;
  line-height: 1.08 !important;
}

body.auth-pending #authGate .auth-heading p,
body.auth-open #authGate .auth-heading p {
  color: #6f8187 !important;
}

body.auth-pending #authGate .auth-plans-trigger,
body.auth-open #authGate .auth-plans-trigger {
  display: grid !important;
  width: 100% !important;
  margin: 13px 0 !important;
  padding: 13px 16px !important;
  text-align: left !important;
  border: 1px solid #dde7e3 !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #fff, #f1f7f4) !important;
  box-shadow: 0 10px 22px rgba(35,70,78,.06) !important;
}

body.auth-pending #authGate .auth-tabs,
body.auth-open #authGate .auth-tabs {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  margin: 18px 0 !important;
  padding: 5px !important;
}

body.auth-pending #authGate #loginForm,
body.auth-open #authGate #loginForm,
body.auth-pending #authGate #signupForm:not([hidden]),
body.auth-open #authGate #signupForm:not([hidden]) {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  gap: 15px !important;
}

body.auth-pending #authGate #loginForm[hidden],
body.auth-open #authGate #loginForm[hidden],
body.auth-pending #authGate #signupForm[hidden],
body.auth-open #authGate #signupForm[hidden] {
  display: none !important;
}

body.auth-pending #authGate .auth-form label,
body.auth-open #authGate .auth-form label {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  gap: 7px !important;
  color: #385b63 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body.auth-pending #authGate .auth-form input,
body.auth-open #authGate .auth-form input,
body.auth-pending #authGate .auth-form select,
body.auth-open #authGate .auth-form select,
body.auth-pending #authGate .auth-form textarea,
body.auth-open #authGate .auth-form textarea {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-height: 50px !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 14px !important;
  color: #173641 !important;
  -webkit-text-fill-color: #173641 !important;
  border: 1px solid #dce5e2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.auth-captcha {
  width: 100%;
  min-height: 65px;
  margin: 2px 0 12px;
}

.auth-captcha[hidden] {
  display: none;
}

body.auth-pending #authGate .password-field,
body.auth-open #authGate .password-field {
  position: relative !important;
  display: block !important;
}

body.auth-pending #authGate .password-toggle,
body.auth-open #authGate .password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
}

body.auth-pending #authGate .forgot-password,
body.auth-open #authGate .forgot-password {
  position: static !important;
  inset: auto !important;
  display: block !important;
  justify-self: end !important;
  margin: -2px 0 0 !important;
}

body.auth-pending #authGate .auth-submit,
body.auth-open #authGate .auth-submit {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 52px !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #245d68, #16454f) !important;
}

body.auth-pending #authGate .auth-tabs,
body.auth-open #authGate .auth-tabs {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  pointer-events: auto !important;
}

body.auth-pending #authGate .auth-tabs button,
body.auth-open #authGate .auth-tabs button,
body.auth-pending #authGate #loginTab,
body.auth-open #authGate #loginTab,
body.auth-pending #authGate #signupTab,
body.auth-open #authGate #signupTab {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 42px !important;
  height: auto !important;
  pointer-events: auto !important;
  color: #173641 !important;
  -webkit-text-fill-color: #173641 !important;
  border: 1px solid #dce5e2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 9px 20px rgba(35,70,78,.08) !important;
}

body.auth-pending #authGate .support-center-link,
body.auth-open #authGate .support-center-link,
body.auth-pending #authGate .auth-tutorial-trigger,
body.auth-open #authGate .auth-tutorial-trigger,
body.auth-pending #authGate .auth-install-trigger,
body.auth-open #authGate .auth-install-trigger {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  margin-top: 14px !important;
}

body.auth-pending #authGate .auth-help-links,
body.auth-open #authGate .auth-help-links {
  display: none !important;
}

/* Mantém todo o acesso visível em notebooks com pouca altura útil. */
@media (min-width: 981px) and (max-height: 820px) {
  body.auth-pending #authGate .auth-showcase,
  body.auth-open #authGate .auth-showcase {
    padding: 28px 46px !important;
  }

  body.auth-pending #authGate .auth-brand,
  body.auth-open #authGate .auth-brand {
    min-height: 48px !important;
    margin-bottom: 20px !important;
  }

  body.auth-pending #authGate .auth-brand .brand-mark,
  body.auth-open #authGate .auth-brand .brand-mark {
    width: min(250px, 68%) !important;
  }

  body.auth-pending #authGate .auth-message h1,
  body.auth-open #authGate .auth-message h1 {
    margin: 14px 0 12px !important;
    font-size: clamp(42px, 4.4vw, 58px) !important;
  }

  body.auth-pending #authGate .auth-short-copy,
  body.auth-open #authGate .auth-short-copy {
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
  }

  body.auth-pending #authGate .auth-about,
  body.auth-open #authGate .auth-about {
    display: none !important;
  }

  body.auth-pending #authGate .auth-features,
  body.auth-open #authGate .auth-features {
    margin-bottom: 12px !important;
  }

  body.auth-pending #authGate .auth-credit,
  body.auth-open #authGate .auth-credit {
    padding-top: 14px !important;
  }

  body.auth-pending #authGate .auth-panel,
  body.auth-open #authGate .auth-panel {
    padding: 10px 28px 28px !important;
  }

  body.auth-pending #authGate .auth-card,
  body.auth-open #authGate .auth-card {
    margin: 0 !important;
    padding: 18px 28px !important;
  }

  body.auth-pending #authGate .auth-card-brand,
  body.auth-open #authGate .auth-card-brand {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 4px !important;
  }

  body.auth-pending #authGate .auth-card-brand .brand-mark,
  body.auth-open #authGate .auth-card-brand .brand-mark {
    width: 28px !important;
    height: 28px !important;
  }

  body.auth-pending #authGate .environment-badge,
  body.auth-open #authGate .environment-badge {
    display: none !important;
  }

  body.auth-pending #authGate .auth-heading h2,
  body.auth-open #authGate .auth-heading h2 {
    margin: 2px 0 !important;
    font-size: 32px !important;
  }

  body.auth-pending #authGate .auth-heading p,
  body.auth-open #authGate .auth-heading p {
    margin: 4px 0 8px !important;
  }

  body.auth-pending #authGate .auth-plans-trigger,
  body.auth-open #authGate .auth-plans-trigger {
    margin: 8px 0 !important;
    padding: 9px 13px !important;
  }

  body.auth-pending #authGate #loginForm,
  body.auth-open #authGate #loginForm {
    gap: 8px !important;
  }

  body.auth-pending #authGate .auth-form label,
  body.auth-open #authGate .auth-form label {
    gap: 4px !important;
  }

  body.auth-pending #authGate .auth-form input,
  body.auth-open #authGate .auth-form input {
    min-height: 46px !important;
  }

  body.auth-pending #authGate .auth-submit,
  body.auth-open #authGate .auth-submit {
    min-height: 48px !important;
  }

  body.auth-pending #authGate .auth-tabs,
  body.auth-open #authGate .auth-tabs {
    margin: 10px 0 0 !important;
  }
}

@media (max-width: 980px) {
  body.auth-pending #authGate,
  body.auth-open #authGate {
    display: block !important;
  }

  body.auth-pending #authGate .auth-showcase,
  body.auth-open #authGate .auth-showcase {
    min-height: auto !important;
    padding: 30px 24px 38px !important;
  }

  body.auth-pending #authGate .auth-brand,
  body.auth-open #authGate .auth-brand {
    margin-bottom: 18px !important;
  }

  body.auth-pending #authGate .auth-brand .brand-mark,
  body.auth-open #authGate .auth-brand .brand-mark {
    width: min(240px, 70%) !important;
  }

  body.auth-pending #authGate .auth-message h1,
  body.auth-open #authGate .auth-message h1 {
    font-size: clamp(35px, 9vw, 48px) !important;
  }

  body.auth-pending #authGate .auth-about,
  body.auth-open #authGate .auth-about,
  body.auth-pending #authGate .auth-features,
  body.auth-open #authGate .auth-features,
  body.auth-pending #authGate .auth-credit,
  body.auth-open #authGate .auth-credit {
    display: none !important;
  }

  body.auth-pending #authGate .auth-panel,
  body.auth-open #authGate .auth-panel {
    min-height: auto !important;
    padding: 28px 16px 45px !important;
  }

  body.auth-pending #authGate .auth-card,
  body.auth-open #authGate .auth-card {
    width: min(560px, 100%) !important;
    max-height: none !important;
    padding: 24px 18px !important;
  }
}

/* Cadastro: mantém a apresentação fixa e permite rolar todos os campos no painel. */
@media (min-width: 981px) {
  body.auth-pending,
  body.auth-open {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
  }

  body.auth-pending #authGate,
  body.auth-open #authGate {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.auth-pending #authGate .auth-showcase,
  body.auth-open #authGate .auth-showcase {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.auth-pending #authGate .auth-panel,
  body.auth-open #authGate .auth-panel {
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #6f918d #e5ece8;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-pending #authGate .auth-panel::-webkit-scrollbar,
  body.auth-open #authGate .auth-panel::-webkit-scrollbar {
    width: 11px;
  }

  body.auth-pending #authGate .auth-panel::-webkit-scrollbar-track,
  body.auth-open #authGate .auth-panel::-webkit-scrollbar-track {
    background: #e5ece8;
  }

  body.auth-pending #authGate .auth-panel::-webkit-scrollbar-thumb,
  body.auth-open #authGate .auth-panel::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 3px solid #e5ece8;
    border-radius: 999px;
    background: #6f918d;
  }
}
