@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;  /* Stack logo and text vertically */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  animation: fadeIn 1s ease-out; /* Fade in the entire splash screen */
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  animation: fadeOut 1s ease-in forwards; /* Fade-out animation */
}

/* Fade-out effect for splash screen */
@keyframes fadeOut {
    0% {
       opacity: 1;
      }
    100% {
      opacity: 0;
    }
}

/* Optionally, add an animation for the splash screen text */
#splash-screen h1 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 20px;
  color: lightgoldenrodyellow;
  animation: slideUp 1s ease-out 0.5s forwards; /* Slide-up effect for text */
}

/* Slide-up animation for text */
@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
        }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
}

/* Style for the logo */
#splash-screen img {
  max-width: 40%;  /* Adjust the size of the logo */
  max-height: 150px;
  margin-bottom: 20px;  /* Space between logo and text */
  animation: zoomIn 1s ease-out; /* Zoom-in effect for the logo */
  border-radius: 50%;
}

@keyframes zoomIn {
  0% {
      transform: scale(0.5);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* The login container should be hidden initially */
.loginscreen {
  display: none;
}

.form-box{
  margin-left: 3vh;
  margin-right: 3vh;
  padding: 5vh;
  background: rgba(0,0,0,0.1);
  border: 2px solid #DBB157;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 23vh;
  box-shadow: 0 0 50px #DBB157;
  flex-direction: column;
  
}
.inputbox{
  position: relative;
  margin: 30px 0;
  width: 310px;
  border-bottom: 2px solid #DBB157;
}
.inputbox label{
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  color: lightgoldenrodyellow;
  font-size: 1em;
  pointer-events: none;
  transition: .5s;
}
.inputbox input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  padding:0 35px 0 5px;
  color: lightgoldenrodyellow;
  font-size: 1em;
}
input:focus ~ label,
input:valid ~ label{
  top: -5px;
}
.loginscreen{
  background-color: black;
  width: 100vw;
  height: 100vh;
  text-align: center;
  justify-content: center;
  position: fixed;
  display: block;
  margin: auto;
}

#btn {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  background: #DBB157;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: black;
  position: relative;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; 
}

#btn:hover {
  background-color: #DBB157;
  transform: translateY(-5px); 
}

#btn:focus {
  outline: none; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
}

#btn:active {
  transform: translateY(2px); 
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); 
  }
  100% {
    transform: scale(1);
  }
}

#btn {
  animation: pulse 2s ease-in-out infinite; 
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px); 
  }
  60% {
    transform: translateY(-5px); 
  }
}

#btn.bounce {
  animation: bounce 1s ease infinite; 
}

#btn:hover {
  background-color: #DBB157;
  transform: translateY(-5px);
  box-shadow: 0 0 15px #DBB157;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px); 
  }
  50% {
    transform: translateX(5px); 
  }
  75% {
    transform: translateX(-5px); 
  }
  100% {
    transform: translateX(0); 
  }
}

#btn.shake:hover {
  animation: shake 0.5s ease-in-out; 
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  #splash-screen h1 {
    font-size: 2em;  /* Adjust font size for mobile */
  }
  #form-box{
    margin-top: 20vh;
  }
 
}

