/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Full page background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* dark overlay */
  z-index: -1;
}

body {
  background-image: url("image2.png");  /* 👈 replace with your actual image path */
  background-size: cover;        /* makes the image fill the screen */
  background-position: center;   /* centers the image */
  background-repeat: no-repeat;  /* prevents tiling */
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: "Poppins", sans-serif;
}

.hidden {
  display: none;
}

#show-login-btn {
  padding: 14px 28px;
  font-weight: 1000;
  font-size: 2.5rem;
  background-color: #cce7c9;
  color: #295f51;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Login box */
#login-container {
  background-color: #cce7c9;
  width: 350px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/*Logo*/
.logo {
  width: 100px;          /* adjust as needed */
  height: auto;
  margin-bottom: 15px;   /* space between logo and heading */
}

#login-container h2 {
  margin-bottom: 20px;
  color: #295f51;
}

/* Input fields */
.input-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.input-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  color: #555;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #46a48c;
}

/* Button */
button {
  width: 100%;
  padding: 10px;
  background-color: #46a48c;
  border: none;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #295f51;
}

/* Register text */
.register-text {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.register-text a {
  color: #1cc88a;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}


.loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-hidden {
  display: none;
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}