/* 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;
  }
}

/* ── Validação humana (Pages/ValidacaoHumana.razor) ──
   São 3 slots (esquerda/frente/direita), um por ângulo, cada um com seu gesto sorteado. Um card
   por foto — e não uma lista de inputs — porque a usuária precisa ver, sem esforço, QUAL gesto vai
   em QUAL foto: trocar a ordem é o erro mais provável, e é o que faz a admin rejeitar. */
.val-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.val-slot {
  padding: 14px;
  background: var(--color-cream);
  border: 1.5px dashed rgba(255, 110, 31, 0.35);
  border-radius: 16px;
  transition: border-color .15s, background .15s;
}
/* Preenchido: a borda para de "pedir" e vira confirmação. */
.val-slot.ok {
  border-style: solid;
  border-color: rgba(180, 181, 54, 0.6);
  background: #fff;
}
.val-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.val-slot-rotulo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.val-slot-instrucao {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
/* O gesto é o coração do slot — tem que dar pra ver sem dúvida, mesmo com 3 na tela. */
.val-slot-emoji {
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}
.val-slot-preview {
  position: relative;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
}
.val-slot-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.val-slot-ok {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-olive);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.val-slot-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.val-slot-file { flex: 1 1 180px; min-width: 0; font-size: 13px; padding: 9px 10px; }
.val-slot-trocar { flex-shrink: 0; white-space: nowrap; }

.validacao-dicas {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.validacao-preview {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
}
.validacao-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.validacao-privacidade {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Link do Instagram nas telas de entrada (Components/BotaoInstagram.razor) ── */
.auth-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 18px;
  background: var(--color-lavender-light);
  color: #9b59d6;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s;
}
.auth-ig:hover {
  background: var(--color-lavender);
  color: var(--color-text);
}
.auth-ig:active { transform: scale(0.97); }

/* Toque: o CLAUDE.md exige hit target mínimo de 44px. Com o padding acima dava 38px. */
@media (hover: none) {
  .auth-ig {
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
  }
}
