/* splash.css */

/* Splash screen styles */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #f5f5f5;
  display: flex;
  flex-direction: column; /* stack spinner + text */
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: #333;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease; /* smooth fade */
}

/* Hidden state for splash */
#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Splash retry content */
#splashRetry {
  display: none;
  margin-top: 12px;
  text-align: center;
}

#splashRetry .session-expired-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 24px;
}

.splash-login-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
}

/* Spinner animation */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid #3498db; /* blue accent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Keyframes for rotation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #splash {
    font-size: 18px;
  }
  .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
  #splashRetry .session-expired-link {
    width: 90%;
    max-width: 320px;
    justify-content: center;
    font-size: 16px;
  }
  .splash-login-link {
    font-size: 15px;
  }
}
