@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.logo {
    height: 3em; /* roughly the same as text size */
    width: auto; /* keeps aspect ratio */
    vertical-align: middle; /* aligns nicely with text if needed */
}

body {
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 100px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
  
}

.logo {
  font-size: 2em;
  color: #2487CB;
  pointer-events: none;
  margin-right: 270px;
  

}

.navigation a {
  text-decoration: none;
  color: #2487CB;
  padding: 6px 15px;
  border-radius: 20px;
  margin: 0 10px;
  font-weight: 600;
  transition: 0.3s ease;

}

.navigation a:hover,
.navigation a.active {
  background: #2487CB;
  color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* light bottom shadow */

}

/* PARALLAX SECTION */
.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  overflow: hidden;
  margin-top: -150px;
}

.parallax img {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

/* Layer Depths */
#sky, #cloudsBack, #cloudsMidBack {
  z-index: 0;
}

#cloudsMidFront, #cloudsFront, #hillBack, #hillFront {
  z-index: 5;
}

#buildings {
  z-index: 5;
  transform: scale(1.06);
  transform-origin: bottom center;
}

#bushes {
  z-index: 7;
  scale: 1.2;
  transform-origin: bottom center;
}

#people {
  z-index: 11;
  position: absolute;
  bottom: 0;
  transform: scale(1.27);
  transform-origin: bottom center;
}

#ground {
  z-index: 9;
  bottom: -80px;
  transform: scaleY(0.9) scaleX(1.2);
  transform-origin: bottom center;
}

/* TITLE */
#titleText {
  position: absolute;
  font-size: 5em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,.3);
  z-index: 10;
  transition: opacity 0.3s ease-out, transform 0.2s ease-out;
}

   /* ==============================
      LOGIN SECTION
      ============================== */
      .frame {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, rgba(2,0,0.6,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,235,1));
  overflow: hidden;
  z-index: 50; /* above parallax */
}

.frame .box div {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 6px solid rgba(255, 255, 255, 0.8);
  animation: animate 10s linear infinite;
}
/* Toggle Buttons: Sign In / Sign Up */
#login, #register {
  width: auto; /* keeps padding-based width */
  height: 40px; /* same as original */
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #fff; /* white outline */
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  position: relative;
  transition: all 0.5s;
  z-index: 1;
  overflow: hidden;
  padding: 10px 45px; /* same as before */
}

/* Hover/Active effect like .bottom-btn */
#login::before, #register::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: white;
  z-index: -1;
  transition: all 0.5s;
}

#login:hover::before, #register:hover::before {
  width: 100%;
}

#login:hover, #register:hover {
  color: black;
}

#login:active::before, #register:active::before {
  background: #b9b9b9;
}


/* Floating boxes positions */
.frame .box div:nth-child(1) { top: 12%; left: 42%; animation-duration: 10s; }
.frame .box div:nth-child(2) { top: 70%; left: 50%; animation-duration: 7s; }
.frame .box div:nth-child(3) { top: 17%; left: 6%; animation-duration: 9s; }
.frame .box div:nth-child(4) { top: 20%; left: 60%; animation-duration: 10s; }
.frame .box div:nth-child(5) { top: 67%; left: 10%; animation-duration: 6s; }
.frame .box div:nth-child(6) { top: 80%; left: 70%; animation-duration: 12s; }
.frame .box div:nth-child(7) { top: 60%; left: 80%; animation-duration: 15s; }
.frame .box div:nth-child(8) { top: 32%; left: 25%; animation-duration: 16s; }
.frame .box div:nth-child(9) { top: 90%; left: 25%; animation-duration: 9s; }
.frame .box div:nth-child(10) { top: 20%; left: 80%; animation-duration: 5s; }

@keyframes animate {
  0% {
    transform: scale(0) translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.3) translateY(-90px) rotate(360deg);
    opacity: 0;
  }
}

/* Keep login form above animated background */
.container {
  position: relative;
  z-index: 100;
}

      
      
      
.container{
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0.35);
    position:relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 400px;
}

 .container p{
  font-size:  14px;
  line-height: 20px;
  letter-spacing: 0.px;
  margin: 20px 0;
 }

 .container span{
  font-size: 12px;
 }
 .container a{
  color: #333; 
  font-size: 13px;
  text-decoration: none;
  margin: 15px 0 10px;
 }

 .container button{
  background-color: #512da8;
  color: #fff;
  font-size: 12px;
  padding: 10px 45px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
 }

 .container button.hidden{
  background-color: transparent;
  border-color: #fff;
 }

 .container form{
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  height: 100%;
 }

 .container input{
  background-color: #eee;
  border: none;
  margin: 8px 0;
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 8px;
  width: 100%;
  outline: none;
 }
 .form-container{
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in;
 }

 .sign-in{
  left: 0;
  width: 50%;
  z-index: 2;
 }

 .container.active .sign-in{
  transform: translateX(100%); 
 }
 
 .sign-up{
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
 }

 .container.active .sign-up{
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: move 0.6s;
 }

 @keyframes move{
  0%, 49.99%{
    opacity: 0;
    z-index: 1;
  }
  50%, 100%{
    opacity: 1;
    z-index: 5; 
  }
 }

 .social-icons{
  margin: 20px 0;
 }

 .social-icons a{
  border: 1px solid #ccc;
  border-radius: 20%;
  display: inline-flex;
  justify-content: center;
  align-items:center;
  margin: 0 3px;
  width: 40px;
  height: 40px;
 }

 .toggle-container{
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  border-radius:  150px 0 0 100px;
  z-index: 1000;
 }

 .container.active .toggle-container{
  transform: translateX(-100%);
  border-radius:  0 150px 100px 0;

 }

 .toggle{
  background-color: #512da8;
  height: 100%;
  background: linear-gradient(to right, #5c6bc0, #512da8);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
 }

 .container.active .toggle{
  transform: translateX(50%);
 }

 .toggle-panel{
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  top:0;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
 }
  
 .toggle-left{
  transform: translateX(-200%);
 }

.container.active .toggle-left{
  transform: translateX(0);
}
 
 .toggle-right{
  right: 0;
  transform: translateX(0);
 }

 .container.active .toggle-right{
  transform: translateX(200%);
}
/* Floating Music Button */
#music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 2px solid #1e90ff;     /* blue outline */
  border-radius: 50%;
  background: #1e90ff;           /* blue background */
  color: #fff;                   /* icon white initially */
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;                 /* above everything else */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* subtle shadow */
}

/* Hover effect: turn button and icon white, outline stays */
#music-toggle:hover {
  background: #fff;              /* white background on hover */
  color: #1e90ff;                /* icon turns blue on hover */
  transform: scale(1.1);         /* optional slight zoom */
  border-color: #fff;            /* optional: white outline on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* stronger shadow on hover */
}

/* Optional: active/clicked effect */
#music-toggle:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* smaller shadow on click */
}
