/* Shared HSA KIT startup splash (index.html + startup.html). */
html,
body {
  margin: 0;
  background: #fafafa;
}

.hsa-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  color: #182a42;
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hsa-loading-header {
  flex: 0 0 64px;
  height: 64px;
  background: #0673c1;
  color: #fff;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.hsa-loading-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  box-sizing: border-box;
}

.hsa-loading-logo {
  display: block;
  height: 50px;
  width: auto;
  margin-left: -12px;
}

.hsa-loading-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px 48px;
  box-sizing: border-box;
}

.hsa-loading-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #182a42;
  text-align: center;
}

.hsa-loading-spinner {
  width: 56px;
  height: 56px;
  margin: 36px 0 28px;
  animation: hsa-spinner-rotate 1s linear infinite;
}

.hsa-loading-spinner svg {
  display: block;
  width: 56px;
  height: 56px;
}

.hsa-loading-spinner circle {
  fill: none;
  stroke: #0673c1;
  stroke-width: 4;
  stroke-linecap: round;
  /* 35% arc, matching ClientApp/src/home/components/Spinner.jsx */
  stroke-dasharray: 52.78 150.8;
}

.hsa-loading-message {
  font-size: 22px;
  font-weight: 400;
  color: #3d4d61;
  max-width: 22em;
  min-height: 2.9em;
  text-align: center;
  line-height: 1.45;
  transition: opacity 0.35s ease;
}

.hsa-loading-message.is-fading {
  opacity: 0;
}

.hsa-loading-progress-wrap {
  width: min(320px, 80vw);
  margin-top: 20px;
}

.hsa-loading-progress {
  display: block;
  width: 100%;
  height: 8px;
  appearance: none;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 115, 193, 0.15);
}

.hsa-loading-progress::-webkit-progress-bar {
  background: rgba(6, 115, 193, 0.15);
  border-radius: 999px;
}

.hsa-loading-progress::-webkit-progress-value {
  background: #0673c1;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.hsa-loading-progress::-moz-progress-bar {
  background: #0673c1;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.hsa-loading.is-ready {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes hsa-spinner-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
