/* Full-page background with blur effect */
body {
  position: relative;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url("/images/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Background Overlay (Blurring Effect) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Slightly dark overlay */
  backdrop-filter: blur(3px);
  filter: blur(3px);
  z-index: -1;
}

/* Center the modal properly */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* previously height: 100vh */
  padding: 20px; /* helps on mobile */
  box-sizing: border-box;
}

/* Login and Signup Wrapper */
.login-wrapper,
.signup-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  width: 700px;
  position: relative;
  z-index: 1;
  flex-direction: row;
  align-items: center;
  transition: height 0.3s ease-in-out;
}

/* Logo Section */
.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Adjust Logo Size */
.login-logo,
.signup-logo {
  max-width: 220px;
  height: auto;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95); /* Slightly smaller */
  }
  to {
    opacity: 1;
    transform: scale(1); /* Normal size */
  }
}

.form-container {
  flex: 1;
  padding: 20px;
  margin-top: -45px; /* Adjust this value as needed */
  opacity: 0;
  transform: scale(0.95);
  animation: fadeIn 0.5s ease-in-out forwards;
}

/* Buttons */
.btn-login,
.btn-request {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-login:hover,
.btn-request:hover {
  background-color: #0056b3;
  transform: scale(1.05); /* Slight scale effect on hover */
}

.btn-secondary {
  width: 100%;
  background-color: #6c757d;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: #495057;
  transform: scale(1.05);
}

/* Password field wrapper */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Eye Icon */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 14px;
  color: grey;
}

.toggle-password:hover {
  color: #0056b3;
}

.message-container {
  margin-bottom: 15px;
  max-height: 100px;
  overflow-y: auto;
}

.alert {
  margin-bottom: 10px;
  font-size: 14px;
}
