/* ══════════════════════════════════════════════════════════════════════
   LuvMe — Splash Screen, Auth Transition & Button Spinners
   ══════════════════════════════════════════════════════════════════════ */

/* ── Startup Splash ─────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #080608;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(194,105,122,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(194,105,122,0.05) 0%, transparent 70%),
    #080608;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.splash.dismissed {
  opacity: 0;
  pointer-events: none;
}

/* Floating particles */
.splash-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(194,105,122,0.25);
  animation: splashFloat 6s ease-in-out infinite;
}

.splash-particle:nth-child(1) { left: 15%; top: 20%; animation-duration: 5.5s; animation-delay: 0s; }
.splash-particle:nth-child(2) { left: 80%; top: 30%; animation-duration: 7s; animation-delay: 0.8s; width: 3px; height: 3px; }
.splash-particle:nth-child(3) { left: 25%; top: 70%; animation-duration: 6.5s; animation-delay: 1.5s; width: 5px; height: 5px; }
.splash-particle:nth-child(4) { left: 70%; top: 65%; animation-duration: 5s; animation-delay: 0.3s; }
.splash-particle:nth-child(5) { left: 50%; top: 15%; animation-duration: 8s; animation-delay: 2s; width: 3px; height: 3px; }
.splash-particle:nth-child(6) { left: 40%; top: 80%; animation-duration: 6s; animation-delay: 1s; width: 5px; height: 5px; }

@keyframes splashFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.3); opacity: 0.6; }
}

/* Center cluster */
.splash-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Heart outline */
.splash-heart {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  opacity: 0;
  animation: splashFadeUp 0.6s ease forwards 0.2s;
}

.splash-heart svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(194,105,122,0.3));
}
.splash-logo-img { width: 52px; height: 52px; border-radius: 50%; }

/* Pulse rings behind heart */
.splash-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(194,105,122,0.2);
  border-radius: 50%;
  animation: splashRing 2.5s ease-out infinite;
}

.splash-ring:nth-child(2) { animation-delay: 0.8s; }

@keyframes splashRing {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Brand text */
.splash-brand {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 2px;
  opacity: 0;
  animation: splashFadeUp 0.6s ease forwards 0.5s;
}

.splash-brand em {
  font-style: italic;
  color: var(--rose);
}

/* Decorative line */
.splash-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-dim), transparent);
  margin: 14px 0;
  opacity: 0;
  animation: splashFadeUp 0.5s ease forwards 0.8s;
}

/* Tagline */
.splash-tagline {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: splashFadeUp 0.5s ease forwards 1s;
}

/* Loading dots */
.splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 32px;
  opacity: 0;
  animation: splashFadeUp 0.4s ease forwards 1.2s;
}

.splash-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose-dim);
  animation: splashPulse 1.2s ease-in-out infinite;
}

.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Auth Transition ────────────────────────────────────────────────── */
.auth-transition {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #080608;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(194,105,122,0.06) 0%, transparent 70%),
    #080608;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.auth-transition.visible {
  display: flex;
  opacity: 1;
}

.auth-transition.fade-out {
  opacity: 0;
}

.auth-transition-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-transition-brand {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0;
  animation: splashFadeUp 0.5s ease forwards 0.1s;
}

.auth-transition-brand em {
  font-style: italic;
  color: var(--rose);
}

.auth-transition-welcome {
  font-family: var(--ff-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  opacity: 0;
  animation: splashFadeUp 0.5s ease forwards 0.3s;
}

/* Single pulse ring */
.auth-transition-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  border: 1px solid rgba(194,105,122,0.15);
  border-radius: 50%;
  animation: authRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes authRing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ── Submit Button Spinner ──────────────────────────────────────────── */
.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.google-cancel-hint {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}
