/* Landing Page Styles for Flicker Web App */
/* Matches native app LaunchScreen exactly */

.landing-container {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  overflow: hidden;
}

.landing-dark-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  z-index: 1;
}

.landing-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.landing-logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  /* No transition initially - will be controlled by JavaScript */
}

.landing-logo-container.fade-in {
  animation: logoFadeIn 0.8s ease forwards;
}

.landing-logo-container.fade-out {
  animation: logoFadeOut 0.6s ease forwards;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}

.landing-logo {
  width: 80vw;
  max-width: 400px;
  height: 80vw;
  max-height: 400px;
  object-fit: contain;
  /* No margin - positioned absolutely within container */
}

.landing-auth-loading {
  position: absolute;
  bottom: -80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-auth-loading.visible {
  opacity: 1;
}

.landing-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.landing-auth-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .landing-logo {
    width: 75vw;
    max-width: 350px;
    height: 75vw;
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .landing-logo {
    width: 70vw;
    max-width: 300px;
    height: 70vw;
    max-height: 300px;
  }
  
  .landing-auth-text {
    font-size: 14px;
  }
}

