/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background: #fbfbfb;
  overflow: hidden;
}

/* Abstract animated background */
.abstract-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #f2f2f2, #fbfbfb, #fff, #f2f2f2);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  z-index: -1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Centered login container */
.login-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login box */
.login-box {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.logo {
  height: 60px;
  margin-bottom: 20px;
}

h2 {
  color: rgb(39, 59, 121);
  margin-bottom: 20px;
}


form input,
form button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  box-sizing: border-box;
}

form input {
  border: 1px solid #ccc;
  background-color: #f2f2f2;
}

form button {
  background-color: rgb(39, 59, 121);
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: rgb(31, 47, 98);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  display: none;
}

/* Show overlay when panel is open */
.overlay.show {
  display: block;
}

.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(39, 59, 121, 0.9);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
  z-index: 3000;
}


/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
  .login-box {
    width: 90%;
    padding: 30px 20px;
  }

  .logo {
    height: 50px;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  form input,
  form button {
    font-size: 16px;
    padding: 10px;
  }
}
