/**
 * Splash screen styles
 */

.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f2f4f7, #e6e9ef);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--brand-logo, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #1f2933;
}

.splash-logo {
  width: 520px;
  height: auto;
  margin: 0 auto 1.2rem auto;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoDrop 0.9s ease-out forwards;
}

.splash-logo img {
  width: 520px;
  max-width: 70vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.splash-title {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  animation: titleRise 0.9s ease-out forwards;
}

@media (max-width: 600px) {
  .splash-logo {
    width: 85vw;
  }

  .splash-logo img {
    width: 85vw;
  }

  .splash-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    padding: 0 var(--spacing-md);
  }
}

@keyframes logoDrop {
  from {
    opacity: 0;
    transform: translateY(-120vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(120vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

