/* ═══════════════════════════════════════════════════
   loading.css  —  Windows 11 post-login loading screen
   Shows after login: spinner + messages + time
═══════════════════════════════════════════════════ */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

#loading-screen.visible {
  opacity: 1;
  pointer-events: all;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-in);
}

/* ── Greeting message  e.g. "Hi." ── */
.ld-greeting {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-win), transform 0.6s var(--ease-win);
}
.ld-greeting.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Windows spinning ring loader ── */
.ld-spinner-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 40px;
}

/* 5 dots orbiting in a circle — classic Windows 11 style */
.ld-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  margin: -2.5px 0 0 -2.5px;
  opacity: 0;
  animation: dotOrbit 1.6s linear infinite;
}

.ld-dot:nth-child(1) { animation-delay: 0s;    }
.ld-dot:nth-child(2) { animation-delay: 0.32s; }
.ld-dot:nth-child(3) { animation-delay: 0.64s; }
.ld-dot:nth-child(4) { animation-delay: 0.96s; }
.ld-dot:nth-child(5) { animation-delay: 1.28s; }

@keyframes dotOrbit {
  0%   { transform: rotate(0deg)   translateX(18px) scale(0.6); opacity: 0;   }
  10%  { opacity: 1; }
  50%  { transform: rotate(180deg) translateX(18px) scale(1);   opacity: 1;   }
  90%  { opacity: 0.3; }
  100% { transform: rotate(360deg) translateX(18px) scale(0.6); opacity: 0;   }
}

/* ── Status message  e.g. "Getting things ready" ── */
.ld-message {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  height: 20px;
  overflow: hidden;
  text-align: center;
  min-width: 220px;
}

.ld-msg-inner {
  transition: opacity 0.3s, transform 0.3s var(--ease-win);
}
.ld-msg-inner.swapping {
  opacity: 0;
  transform: translateY(-6px);
}

/* ── Clock (bottom center, like Windows lock screen) ── */
.ld-clock {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: ldClockIn 0.8s 0.4s var(--ease-win) both;
}

@keyframes ldClockIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

.ld-clock-time {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.ld-clock-date {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}
