.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: grid;
  place-items: center;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.boot-apple {
  width: 72px;
  height: 72px;
  color: #fff;
  animation: boot-pulse 2.4s ease-in-out infinite;
}

.boot-progress {
  width: 168px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.25s linear;
}

.boot-caption {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* —— Sonoma lock screen ——
   Top: date + huge clock | Top-right: status
   Center: clear wallpaper (Golden Gate = brand)
   Bottom: small avatar + glass password pill
*/
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-ui);
}

.login-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(196, 90, 44, 0.35), transparent 60%),
    linear-gradient(180deg, #1a2a3e 0%, #3d4f66 40%, #c45a2c 75%, #1a3a52 100%);
}

.login-wallpaper-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.08) contrast(1.04);
}

.login-wallpaper-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.28) 0%, transparent 28%, transparent 62%, rgba(8, 12, 20, 0.42) 100%),
    radial-gradient(ellipse 90% 55% at 50% 70%, rgba(216, 226, 236, 0.12), transparent 70%);
  pointer-events: none;
}

.login-status {
  position: absolute;
  top: 10px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.login-status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  opacity: 0.95;
}

.login-clock-block {
  position: absolute;
  top: max(56px, 9vh);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: login-clock-in 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.login-date {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

.login-time {
  margin-top: 2px;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
}

.login-content {
  position: absolute;
  left: 50%;
  bottom: max(48px, 8vh);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(320px, 90vw);
  animation: login-fade-up 0.65s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.12s both;
}

.login-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(232, 137, 74, 0.95), rgba(196, 90, 44, 0.92) 45%, rgba(26, 58, 82, 0.95));
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.login-avatar-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #30d158;
  border: 2px solid rgba(20, 24, 32, 0.55);
  box-shadow: inset 0 0 0 1.5px #fff;
}

.login-name {
  margin: 2px 0 6px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.login-input {
  width: 220px;
  height: 32px;
  border-radius: 999px;
  padding: 0 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 4px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 13px;
  text-align: center;
  outline: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

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

.login-input:focus {
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(10, 132, 255, 0.28),
    0 6px 22px rgba(0, 0, 0, 0.22);
}

.login-hint {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@keyframes login-clock-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-fade-up {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes boot-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes fog-drift {
  from { opacity: 0.7; transform: translateX(-1%); }
  to { opacity: 1; transform: translateX(1%); }
}

@media (max-width: 640px) {
  .login-time { font-size: clamp(56px, 18vw, 88px); }
  .login-status { gap: 8px; right: 10px; }
  .login-content { bottom: max(36px, 6vh); }
}
