/* ── Boot Screen ── */
#boot-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh; height: 100dvh;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-screen .xp-logo {
  width: 340px;
  margin-bottom: 40px;
}

/* Loading bar container */
#boot-screen .loading-bar-track {
  width: 220px;
  height: 18px;
  background: #000;
  border: 1px solid #333;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

#boot-screen .loading-bar-blocks {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  display: flex;
  gap: 3px;
  animation: loadingSlide 1.8s linear infinite;
}

#boot-screen .loading-bar-blocks .block {
  width: 12px;
  height: 100%;
  background: linear-gradient(to bottom, #5b9bd5, #2968c8, #1a4fa0);
  border-radius: 1px;
}

@keyframes loadingSlide {
  0%   { transform: translateX(-60px); }
  100% { transform: translateX(220px); }
}

#boot-screen .boot-text {
  color: #fff;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  opacity: 0.6;
  margin-bottom: 30px;
}

#boot-screen .boot-wordmark {
  width: 500px;
  max-width: 80vw;
  opacity: 0.8;
}

/* ── Login Screen ── */
#login-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh; height: 100dvh;
  z-index: 9000;
  background: linear-gradient(to bottom, #0050d0, #2878e8 30%, #5a9ff0 60%, #3a78d0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#login-screen.visible {
  opacity: 1;
  pointer-events: auto;
}

#login-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Top and bottom blue bars with XP styling */
#login-screen .login-bar-top,
#login-screen .login-bar-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
}

#login-screen .login-bar-top {
  top: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}

#login-screen .login-bar-bottom {
  bottom: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

/* Horizontal separator lines */
#login-screen .login-separator {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
}

#login-screen .login-separator.top { top: 30%; }
#login-screen .login-separator.bottom { bottom: 30%; }

/* User card */
#login-screen .user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#login-screen .user-card:hover {
  transform: scale(1.05);
}

#login-screen .user-avatar {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 14px;
  object-fit: cover;
}

#login-screen .user-name {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

#login-screen .user-title {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

#login-screen .login-hint {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Restart button */
#login-screen .restart-btn {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

#login-screen .restart-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

#login-screen .restart-btn img {
  width: 24px;
  height: 24px;
}
