:root {
  color-scheme: dark;
  background: #09090b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #09090b;
}

.lock-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f4f4f5;
  cursor: text;
  touch-action: manipulation;
  user-select: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(63, 63, 70, 0.18), transparent 16rem),
    radial-gradient(circle at 15% 0%, rgba(63, 63, 70, 0.18), transparent 28rem),
    #09090b;
}

.lock-screen::before {
  content: "";
  position: absolute;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  animation: ambient-pulse 5s ease-in-out infinite;
}

.password-input {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  padding: 0;
  opacity: 0;
  border: 0;
  outline: 0;
  transform: translate(-50%, -50%);
  caret-color: transparent;
}

.password-visual {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.password-dots {
  overflow: hidden;
  color: rgba(244, 244, 245, 0.9);
  font: 700 1.4rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  white-space: nowrap;
}

.unlock-caret {
  width: 2px;
  height: 34px;
  flex: 0 0 2px;
  border-radius: 999px;
  background: rgba(161, 161, 170, 0.72);
  box-shadow: 0 0 18px rgba(212, 212, 216, 0.08);
  animation: caret-blink 1.15s steps(1, end) infinite;
  transition: height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lock-screen.has-focus .unlock-caret {
  height: 42px;
  background: #f4f4f5;
  box-shadow: 0 0 24px rgba(244, 244, 245, 0.22);
}

@keyframes caret-blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0.13; }
}

@keyframes ambient-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  50% { opacity: 0.7; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

