/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* background: #f5f5f5; */
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Centered Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* background: url(https://picsum.photos/2500/1500?image=1041);
    background-size: cover; /* Ensures the image covers the entire container */
    /* background-position: center;  */
    background: linear-gradient(-45deg, #cdebf9, #7bb2d7, #d4f1ff, #87cefa);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    position: relative; /* Allows layering for a darker overlay */
}

/* Darker Overlay */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Adjust the transparency level */
    z-index: 1; /* Ensures overlay is behind the form */
}

/* Login Form */
.login-form {
    background: rgba(255, 255, 255, 0.2); /* Slightly opaque background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Enhanced shadow for visibility */
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: relative; /* Ensures form is above the overlay */
    z-index: 2; /* Ensures form is above the dark overlay */
}

/* Form Elements */
.login-form h2 {
    margin-bottom: 20px;
    color: #666666;
    font-size: 20px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: rgb(250, 249, 249);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn {
    font-family: 'Poppins', sans-serif;
    background: #547fff;
    color: #fff;
    border: none;
    padding: 6px 12px; /* Reduced padding for a smaller button */
    font-size: 14px; /* Smaller font size */
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto; /* Change to auto to adjust button width */
    display: inline-block; /* Makes the button size dependent on content */
    margin: 0 auto; /* Centers the button horizontally */
}

.btn:hover {
    background: #4a6fde;
}

/* Error Message */
.error-msg {
    color: #e74a3b;
    font-size: 14px;
    margin-bottom: 15px;
}

.password-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.forgot-password-container {
    align-items: center;
    margin: 0;
}

.forgot-password-container a {
    color: #547fff; 
    font-size: 14px; 
    text-decoration: none;
}

.forgot-password-container a:hover {
    text-decoration: underline;
}

/* Gradient Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Bubbles Effect */
  .bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
  }
  
  .bubble {
    position: absolute;
    bottom: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
  }
  
  /* Randomized bubble sizes and positions */
  .bubble:nth-child(1) { left: 10%; animation-duration: 6s; animation-delay: 0s; }
  .bubble:nth-child(2) { left: 30%; animation-duration: 8s; animation-delay: 2s; width: 50px; height: 50px; }
  .bubble:nth-child(3) { left: 50%; animation-duration: 10s; animation-delay: 4s; width: 30px; height: 30px; }
  .bubble:nth-child(4) { left: 70%; animation-duration: 7s; animation-delay: 3s; width: 45px; height: 45px; }
  .bubble:nth-child(5) { left: 90%; animation-duration: 9s; animation-delay: 5s; width: 60px; height: 60px; }
  
  /* Bubble Animation */
  @keyframes floatUp {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-100vh); opacity: 0; }
  }