/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Container */
.login-container {
  display: flex;
  height: 100vh;
}

/* Left image side */
.login-image {
  width: 60%;
  flex: 1;
  background-color: #f1f1f1; /* grey background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-overlay {
  width: 70%;       /* take more of the left side */
  height: 70%;      /* almost full height of the left container */
  background-image: url('../img/login-banner.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
}


/* Right login form side */
.login-form {
  width: 40%;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}

.login-form h1 {
  color: #e05827;
  font-size: 32px;
  margin-bottom: 10px;
}

.login-form h3 {
  color: #555;
  font-size: 18px;
  margin-bottom: 30px;
}

/* Forgot password link */
.forgot-password {
  margin: 5px 0 15px 0;
  font-size: 14px;
  text-align: right;
}

.forgot-password a {
  color: #e05827;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: #c64c23;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.input-group label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc; /* subtle border */
  border-radius: 4px;
  max-width: 100%;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s; /* smooth effect */
}

/* When input is focused (clicked) */
.input-group input:focus {
  border-color: #e05827;      /* main color border */
  box-shadow: 0 0 5px rgba(224, 88, 39, 0.5); /* subtle glow */
  outline: none;              /* remove default outline */
}

/* Button */
.btn-login {
  width: 100%;
  padding: 12px;
  background-color: #e05827;
  color: #fff;
  border: none;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background-color: #c64c23;
}

/* Register link */
.register-link {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.register-link a {
  color: #e05827;
  text-decoration: none;
}

  /* Popup Notification */
.custom-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.custom-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-popup.success {
  background-color: #28a745; /* green */
}

.custom-popup.error {
  background-color: #dc3545; /* red */
}

.custom-popup.warning {
  background-color: #ffc107; /* yellow */
  color: #333;
}

/* Close button */
.custom-popup .popup-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.custom-popup .popup-close:hover {
  opacity: 1;
}



/* Responsive for mobile */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    justify-content: center;  /* center vertically */
    align-items: center;      /* center horizontally */
    height: 100vh;            /* ensure it takes full height */
  }

  .login-image {
    display: none; /* hide image on mobile */
  }

  .login-form {
    width: 90%;        /* make it slightly smaller than full width */
    max-width: 500;  /* optional max width */
    padding: 30px 20px;
  }
}