/* ==================================================================
   Telas de conta: entrar, cadastro e recuperacao de senha
   ================================================================== */

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ Lateral */

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--bg-tint);
  color: var(--text);
  border-right: 3px solid var(--border);
  overflow: hidden;
}

.auth-aside > * {
  position: relative;
}

@media (max-width: 900px) {
  .auth-aside {
    display: none;
  }
}



.auth-pitch h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.auth-pitch p {
  color: var(--text-2);
  font-weight: 400;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.auth-demo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: var(--bw) solid var(--border-strong);
  max-width: 380px;
}

.auth-benefits {
  display: grid;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-2);
  font-weight: 700;
}

.auth-benefits li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.auth-benefits li::before {
  content: '✓';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Os tres passos na lateral. Com a landing desligada, esta tela e o primeiro
   contato do lojista com a ferramenta — ela precisa explicar sozinha. */
.auth-steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: passo;
  padding: 0;
  margin: 0;
}

.auth-steps li {
  list-style: none;
  counter-increment: passo;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
}

.auth-steps li::before {
  content: counter(passo);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-steps b {
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-steps span {
  font-size: 0.85rem;
  color: var(--text-2);
}

.auth-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
}

/* ------------------------------------------------------------------ Formulario */

.auth-main {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background: var(--bg);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
}

/* Com a lateral visivel a marca ja aparece la — nao repetir do lado direito. */
@media (min-width: 901px) {
  .auth-top .logo {
    visibility: hidden;
  }
}

.auth-box {
  width: min(430px, 100%);
  margin: auto;
  padding-bottom: 2rem;
}

/* Previa que so aparece quando a lateral some (celular). */
.auth-preview {
  display: none;
}

@media (max-width: 900px) {
  .auth-preview {
    display: block;
    margin-bottom: 1.5rem;
    padding: 0.45rem;
    border: var(--bw) solid var(--border);
    border-radius: var(--r-lg);
  }

  .auth-preview zp-compare {
    border-radius: calc(var(--r-lg) - 0.45rem);
  }

  .auth-preview p {
    margin-top: 0.55rem;
    text-align: center;
    font-size: 0.79rem;
    color: var(--text-3);
  }

  /* Com a previa em cena o conteudo cresce: alinhar ao topo evita que o
     formulario fique jogado para o rodape em telas altas. */
  .auth-box {
    margin-block: 0 auto;
  }
}

.auth-box > header {
  margin-bottom: 1.6rem;
}

.auth-box h1 {
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.auth-box header p {
  color: var(--text-2);
  font-size: 0.98rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-2);
}

.auth-foot a,
.auth-link {
  color: var(--brand);
  font-weight: 700;
}

.auth-foot a:hover,
.auth-link:hover {
  text-decoration: underline;
}

/* Medidor de forca da senha (telas de recuperacao, usadas no modo com senha) */
.pw-meter {
  display: flex;
  gap: 4px;
  margin-top: 0.4rem;
}

.pw-meter span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  transition: background var(--t);
}

.pw-meter[data-level='1'] span:nth-child(1) { background: var(--danger); }
.pw-meter[data-level='2'] span:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-level='3'] span:nth-child(-n+3) { background: var(--success); }
