html {
  font-size: 13px;
  font-weight: 400;
  font-family: Inter,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
  transition: none !important;
}

.splash-screen {
  display: none;
}

.page-loading .splash-screen {
  position: absolute;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Inter, Helvetica, 'sans-serif';
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(13, 148, 136, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #ecfeff 100%);
}

.page-loading .splash-screen .loading-text {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

html[data-bs-theme='dark'] .page-loading .splash-screen {
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(13, 148, 136, 0.14), transparent 32%),
    linear-gradient(180deg, #07101d 0%, #0f172a 100%);
  color: #ffffff;
}

.loader-wrapper {
  width: 100%;
  margin-top: 1.6rem;
}

.splash-shell {
  width: min(92vw, 29rem);
  padding: 2rem 2rem 2.2rem;
  border-radius: 2.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(20px);
}

.splash-orbit {
  position: relative;
  width: 8.25rem;
  height: 8.25rem;
  margin: 0 auto 1.4rem;
}

.splash-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.splash-orbit-ring-one {
  animation: spin 8s linear infinite;
}

.splash-orbit-ring-two {
  inset: 0.75rem;
  border-color: rgba(13, 148, 136, 0.18);
  animation: spin-reverse 6s linear infinite;
}

.splash-logo-wrap {
  position: absolute;
  inset: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.splash-logo {
  width: 3.6rem;
  height: 3.6rem;
  display: block;
  border-radius: 1rem;
}

.splash-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.splash-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.splash-subtitle {
  margin: 0.95rem auto 0;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 23rem;
}

html[data-bs-theme='dark'] .splash-shell {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

html[data-bs-theme='dark'] .splash-orbit-ring {
  border-color: rgba(96, 165, 250, 0.2);
}

html[data-bs-theme='dark'] .splash-orbit-ring-two {
  border-color: rgba(45, 212, 191, 0.22);
}

html[data-bs-theme='dark'] .splash-logo-wrap {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.35);
}

html[data-bs-theme='dark'] .splash-kicker {
  color: #5eead4;
}

html[data-bs-theme='dark'] .splash-title {
  color: #f8fafc;
}

html[data-bs-theme='dark'] .splash-subtitle,
html[data-bs-theme='dark'] .page-loading .splash-screen .loading-text {
  color: #cbd5e1;
}

.loader-track {
  position: relative;
  display: block;
  width: 100%;
  height: 0.45rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.loader-bar {
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e 0%, #2563eb 100%);
  animation: loading-slide 1.25s ease-in-out infinite;
}

html[data-bs-theme='dark'] .loader-track {
  background: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme='dark'] .loader-bar {
  background: linear-gradient(90deg, #2dd4bf 0%, #60a5fa 100%);
}

@keyframes loading-slide {
  0% {
    left: -35%;
  }
  100% {
    left: 100%;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
