/**
 * User App Splash Screen Styles
 */

/* The splash hands off to the app shell, so every tone below is the shell's
   own token, copied from app.theme.scss / app.component.scss:
     desktop  → --card-page-bg (the default wallpaper, index 0 of
                lightColors / darkColors), dark carrying the same 45% scrim
                app.component.scss stacks over it
     mobile   → --layout-bg (flat canvas; the wallpaper is desktop-only) */

#offision-splash-screen {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(315deg, #f6fafe 0%, #dfeaf9 74%);
  z-index: 999;
  pointer-events: none;
}

#offision-splash-screen.dark {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    linear-gradient(315deg, #1f2f47 0%, #131c2b 74%);
}

/* $user-app-mobile-breakpoint: 768px */
@media (max-width: 767px) {
  #offision-splash-screen {
    background: #fafbfc;
  }

  #offision-splash-screen.dark {
    background: #161617;
  }
}

#offision-splash-screen .center {
  display: block;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#offision-splash-screen .logo {
  display: block;
  width: 5rem;
  margin: 0 auto;
}

#offision-splash-screen .loading-message {
  text-align: center;
  margin-top: 1.5rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeSlideIn 0.6s ease forwards;
}

#offision-splash-screen.dark .loading-message {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

#offision-splash-screen .loading-message.fade-out {
  animation: fadeSlideOut 0.4s ease forwards;
}
