body.login-body {
    background: linear-gradient(to bottom right, #f9f9f9, #e0f7fa);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }
  
  .login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
  }
  
  .login-box h2 {
    color: #333;
    margin-bottom: 10px;
  }
  
  .subtitle {
    color: #777;
    margin-bottom: 25px;
  }
  
  .login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
  }
  
  .login-box button {
    background-color: #ff8a65;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .login-box button:hover {
    background-color: #ff7043;
  }
  
  .forgot a {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #007c91;
    text-decoration: none;
  }
.remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 15px 0 10px;
  padding-left: 5px;
  font-size: 14px;
  color: #555;
  gap: 6px; /* adds space between checkbox and label */
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ff8a65;
}

.remember-me label {
  cursor: pointer;
  user-select: none;
}
.login-box select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.register-link {
  font-size: 14px;
  margin-top: 10px;
  color: #555;
}
.register-link a {
  color: #007c91;
  text-decoration: none;
}
body.register-body {
  background: linear-gradient(to bottom right, #f9f9f9, #e0f7fa);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.register-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: center;
}

.register-container h2 {
  color: #333;
  margin-bottom: 10px;
}

.register-container input,
.register-container select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.register-container button {
  background-color: #4caf50;  /* green for registration */
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.register-container button:hover {
  background-color: #45a049;
}

.register-link {
  font-size: 14px;
  margin-top: 15px;
  color: #555;
}

.register-link a {
  color: #007c91;
  text-decoration: none;
}
/* Forgot Password Page Styles (can reuse login styles) */

body.forgot-password-body {
  background: linear-gradient(to bottom right, #f9f9f9, #e0f7fa);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.forgot-password-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: center;
}

.forgot-password-container h2 {
  color: #333;
  margin-bottom: 20px;
}

.forgot-password-container p {
  color: #555;
  margin-bottom: 25px;
  font-size: 14px;
}

.forgot-password-container input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.forgot-password-container button {
  background-color: #ff8a65;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.forgot-password-container button:hover {
  background-color: #ff7043;
}

.forgot-password-container a {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #007c91;
  text-decoration: none;
}
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-10px); }
  40%  { transform: translateX(10px); }
  60%  { transform: translateX(-10px); }
  80%  { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
  border: 2px solid red; /* temporary to see the element shaking */
}
@keyframes slideFade {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100px) rotate(5deg);
  }
}

.slide-out {
  animation: slideFade 0.5s ease forwards;
}


/* Apply to login, register, and forgot password pages */
body.login-body,
body.index-body,
body.register-body,
body.forgot-password-body {
  position: relative;
  overflow: hidden;
}

/* Shared blurred coffee background for all relevant pages */
body.login-body::before,
body.index-body::before,
body.register-body::before,
body.forgot-password-body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/2.jpg') no-repeat center center / cover;
  filter: blur(8px);
  z-index: -1;
}

/* Ensure all form containers float above the blurred background */
.login-container,
.register-container,
.forgot-password-container {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.85); /* translucent background */
}
 