/* General Styles */
body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #34568F, #34568F, #34568F, #34568F, #34568F, #68a5e0);
  font-family: 'Poppins', sans-serif;
}

.backClip{
  position: absolute;
}

.backgroundBlur{
  width: 100%;
  height: 100vh;
  position: absolute;
  background-color: #00000099;
}

/* Form Container */
form {
  display: flex;
  gap: 10px;
  flex-direction: column;
  border-bottom: 2px solid #6592BC;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

form:hover {
  transform: scale(1.02);
}

/* Heading */
h1 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 15px;
}

/* Input Fields */
.form-floating input {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 8px;
  padding: 10px;
}

.form-floating label {
  color: #333;
}

/* Buttons */
button {
  background: #0b5ed7;
  border: none;
  padding: 10px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  width: 100%;
}

button:hover {
  background: #084298;
}

#google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Links */
a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  transition: color 0.3s;
}

a:hover {
  color: #ffd700;
}

/* Loader */
#loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Background Animation */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.box {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #ffffff61;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  animation: floatBox linear infinite;
}

@keyframes floatBox {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}


/* Responsive */
@media (max-width: 768px) {
  form {
    width: 80%;
  }
}

@media (max-width: 480px) {
  form {
    width: 95%;
  }
  .modal-content {
    width: 90%;
  }
}
