body {
      height: 100vh;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      background: linear-gradient(270deg, #fffde7, #fff9c4, #ffecb3, #f3d87f);
      background-size: 300% 300%;
     animation: gradientMove 80s ease infinite; /* slower */
      font-family: Arial, sans-serif;
      overflow: hidden;
      position: relative;
    }

    /* body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(270deg, #fffde7, #fff9c4, #ffecb3, #ffd54f);
  font-family: Arial, sans-serif;
  overflow: hidden;
  position: relative;
} */
    @keyframes gradientMove {
      0% {background-position: 0% 50%;}
      50% {background-position: 100% 50%;}
      100% {background-position: 0% 50%;}
    }

    /* Curved Waves */
/* Curved Waves */
.curve {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  line-height: 0;
}

.curve svg {
  position: relative;
  display: block;
  width: 200%; /* double width for smooth looping */
  height: 140px;
  will-change: transform;
}

/* Top wave slightly faster */
.curve.top svg {
  animation: waveFloatTop 8s linear infinite; /* adjust duration for speed */
}

/* Bottom wave slightly slower */
.curve.bottom svg {
  animation: waveFloatBottom 12s linear infinite;
}

/* Path fill */
.curve path {
  fill: url(#goldenWave); /* your gradient for waves */
}

/* Positioning */
.curve.top { top: 0; }
.curve.bottom { bottom: 0; transform: rotate(180deg); }

/* Keyframes */
@keyframes waveFloatTop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes waveFloatBottom {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


    /* Glowing blobs (reduced count & blur) */
    .blob {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 215, 0, 0.35), rgba(255, 235, 59, 0));
      animation: floatCalm 50s ease-in-out infinite;
      filter: blur(40px);
      z-index: 0;
      box-shadow: 0 0 50px 20px rgba(255, 223, 0, 0.25);
      will-change: transform;
    }
    .blob:nth-child(1) { width: 260px; height: 260px; top: 10%; left: 25%; animation-delay: 0s; }
    .blob:nth-child(2) { width: 300px; height: 300px; bottom: 20%; right: 20%; animation-delay: 12s; }

    @keyframes floatCalm {
      0% { transform: translateY(0) translateX(0); }
      25% { transform: translateY(-40px) translateX(25px); }
      50% { transform: translateY(25px) translateX(-30px); }
      75% { transform: translateY(-25px) translateX(15px); }
      100% { transform: translateY(0) translateX(0); }
    }

    
    /* Login box */
    .login-box {
      width: 100%;
      max-width: 380px;
      padding: 25px;
      border-radius: 15px;
      background: rgba(0, 0, 0, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(6px);
      color: #fff;
      box-shadow: 0 0 25px rgba(255, 223, 0, 0.6);
      z-index: 2;
      position: relative;
    }
    .login-box h4 {
      margin-bottom: 20px;
      text-align: center;
      font-weight: bold;
      background: linear-gradient(90deg, #ffeb3b, #fff59d);
      -webkit-background-clip: text;
      color: transparent;
    }

    .form-control:focus {
      border-color: #ffeb3b;
      box-shadow: none;
    }

    .btn-neon {
      width: 100%;
      background: linear-gradient(90deg, #ffeb3b, #ffe082);
      border: none;
      font-weight: 600;
      color: #000;
      border-radius: 10px;
      padding: 10px;
    }
    .btn-neon:hover {
      background: linear-gradient(90deg, #ffe082, #ffeb3b);
    }

    .text-small { font-size: 0.9rem; }

    footer {
      margin-top: 20px;
      text-align: center;
      font-size: 0.85rem;
      color: rgba(0,0,0,0.7);
      z-index: 2;
    }

    /* Mobile optimization: disable heavy effects */
    /* @media (max-width: 768px) {
      .blob, .watermark { display: none; }
    } */

    @media (max-width: 768px) {
    body {
        animation: none;
        background: linear-gradient(270deg, #fffde7, #fff9c4, #ffecb3, #ffd54f);
    }
}
/* Static Logo in Login Box */
.login-logo {
    display: block;
    margin: 0 auto 15px;
    width: 120px; /* fixed size to prevent CLS */
    height: auto;
}

/* Error message */
.invalid-feedback {
  display: block;
  color: #ffeb3b; /* bright yellow for readability */
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 10px;
}
