/* ============================================
   LINUS — PIN Lock Screen (Pastel Light)
   ============================================ */

.pin-lock {
  position: fixed;
  inset: 0;
  background: var(--bg-primary, #FAFBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.pin-lock[hidden] {
  display: none;
}

.pin-lock__card {
  text-align: center;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
}

.pin-lock__orb {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pinOrbPulse 3s ease-in-out infinite;
}

@keyframes pinOrbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pin-lock__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.pin-lock__subtitle {
  font-size: 0.875rem;
  color: #9CA3AF;
  margin-bottom: 32px;
}

/* PIN Dots */
.pin-lock__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #E8EAF0;
  background: transparent;
  transition: all 200ms ease;
}

.pin-dot.filled {
  background: #8B7EC8;
  border-color: #8B7EC8;
  transform: scale(1.15);
}

.pin-dot.error {
  border-color: #E57373;
  background: #E57373;
  animation: pinShake 400ms ease;
}

.pin-dot.success {
  border-color: #5BAD8A;
  background: #5BAD8A;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* Error message */
.pin-lock__error {
  font-size: 0.8125rem;
  color: #E57373;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 20px;
}

.pin-lock__error[hidden] {
  visibility: hidden;
}

/* Keypad */
.pin-lock__keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 260px;
  margin: 24px auto 0;
}

.pin-key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(55, 65, 81, 0.06);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.pin-key:hover {
  background: #F0EEFF;
}

.pin-key:active {
  transform: scale(0.9);
  background: #E8E4F8;
}

.pin-key--empty {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.pin-key--delete {
  font-size: 1.25rem;
  color: #9CA3AF;
  background: transparent;
  box-shadow: none;
}

.pin-key--delete:hover {
  color: #374151;
  background: #F3F4F8;
}
