/* -------- Global Styles -------- */
body {
  background: linear-gradient(-45deg, #e3f2fd, #bbdefb, #e1f5fe, #e3f2fd);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: "Segoe UI", sans-serif;
}

/* -------- Animated Gradient Background -------- */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* -------- Card Styling with 3D Hover -------- */
.card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  perspective: 1000px;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* -------- Form Labels -------- */
.form-label {
  font-weight: 500;
}

/* -------- Inputs with 3D Focus Glow -------- */
input:focus {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  border-color: #007bff;
  outline: none;
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

/* -------- Error Message Style -------- */
.error {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* -------- Success Message -------- */
#successMessage {
  font-weight: bold;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

/* -------- Submit Button 3D Hover Effect -------- */
button.btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: bold;
}
button.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* -------- Loader Spinner -------- */
.loader {
  text-align: center;
}

/* -------- Fade-in Animation -------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}