/* Layout das telas de autenticação (Login / Cadastro) — split brand + form */

.auth-split {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(158deg, #ddb1f7 0%, #e8884c 60%, #ff6e1f 100%);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-orb1 {
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); pointer-events: none;
}
.auth-brand-orb2 {
  position: absolute; bottom: -60px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.08); pointer-events: none;
}

.auth-form-wrap {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 60px;
}
.auth-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

/* Header de marca compacto — só aparece no mobile */
.auth-mobile-brand { display: none; }
.auth-mobile-orb {
  position: absolute; top: -20px; right: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); pointer-events: none;
}
.auth-mobile-orb2 {
  position: absolute; bottom: -24px; left: -24px;
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.06); pointer-events: none;
}

.auth-star {
  color: #b4b536;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff;
  pointer-events: none;
}

.chip-choice {
  cursor: pointer;
  padding: 9px 16px;
  font-size: 13px;
  transition: all .15s;
}

/* Medidor de força de senha */
.forca { margin-top: -2px; }
.forca-barra { display: flex; gap: 4px; margin-bottom: 8px; }
.forca-seg {
  flex: 1;
  height: 5px;
  border-radius: 50px;
  background: var(--color-disabled-bg);
  transition: background .2s;
}
.forca-seg.fraca { background: var(--color-danger); }
.forca-seg.media { background: var(--color-orange); }
.forca-seg.forte { background: var(--color-olive); }
.forca-req {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.forca-req span { display: inline-flex; align-items: center; gap: 4px; }
.forca-req span.ok { color: #5c5e00; font-weight: 500; }

@keyframes sparklePulse {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%      { opacity: .35; transform: scale(.75) rotate(20deg); }
}
.sp1 { animation: sparklePulse 2.5s ease-in-out infinite; display: inline-block; }
.sp2 { animation: sparklePulse 3.5s ease-in-out infinite 1.2s; display: inline-block; }
.sp3 { animation: sparklePulse 4s ease-in-out infinite .6s; display: inline-block; }

/* ─────────────  MOBILE  ───────────── */
@media (max-width: 820px) {
  .auth-split { flex-direction: column; }
  .auth-brand { display: none; }

  .auth-form-wrap {
    background: var(--color-cream);
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Header com gradiente + logo flutuando */
  .auth-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(158deg, #ddb1f7 0%, #e8884c 55%, #ff6e1f 100%);
    padding: 42px 20px 48px;
    position: relative;
    overflow: hidden;
  }

  /* Card do formulário sobe por cima do gradiente */
  .auth-form {
    max-width: none;
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    padding: 28px 20px calc(40px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    flex: 1;
  }
}
