/* ==========================================================================
   INVENZA — Auth Pages (Login, Sign Up, Reset Password) + Splash Screen
   Borderless Frosted Glass Styling
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(56, 189, 248, 0.14) 0px, transparent 60%),
    radial-gradient(at 85% 85%, rgba(168, 85, 247, 0.08) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(224, 242, 254, 0.4) 0px, transparent 70%);
  padding: 24px;
}

/* Subtle decorative blobs */
.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.auth-page::before {
  width: 520px;
  height: 520px;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0) 70%);
}
.auth-page::after {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle at 70% 70%, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0) 70%);
}

.auth-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(56, 189, 248, 0.14);
  border: none;
  width: 100%;
  max-width: 430px;
  padding: 42px 38px;
  animation: card-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
  text-align: center;
  margin-bottom: 26px;
}
.auth-brand img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}
.auth-brand .brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.4px;
}
.auth-brand .brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.splash-store-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 420px) {
  .auth-card { padding: 32px 24px; }
}

.auth-title { text-align: center; margin-bottom: 26px; }
.auth-title h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.auth-title p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

.auth-alert {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
  border: none;
}
.auth-alert.show { display: block; }
.auth-alert.error { background: var(--color-danger-light); color: var(--color-danger); }
.auth-alert.success { background: var(--color-success-light); color: var(--color-success); }

.auth-links {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}
.auth-links .forgot-link { display: block; margin-bottom: 14px; color: var(--color-primary-dark); font-weight: 600; }
.auth-links .switch-link { color: var(--color-text-muted); }
.auth-links .switch-link a { font-weight: 600; color: var(--color-primary-dark); }

/* ---------- Splash Screen (Centered Logo with Shimmer Animation) ---------- */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(56, 189, 248, 0.2) 0px, transparent 60%),
    radial-gradient(at 85% 85%, rgba(168, 85, 247, 0.12) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(224, 242, 254, 0.45) 0px, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s ease;
}
#splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.splash-logo-container {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 
    0 20px 48px -8px rgba(56, 189, 248, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(15, 23, 42, 0.08);
  animation: splash-pulse 2.2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fluid Shimmer Wave across the Logo */
.splash-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -160%;
  width: 160%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: logo-shimmer-sweep 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes logo-shimmer-sweep {
  0% {
    left: -160%;
  }
  100% {
    left: 160%;
  }
}

@keyframes splash-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 20px 48px -8px rgba(56, 189, 248, 0.45);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 26px 56px -6px rgba(56, 189, 248, 0.58);
  }
}

