* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #ff95bf 0%, #ffaad0 28%, #ffc0df 56%, #ffd4ea 100%);
  color: #fff;
}

/* Login page styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #ff95bf 0%, #ffaad0 28%, #ffc0df 56%, #ffd4ea 100%);
  color: #fff;
}

.login_bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sparkles, .hearts, .balloons_login {
  position: absolute;
  inset: 0;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.45);
  animation: twinkle 2.8s ease-in-out infinite;
}
.s1 { top: 10%; left: 10%; }
.s2 { top: 16%; left: 76%; animation-delay: .5s; }
.s3 { top: 28%; left: 55%; animation-delay: 1.1s; }
.s4 { top: 42%; left: 18%; animation-delay: .8s; }
.s5 { top: 54%; left: 88%; animation-delay: 1.6s; }
.s6 { top: 72%; left: 30%; animation-delay: 1.2s; }
.s7 { top: 82%; left: 68%; animation-delay: 2s; }
.s8 { top: 36%; left: 84%; animation-delay: .3s; }

@keyframes twinkle {
  0%,100% { opacity: .15; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

.heart {
  position: absolute;
  bottom: -50px;
  font-size: 22px;
  opacity: .22;
  animation: floatHeart linear infinite;
}
.h1 { left: 7%; animation-duration: 12s; }
.h2 { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.h3 { left: 34%; animation-duration: 13s; animation-delay: 2s; }
.h4 { left: 52%; animation-duration: 11s; animation-delay: .7s; }
.h5 { left: 71%; animation-duration: 14s; animation-delay: 1.5s; }
.h6 { left: 88%; animation-duration: 12s; animation-delay: 2.1s; }

@keyframes floatHeart {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: .22; }
  100% { transform: translateY(-120vh) scale(1.24) rotate(8deg); opacity: 0; }
}

.balloon_login {
  position: absolute;
  bottom: -140px;
  width: 58px;
  height: 78px;
  border-radius: 50% 50% 45% 45%;
  box-shadow: inset -8px -10px 18px rgba(255,255,255,.18), 0 10px 18px rgba(255,80,150,.12);
  animation: flyBalloon linear infinite;
}
.balloon_login::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 2px;
  height: 30px;
  background: rgba(255,255,255,.85);
  transform: translateX(-50%);
}
.b1 { left: 3%; background: #ff6ea9; animation-duration: 12s; }
.b2 { left: 10%; background: #ff9bc2; animation-duration: 10s; animation-delay: 1s; }
.b3 { left: 17%; background: #ffd2e5; animation-duration: 13s; animation-delay: 2s; }
.b4 { left: 25%; background: #ff86b6; animation-duration: 11s; animation-delay: .4s; }
.b5 { left: 33%; background: #ffb5d3; animation-duration: 14s; animation-delay: 1.4s; }
.b6 { left: 41%; background: #ff71b0; animation-duration: 12s; animation-delay: 2.2s; }
.b7 { left: 49%; background: #ffc9de; animation-duration: 15s; animation-delay: .8s; }
.b8 { left: 57%; background: #ff8dbc; animation-duration: 11s; animation-delay: 1.7s; }
.b9 { left: 65%; background: #ffacd0; animation-duration: 13s; animation-delay: 2.5s; }
.b10 { left: 73%; background: #ffd9ea; animation-duration: 10s; animation-delay: 1.2s; }
.b11 { left: 81%; background: #ff7ab1; animation-duration: 12s; animation-delay: 2s; }
.b12 { left: 89%; background: #ffb9d6; animation-duration: 14s; animation-delay: .6s; }

@keyframes flyBalloon {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-55vh) rotate(6deg); }
  100% { transform: translateY(-120vh) rotate(-6deg); }
}

.login_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.login_card {
  width: 100%;
  max-width: 470px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 28px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 46px rgba(255, 90, 160, .16);
  padding: 34px 24px 28px;
  text-align: center;
}

.login_badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  color: #ff4f9d;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.login_container h2 {
  color: #fff;
  text-shadow: 0 6px 24px rgba(255,255,255,.18);
  margin-bottom: 10px;
}

.login_intro {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.94);
  margin: 0 auto 22px;
  max-width: 360px;
}

.login_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 12px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  max-width: 340px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255,255,255,.85);
  color: #8f2d64;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border: 2px solid #ff62aa;
}

button[type="submit"] {
  width: 100%;
  max-width: 340px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5fa6, #ff8fc3);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 95, 166, .2);
}

button[type="submit"]:hover {
  background: #fff;
  color: #ff5fa6;
  border: 2px solid #ff5fa6;
}

.login_description {
  font-size: 14px;
  color: rgba(255,255,255,.92);
  margin: 14px auto 6px;
  padding: 0 10px;
  text-align: center;
  max-width: 390px;
}

.login_hint {
  font-size: 12px;
  color: rgba(255,255,255,.84);
  margin: 0;
}

/* Birthday page styles */
.song {
  visibility: hidden;
}

.container {
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center;
  visibility: hidden;
  width: 100vw;
}

.container > div {
  left: 0;
  right: 0;
  top: 20vh;
  position: absolute;
}

.one {
  font-size: 4.5rem;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 24px;
  margin: 0 auto;
  padding: 14px;
  position: relative;
  width: 600px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 14px 30px rgba(255, 95, 166, .12);
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  background-color: #ff69b4;
  border-radius: 8px;
  bottom: -50px;
  right: 5px;
  position: absolute;
  color: #fff;
  padding: 0.5rem 1rem;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  border-radius: 6px;
  display: inline-block;
  padding: 3px 8px;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 15rem;
}

.six {
  position: relative;
  top: 10vh;
  z-index: 1;
}

.six img {
  display: inline-block;
  height: 350px;
  max-width: 100%;
  border-radius: 14px;
}

.six .profile-picture {
  box-shadow: 0 18px 40px rgba(255, 95, 166, .18);
}

.six .hat {
  position: absolute;
  left: 41.5%;
  top: -35%;
  width: 60px;
  rotate: 14deg;
}

.ballons img {
  display: inline-block;
  position: absolute;
}

.ballons img:nth-child(even) {
  left: -10%;
}

.ballons img:nth-child(odd) {
  right: -10%;
}

.ballons img:nth-child(3n + 0) {
  left: 30%;
}

.seven .eight {
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100vw;
}

.eight svg {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 25px;
  z-index: -1;
}

.eight svg:nth-child(1) { fill: #ffc3df; left: 5vw; top: 7vh; }
.eight svg:nth-child(2) { fill: #ff90c2; left: 35vw; top: 23vh; }
.eight svg:nth-child(3) { fill: #ffd9eb; left: 23vw; top: 33vh; }
.eight svg:nth-child(4) { fill: #ff7db8; left: 57vw; top: 43vh; }
.eight svg:nth-child(5) { fill: #ffaccf; left: 7vw; top: 68vh; }
.eight svg:nth-child(6) { fill: #ff6da9; left: 77vw; top: 42vh; }
.eight svg:nth-child(7) { fill: #ffe5f1; left: 83vw; top: 68vh; }
.eight svg:nth-child(8) { fill: #ff9fc8; left: 37vw; top: 86vh; }
.eight svg:nth-child(9) { fill: #ffb4d4; left: 87vw; top: 94vh; }

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-size: 2rem;
  font-weight: lighter;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  cursor: pointer;
  z-index: 3;
}

/* Media Queries */
@media screen and (max-height: 1000px) {
  .six .hat { left: 40%; }
}

@media screen and (max-height: 800px) {
  .six .hat { left: 37%; }
}

@media screen and (max-height: 700px) {
  .six .hat { left: 32%; }
}

@media screen and (max-height: 850px) and (max-width: 450px) {
  .six .hat { left: 32%; }
}

@media screen and (max-width: 500px) {
  .login_form{
    width: 350px;
    height: 250px;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    bottom: -50px;
    right: 5px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 10rem;
  }

  .six .hat {
    width: 50px;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: .8rem;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
}
