body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, #ff99cc, #ff66b2, #ffb3d9, #ffe6f0);
  background-size: 400%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  animation: gradientBG 12s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  text-align: center;
  width: 100%;
  height: 100%;
}

h1 {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 102, 178, 0.8), 0 0 20px rgba(255, 102, 178, 0.5);
  animation: glowText 2s ease-in-out infinite;
}

@keyframes glowText {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 102, 178, 0.8), 0 0 20px rgba(255, 102, 178, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 102, 178, 1), 0 0 30px rgba(255, 102, 178, 0.7);
  }
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  height: 100%;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
  animation: bounceAvatar 3s ease-in-out infinite;
}

.avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 102, 178, 0.7);
}

@keyframes bounceAvatar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.password-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input#password {
  width: 200px;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 15px;
  border: 2px solid #fff;
  border-radius: 8px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

input#password.active {
  border-color: #ff66b2;
  box-shadow: 0 0 20px rgba(255, 102, 178, 0.8);
  transform: scale(1.05);
  animation: pulseInput 1.5s ease-in-out infinite;
}

@keyframes pulseInput {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 102, 178, 0.8);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 102, 178, 1);
  }
}

input#password.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.keypad button {
  width: 60px;
  height: 60px;
  font-size: 20px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.keypad button:hover {
  background-color: #ff66b2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 102, 178, 0.5);
}

.keypad button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.keypad button.zero {
  grid-column: 2;
}

.keypad button.clear {
  background-color: #ff66b2;
  color: white;
}

.submit {
  width: 60px;
  height: 60px;
  font-size: 20px;
  border: none;
  background-color: #ff66b2;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 102, 178, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: glowSubmit 2s ease-in-out infinite;
}

.submit:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 30px rgba(255, 102, 178, 0.8);
}

.submit:active {
  transform: scale(0.95);
}

@keyframes glowSubmit {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 102, 178, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 102, 178, 0.9);
  }
}

.heart-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: transparent;
  clip-path: path('M10 3.22l-.61-.6C7.4 1.13 4.26 1.77 3 3.84 1.27 6.46 2.07 10.29 5.5 13.56l4.5 4.5 4.5-4.5c3.43-3.27 4.23-7.1 2.5-9.72-1.26-2.07-4.4-2.71-6.39-1.22l-.61.6z');
  animation: floatHeart 8s infinite linear;
  opacity: 0.7;
  z-index: 0;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}