
  .overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(
      255,
      255,
      255,
      0.7
    ); /* White overlay with transparency */
    z-index: 9999;
    display: none;
  }

  .loader {
    border: 6px solid #6f5470; /* Match your theme color */
    border-radius: 50%;
    border-top: 6px solid #f4f7f6; /* Match your theme color */
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite; /* Rotate animation */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Center everything vertically and horizontally */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
}

/* Form box styling */
.login-form {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 300px;
  margin: 10px
}

/* Input fields */
.login-div {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.login-input {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 20px;
  background-color: #6f5470;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #6f5470;
}

.error-span {
  display: block;
  margin-top: 10px;
  color: #d9534f;           /* Bootstrap-style red */
  font-size: 14px;
  font-weight: 500;
  background: #f8d7da;      /* Light red background */
  border: 1px solid #f5c6cb;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}



/* ✅ Mobile responsiveness */
@media (max-width: 480px) {
  .login-form {
    padding: 1.5rem;
    width: 90%;
  }

  .login-input,
  button {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  .login-div label {
    font-size: 0.85rem;
  }
}