/* TimeERP workspace loading splash */

.ws-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8fb;
  transition: opacity .35s ease, visibility .35s ease;
}

.ws-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ws-loader__card {
  width: min(360px, calc(100vw - 40px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  padding: 36px 28px 28px;
  text-align: center;
}

.ws-loader__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.ws-loader__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ws-loader__brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2744;
}

.ws-loader__brand-text span {
  color: #25b7a7;
}

.ws-loader__spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  position: relative;
}

.ws-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: ws-spin 1s linear infinite;
}

.ws-loader__ring:nth-child(1) {
  border-top-color: #1e3a5f;
  animation-duration: 1.1s;
}

.ws-loader__ring:nth-child(2) {
  inset: 5px;
  border-top-color: #25b7a7;
  animation-duration: .9s;
  animation-direction: reverse;
}

.ws-loader__ring:nth-child(3) {
  inset: 10px;
  border-top-color: #25b7a7;
  animation-duration: .7s;
}

@keyframes ws-spin {
  to { transform: rotate(360deg); }
}

.ws-loader__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0f2744;
}

.ws-loader__sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: #64748b;
}

.ws-loader__dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.ws-loader__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25b7a7;
  animation: ws-dot 1.2s ease-in-out infinite;
}

.ws-loader__dots span:nth-child(1) { background: #1e3a5f; animation-delay: 0s; }
.ws-loader__dots span:nth-child(2) { background: #25b7a7; animation-delay: .2s; }
.ws-loader__dots span:nth-child(3) { background: #25b7a7; animation-delay: .4s; }

@keyframes ws-dot {
  0%, 80%, 100% { transform: scale(.7); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}

body.ws-loading {
  overflow: hidden;
}
