.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/fundo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 32px;
  padding: 3rem 2rem;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(156, 163, 175, 0.2),
    inset 0 -1px 0 rgba(75, 85, 99, 0.1);
  border: 2px solid rgba(75, 85, 99, 0.3);
  max-width: 400px;
  width: 90%;
}

.splash-header {
  margin-bottom: 2rem;
}

.splash-logo {
  width: auto;
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.splash-title {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-family: 'Lato', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.splash-message {
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Lato', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.splash-loader {
  width: 40px;
  height: 40px;
  position: relative;
  transform: rotateZ(45deg);
  margin: 1rem 0;
}

.splash-error {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  width: 100%;
}

.error-message {
  margin-bottom: 1rem;
}

.error-message p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.retry-button {
  background: linear-gradient(135deg, #374151, #111827);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.retry-button:active {
  transform: translateY(0);
}
.splash-loader > div {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  transform: scale(1.1);
}

.splash-loader > div:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #667eea;
  animation: splash-loader-anim 2.4s infinite linear both;
  transform-origin: 100% 100%;
}

.splash-loader > div.splash-cube2 {
  transform: scale(1.1) rotateZ(90deg);
}

.splash-loader > div.splash-cube2:before {
  animation-delay: 0.3s;
}

.splash-loader > div.splash-cube3 {
  transform: scale(1.1) rotateZ(180deg);
}

.splash-loader > div.splash-cube3:before {
  animation-delay: 0.6s;
}

.splash-loader > div.splash-cube4 {
  transform: scale(1.1) rotateZ(270deg);
}

.splash-loader > div.splash-cube4:before {
  animation-delay: 0.9s;
}

/* Animações e responsividade */
.splash-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .splash-container {
    padding: 2rem 1.5rem;
    max-width: 90%;
    margin: 1rem;
  }
  
  .splash-logo {
    height: 50px;
  }
  
  .splash-title {
    font-size: 1.5rem;
  }
  
  .splash-message {
    font-size: 1rem;
  }
  
  .error-message p {
    font-size: 0.85rem;
  }
  
  .retry-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@keyframes splash-loader-anim {
  0%, 10% {
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%, 75% {
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%, 100% {
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}
