/* ═══════════════════════════════════════════════════════════
   AUTH v2 — login / register bonitos y vivos
   Paleta: fondo navy + acento coral/rosa
   ═══════════════════════════════════════════════════════════ */
.auth-v2 {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

/* ── Fondo decorativo con blobs + rejilla ── */
.auth-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: blobFloat 14s ease-in-out infinite;
}
.auth-blob.b1 {
  width: 420px; height: 420px;
  top: -120px; left: -140px;
  background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
}
.auth-blob.b2 {
  width: 360px; height: 360px;
  bottom: -100px; right: -120px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: -4s;
}
.auth-blob.b3 {
  width: 300px; height: 300px;
  top: 40%; right: 15%;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  animation-delay: -8s;
  opacity: .35;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(30px, -20px) scale(1.06); }
  66%     { transform: translate(-20px, 30px) scale(.95); }
}
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 63, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 63, 94, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ── Tarjeta ── */
.auth-card-v2 {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 36px 34px 30px;
  background: rgba(17, 25, 40, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardRise .6s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── Logo ── */
.auth-brand { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-logo {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: white; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.4);
}
.auth-logo svg { width: 28px; height: 28px; }

/* ── Títulos ── */
.auth-title {
  color: white;
  font-size: 32px; font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: -0.5px;
}
.auth-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0 0 22px;
  text-align: center;
}

/* ── Error ── */
.auth-err {
  padding: 10px 14px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 12px;
  color: #fda4af;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

/* ── Form ── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid #f43f5e;
  border-radius: 999px;
  padding: 2px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-field:focus-within {
  border-color: #ec4899;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}
.auth-ic {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 10px;
}
.auth-field:focus-within .auth-ic { color: #f43f5e; }
.auth-ic svg { width: 18px; height: 18px; }

.auth-field input {
  flex: 1 1 auto;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 12px 14px 12px 6px !important;
  color: white !important;
  font-size: 14px;
  min-width: 0;
}
.auth-field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.auth-field input:-webkit-autofill {
  -webkit-text-fill-color: white !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 9999s;
}

.auth-show {
  background: none; border: 0; padding: 8px 16px 8px 10px;
  color: #f43f5e; font-size: 12px; font-weight: 600;
  cursor: pointer; flex: 0 0 auto;
  transition: color .15s;
}
.auth-show:hover { color: #fb7185; }

/* ── Fila remember + forgot ── */
.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 2px 2px;
  flex-wrap: wrap; gap: 10px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.75); font-size: 13px;
  cursor: pointer; user-select: none;
}
.auth-check input { display: none; }
.auth-check span {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex: 0 0 auto;
}
.auth-check input:checked + span {
  background: #f43f5e; border-color: #f43f5e;
}
.auth-check input:checked + span::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}
.auth-forgot {
  color: #f43f5e; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.auth-forgot:hover { color: #fb7185; }

/* ── Checkbox de términos ── */
.auth-terms {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  align-items: flex-start;
  line-height: 1.4;
}
.auth-terms a { color: #f43f5e; font-weight: 600; }

/* ── Botón principal ── */
.auth-btn {
  margin-top: 8px;
  padding: 14px 22px;
  width: 100%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: white;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(244, 63, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform .15s, box-shadow .18s, filter .15s;
  letter-spacing: 0.3px;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(244, 63, 94, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}
.auth-btn:active { transform: translateY(0); }

/* ── Separador "o conéctate con" ── */
.auth-sep {
  display: flex; align-items: center;
  margin: 24px 0 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  gap: 12px;
}
.auth-sep::before, .auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ── Redes sociales ── */
.auth-social {
  display: flex; justify-content: center;
  gap: 12px;
}
.auth-soc {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  transition: transform .15s, background .18s, box-shadow .18s;
}
.auth-soc svg { width: 20px; height: 20px; }
.auth-soc:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.auth-soc.fb { color: #1877f2; }
.auth-soc.tw { color: #1da1f2; }
.auth-soc.gg { color: #ea4335; }
.auth-soc.ig { color: #e4405f; }

/* ── Enlace de cambio ── */
.auth-swap {
  text-align: center;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.auth-swap a {
  color: #f43f5e;
  font-weight: 700;
  text-decoration: none;
}
.auth-swap a:hover { color: #fb7185; text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .auth-card-v2 { padding: 28px 22px 24px; max-width: 100%; border-radius: 20px; }
  .auth-title { font-size: 26px; }
  .auth-sub { font-size: 13px; margin-bottom: 18px; }
  .auth-blob { filter: blur(50px); }
  .auth-blob.b1 { width: 280px; height: 280px; }
  .auth-blob.b2 { width: 260px; height: 260px; }
  .auth-blob.b3 { display: none; }
}
