/* --------------------------------------------------------------------------
   Login e cadastro (/entrar/ e /criar-conta/)
   Mesma linguagem do checkout: verde-floresta, acento #3FD581, cartões claros
   e painel escuro com benefícios. Carregado apenas nas páginas de autenticação.
   -------------------------------------------------------------------------- */

body.hostout-auth-page .page-title-area {
  display: none !important;
}

body.hostout-auth-page .hostout-content-wrap {
  margin-top: 0 !important;
}

body.hostout-auth-page .hostout-site__content {
  position: relative;
  padding-bottom: 0;
}

/* O header do tema é translúcido (rgba(27,55,43,.565)). Sobre o branco desta
   página ele aparecia acinzentado, diferente do resto do site, onde há um fundo
   escuro atrás. Esta faixa devolve a cor da marca atrás da navegação e some
   suavemente antes do cartão. */
body.hostout-auth-page .hostout-site__content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7.75rem;
  background:
    radial-gradient(120% 140% at 14% 0%, rgba(63, 213, 129, 0.18), transparent 62%),
    linear-gradient(180deg, #0d1b15 0%, #0f2119 70%, rgba(13, 27, 21, 0) 100%);
  pointer-events: none;
}

.hco-auth {
  --hco-forest: #0d1b15;
  --hco-forest-soft: #1b372b;
  --hco-ink: #0d1b15;
  --hco-muted: #5a7468;
  --hco-line: rgba(27, 55, 43, 0.14);
  --hco-line-strong: rgba(27, 55, 43, 0.24);
  --hco-accent: #3fd581;
  --hco-accent-hover: #ffbd29;
  --hco-mist: #e8f5ee;
  --hco-card: #ffffff;
  --hco-shadow: 0 24px 60px -28px rgba(13, 27, 21, 0.35);

  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  /* O header do tema é transparente e sobrepõe o conteúdo: garante respiro. */
  padding: clamp(6.5rem, 12vw, 9rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
  color: var(--hco-ink);
  font-family: Inter, "Open Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.hco-auth *,
.hco-auth *::before,
.hco-auth *::after {
  box-sizing: border-box;
}

.hco-auth a {
  color: #137a52;
}

/* --------------------------------------------------------------------------
   Cartão
   -------------------------------------------------------------------------- */
.hco-auth__card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-radius: 26px;
  background: var(--hco-card);
  box-shadow: var(--hco-shadow);
  border: 1px solid rgba(27, 55, 43, 0.08);
}

/* --------------------------------------------------------------------------
   Painel de marca (esquerda)
   -------------------------------------------------------------------------- */
.hco-auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(63, 213, 129, 0.3), transparent 55%),
    radial-gradient(90% 100% at 100% 100%, rgba(255, 189, 41, 0.14), transparent 55%),
    linear-gradient(150deg, #0d1b15 0%, #12291f 55%, #1b372b 100%);
  color: #eafbf3;
  overflow: hidden;
}

.hco-auth__brand::after {
  content: "";
  position: absolute;
  right: -25%;
  top: -30%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 213, 129, 0.28), transparent 65%);
  pointer-events: none;
}

.hco-auth__brand > * {
  position: relative;
  z-index: 1;
}

.hco-auth__brand-top {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hco-auth__logo-img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 180px;
  filter: brightness(0) invert(1);
}

.hco-auth__logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #eafbf3;
}

.hco-auth__brand-copy {
  margin-top: 0.5rem;
}

.hco-auth__brand-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #f4fff9;
}

.hco-auth__brand-copy p {
  margin: 0;
  color: rgba(232, 245, 238, 0.76);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hco-auth__perks {
  display: grid;
  gap: 0.85rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.hco-auth__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(240, 255, 248, 0.9);
}

.hco-auth__check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.02rem;
  border-radius: 50%;
  background: rgba(63, 213, 129, 0.18);
  color: var(--hco-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.hco-auth__brand-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(232, 245, 238, 0.14);
  color: rgba(232, 245, 238, 0.6);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hco-auth__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hco-accent);
  box-shadow: 0 0 0 4px rgba(63, 213, 129, 0.2);
}

/* --------------------------------------------------------------------------
   Formulário (direita)
   -------------------------------------------------------------------------- */
.hco-auth__panel {
  padding: clamp(1.8rem, 3.4vw, 2.9rem);
  background: #fff;
}

.hco-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: var(--hco-mist);
  color: #0d5c3c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hco-auth__panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 2.7vw, 2.05rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--hco-ink);
}

.hco-auth__sub {
  margin: 0 0 1.5rem;
  color: var(--hco-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hco-auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 60, 60, 0.28);
  border-radius: 14px;
  background: #fdf2f2;
  color: #9c2727;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.hco-auth__alert-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #d63c3c;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.hco-auth__form {
  display: grid;
  gap: 1.05rem;
}

.hco-auth__field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1b372b;
}

.hco-auth__field > span:first-child {
  letter-spacing: 0.01em;
}

.hco-auth__req {
  margin-left: 0.35rem;
  color: var(--hco-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hco-auth__hint {
  color: var(--hco-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.hco-auth__field input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 1.5px solid var(--hco-line-strong);
  border-radius: 13px;
  background: #fbfdfc;
  color: var(--hco-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.hco-auth__field input::placeholder {
  color: #9aada4;
  font-weight: 400;
}

.hco-auth__field input:focus {
  outline: none;
  border-color: var(--hco-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 213, 129, 0.16);
}

.hco-auth__pass {
  position: relative;
  display: block;
}

.hco-auth__pass input {
  padding-right: 5.2rem;
}

.hco-auth__reveal {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0d5c3c;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.hco-auth__reveal:hover {
  background: var(--hco-mist);
}

.hco-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hco-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: -0.2rem;
}

.hco-auth__checkline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #3f5a4e;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.hco-auth__checkline input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  accent-color: #2fbf6f;
  cursor: pointer;
}

.hco-auth__checkline--terms {
  margin: 0.15rem 0 0.2rem;
}

.hco-auth__checkline a {
  color: #0d5c3c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hco-auth__link {
  color: #0d5c3c !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.hco-auth__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hco-auth__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.35rem;
  margin-top: 0.25rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #46e28d, #2fbf6f);
  color: #04150d !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(63, 213, 129, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hco-auth__submit:hover {
  background: linear-gradient(135deg, #ffc94f, #ffbd29);
  box-shadow: 0 16px 32px -14px rgba(255, 189, 41, 0.7);
  transform: translateY(-2px);
}

.hco-auth__submit:active {
  transform: translateY(0);
}

.hco-auth__submit > span {
  transition: transform 0.18s ease;
}

.hco-auth__submit:hover > span {
  transform: translateX(3px);
}

.hco-auth__switch {
  margin: 1.4rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hco-line);
  color: var(--hco-muted);
  font-size: 0.9rem;
  text-align: center;
}

.hco-auth__switch a {
  font-weight: 800;
  color: #0d5c3c !important;
  text-decoration: none;
}

.hco-auth__switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hco-auth__back {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.84rem;
}

.hco-auth__back a {
  color: var(--hco-muted) !important;
  font-weight: 600;
  text-decoration: none;
}

.hco-auth__back a:hover {
  color: #0d5c3c !important;
}

/* --------------------------------------------------------------------------
   WhatsApp
   -------------------------------------------------------------------------- */
.hco-auth__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(63, 213, 129, 0.4);
  border-radius: 999px;
  background: rgba(63, 213, 129, 0.12);
  color: #eafbf3;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hco-auth__wa:hover {
  border-color: rgba(63, 213, 129, 0.75);
  background: rgba(63, 213, 129, 0.22);
  color: #f4fff9;
  transform: translateY(-1px);
}

.hco-auth__wa-icon {
  flex: 0 0 auto;
  color: var(--hco-accent);
}

.hco-auth__help {
  margin: 0.95rem 0 0;
  color: var(--hco-muted);
  font-size: 0.82rem;
  text-align: center;
}

.hco-auth__wa-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0d5c3c;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hco-auth__wa-inline:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hco-auth__wa-inline .hco-auth__wa-icon {
  width: 0.95rem;
  height: 0.95rem;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hco-auth {
    padding-top: clamp(5.5rem, 16vw, 7rem);
  }

  .hco-auth__card {
    grid-template-columns: 1fr;
  }

  .hco-auth__brand {
    gap: 1.2rem;
    padding: 1.6rem;
  }

  .hco-auth__brand-copy h2 {
    font-size: 1.3rem;
  }

  .hco-auth__perks {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 0.4rem;
  }

  .hco-auth__perks li {
    font-size: 0.82rem;
  }

  .hco-auth__brand-foot {
    display: none;
  }

  .hco-auth__panel {
    padding: 1.6rem;
  }
}

@media (max-width: 560px) {
  .hco-auth {
    padding: 5rem 1rem 2.5rem;
  }

  .hco-auth__card {
    border-radius: 20px;
  }

  .hco-auth__brand {
    padding: 1.35rem;
  }

  .hco-auth__logo-img {
    height: 32px;
  }

  .hco-auth__brand-copy p {
    font-size: 0.88rem;
  }

  .hco-auth__perks {
    grid-template-columns: 1fr;
  }

  .hco-auth__panel {
    padding: 1.4rem 1.25rem 1.6rem;
  }

  .hco-auth__grid {
    grid-template-columns: 1fr;
  }

  .hco-auth__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hco-auth *,
  .hco-auth *::before,
  .hco-auth *::after {
    animation: none !important;
    transition: none !important;
  }
}
