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

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

#boot-screen .apple-logo {
  font-size: 72px;
  color: #fff;
  opacity: 0;
  animation: bootFadeIn 0.3s ease-out 0.1s forwards;
}

@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);
}

/* Lock screen slide-up animation */
#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);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}
