/* ==============================================================
   macOS Tahoe 26 — Boot Splash + Lock Screen
   ============================================================== */

/* ——— Boot Screen ——— */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#boot-screen .apple-logo {
  font-size: 72px;
  color: #fff;
  opacity: 0;
  animation: bootFadeIn 0.3s ease-out 0.1s forwards;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}

/* ——— Progress Bar ——— */
.boot-progress {
  width: 180px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  overflow: hidden;
  opacity: 0;
  animation: bootFadeIn 0.3s ease-out 0.3s forwards;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: bootProgress 1.5s ease-in-out 0.4s forwards;
}

@keyframes bootProgress {
  0%   { width: 0%; }
  15%  { width: 12%; }
  40%  { width: 38%; }
  65%  { width: 62%; }
  85%  { width: 88%; }
  100% { width: 100%; }
}

@keyframes bootFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#boot-screen.fading {
  animation: bootFadeOut 0.4s ease-in forwards;
}

@keyframes bootFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ——— Lock Screen ——— */
#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-wallpaper {
  position: absolute;
  inset: 0;
  background: var(--wallpaper, linear-gradient(160deg, #1a6fb5 0%, #4da0d8 40%, #87bb8a 70%, #c9a96e 100%));
  background-size: cover;
  filter: blur(30px) brightness(0.7);
  transform: scale(1.1); /* prevent blur edge leak */
}

.lock-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.lock-time {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 2px;
}

.lock-date {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

.lock-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  margin: 0 auto 8px;
}

.lock-username {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 14px;
}

.lock-field {
  display: flex;
  justify-content: center;
}

.lock-field input {
  width: 200px;
  height: 30px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-system, -apple-system, sans-serif);
  font-size: 13px;
  text-align: center;
  outline: none;
  cursor: pointer;
  padding: 0 14px;
}

.lock-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.lock-field input:focus {
  background: rgba(255, 255, 255, 0.24);
}

/* Gentle pulse on password field */
.lock-field input {
  animation: fieldPulse 2.4s ease-in-out infinite;
}

@keyframes fieldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
}

/* "Click to unlock" hint */
.lock-hint {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0);
  margin-top: 10px;
  transition: color 0.6s ease;
  pointer-events: none;
  user-select: none;
}

.lock-hint.visible {
  color: rgba(255, 255, 255, 0.45);
}

/* Lock screen unlock animation — slide-up + scale + fade */
#lock-screen.unlocking {
  animation: lockSlideUp 0.5s cubic-bezier(0.32, 0.94, 0.60, 1) forwards;
}

@keyframes lockSlideUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-60%) scale(1.04);
  }
}
