body {
  background: linear-gradient(120deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
  background-size: 400% 400%;
  animation: romanticBG 12s ease-in-out infinite;
  font-family: 'Segoe UI', cursive, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

@keyframes romanticBG {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}

.container {
  background: rgba(255,255,255,0.85);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 24px 0 rgba(245, 101, 132, 0.2);
  animation: fadeIn 1.8s;
  position: relative;
  z-index:10;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92);}
  to { opacity: 1; transform: scale(1);}
}

h1 {
  color: #d81b60;
  margin-bottom: 20px;
  text-shadow: 1px 2px 12px #fff;
  font-family: 'Segoe Script', cursive;
}

.subtitle {
  font-style: italic;
  color: #ad1457;
  margin-bottom: 22px;
}

input {
  padding: 13px;
  font-size: 17px;
  border: 2px solid #e57373;
  border-radius: 12px;
  margin-top: 12px;
  outline: none;
  transition: 0.3s;
  background: #fff6f8;
}

input:focus {
  border-color: #d81b60;
  box-shadow: 0 0 10px #f0629270;
}

button {
  padding: 13px 32px;
  margin-top: 20px;
  background: linear-gradient(45deg, #d81b60 30%, #ad1457 90%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  transition: 0.3s;
  font-family: 'Segoe Script', cursive;
}

button:hover {
  background: linear-gradient(45deg, #ad1457, #d81b60);
  transform: scale(1.07);
  box-shadow: 0 2px 14px #f0629280;
}

#message {
  margin-top: 16px;
  color: #d81b60;
  font-weight: bold;
  font-size: 18px;
}

.hearts {
  position: absolute;
  left: 0; 
  top: 0; 
  z-index:1;
  width: 100vw; 
  height: 100vh;
  pointer-events: none;
}

.hearts:before, .hearts:after {
  content: "💕 💗 💞 💖 💝";
  position: absolute;
  font-size: 2.2rem;
  animation: floatUp 6s infinite alternate;
}

.hearts:after {
  right: 5vw; 
  top: 80vh; 
  font-size:2.8rem; 
  animation-delay:2s;
}

@keyframes floatUp {
  0% { transform: translateY(0);}
  100% { transform: translateY(-50px);}
}

@media (max-width: 600px) {
  .container {
    padding: 22px 8vw;
    border-radius: 14px;
    max-width: 94vw;
  }
  h1 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }
  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  input, button {
    font-size: 15px;
    padding: 10px 10px;
    border-radius: 9px;
    margin-top: 8px;
  }
  #message {
    font-size: 14px;
  }
  img {
    max-width: 70vw !important;
    width: 160px !important;
  }
  .hearts:before, .hearts:after {
    font-size: 1.4rem;
  }
}