html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.login-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #4A5E42;
  margin-top: 6px;
  min-height: 20px;
}

.login-page {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  filter: brightness(0.6);
  z-index: 0;
}

/* CENTER THE LOGIN CARD */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* LOGIN CARD */
.login-card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: stretch;
  width: 1000px;
  min-height: 600px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* LEFT SIDE */
.login-left {
  width: 30%;
  background: #4A5E42;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px; 
  
  /* width: 40%;
  background-image: url("../images/maam.jpg"); /* your image
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  position: relative; */
}

.login-left img {
  width: 280px;
  height: 250px;
  margin-bottom: 20px;
}

/* RIGHT SIDE */
.login-right {
  width: 60%;
  padding: 50px;

  padding-top: 80px;
}

.login-right h2 {
  margin-bottom: 30px;
}

/* FORM ELEMENTS */
.login-right label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
}

.login-right input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-right input:focus {
  border-color: #4A5E42;
  box-shadow: 0 0 0 3px rgba(74, 94, 66, 0.12);
}

/* .login-right button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 25px;
  background: #4A5E42;
  color: white;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
} 

.login-right button:hover {
  opacity: 0.9;
} */

.login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 25px;
  background: #4A5E42;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(74, 94, 66, 0.3);
}

.login-btn:hover {
  background: #3a4d33;
  box-shadow: 0 6px 18px rgba(74, 94, 66, 0.4);
}

.login-btn:active {
  transform: scale(0.98);
}

.copyright {
  margin-top: 40px;
  font-size: 12px;
  text-align: center;
  color: #777;
}

/* Back Link */
.back-link {
  display: block;
  color: #4a5e42;
  text-decoration: none;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  margin-bottom: 50px;
  margin-top: -35px;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.7;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px); /* subtle blur */
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.modal-content {
  background: #fff;
  padding: 36px 32px 28px 32px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 370px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25), 0 1.5px 8px 0 rgba(76,175,80,0.05);
  font-family: 'Poppins', sans-serif;
  animation: popIn 0.25s cubic-bezier(.4,2,.6,1);
}

@keyframes popIn {
  from { transform: scale(0.92) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.close {
  color: #bbb;
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.close:hover {
  color: #4A5E42;
  transform: scale(1.2) rotate(90deg);
}

#modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
#modal-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  color: #43a047;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2.2em;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}

#modal-message {
  font-size: 1.15em;
  margin-bottom: 10px;
  color: #222;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* error message style */
.login-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 76, 76, 0.08);
  color: #d32f2f;
  font-size: 1em;
  font-weight: 500;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 8px;
  min-height: 32px;
  box-shadow: 0 2px 8px rgba(211,47,47,0.06);
  transition: background 0.2s, color 0.2s;
}

.login-error::before {
  content: "⛔";
  font-size: 1.2em;
  margin-right: 6px;
  display: inline-block;
}

.login-error:empty::before {
  content: "";
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

/* Tablet */
@media (max-width: 1050px) {
  .login-card {
    width: 88%;
    min-height: unset;
  }

  .login-left img {
    width: 180px;
    height: 160px;
  }

  .login-right {
    padding: 40px 36px;
    padding-top: 60px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  html, body {
    height: 100%;
  }

  .login-page {
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    box-sizing: border-box;
  }

  .login-card {
    flex-direction: column;
    width: 90%;
    max-width: 420px;
    min-height: unset;
    border-radius: 16px;
    margin: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }

  .login-left {
    width: 100%;
    padding: 28px 20px 22px;
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
  }

  .login-left img {
    width: 110px;
    height: 98px;
    margin-bottom: 0;
  }

  .login-right {
    width: 100%;
    padding: 28px 24px 32px;
    box-sizing: border-box;
  }

  .back-link {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 13px;
  }

  .login-right h2 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .login-right label {
    font-size: 13px;
  }

  .login-right input {
    padding: 11px 13px;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .login-btn {
    font-size: 15px;
    padding: 13px;
  }

  .copyright {
    margin-top: 28px;
  }

  .modal-content {
    min-width: unset;
    width: 88vw;
    max-width: 360px;
    padding: 28px 20px 22px;
  }
}
