#logbody {
  font-family: 'Arial', sans-serif;
  background-image: url('images/bglogin.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

/* Container */
.lg-container {
  display: flex;
  flex-wrap: wrap;
  background: white;
  max-width: 900px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
}

/* Image Container */
.lg-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-width: 300px;
  transition: transform 0.5s ease-in-out;
}

.lg-image-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.lg-image-container img:hover {
  animation: lg-jiggle 0.5s ease infinite;
}

@keyframes lg-jiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Form Container */
.lg-form-container {
  flex: 1;
  padding: 30px;
  min-width: 300px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .lg-container {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .lg-image-container {
    width: 100%;
    padding: 10px;
  }

  .lg-image-container img {
    max-width: 75%;
  }

  .lg-form-container {
    width: 100%;
    padding: 20px;
  }

  .tiny-back {
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Adjust input fields for smaller screens */
  .lg-input-group {
    width: 80%;
  }

  .lg-input-group input {
    padding: 10px 10px 10px 35px;
  }
}
/* Input Fields */
.lg-input-group {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 15px;
}

.lg-input-group input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.lg-input-group input:focus {
  border-bottom: 2px solid #007BFF;
  box-shadow: 0 4px 4px rgba(0, 123, 255, 0.2);
}


.lg-input-group input::placeholder {
  color: #888;
}

/* Checkbox Group */
.lg-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 15px 0;
}

.lg-checkbox-group label a {
  color: #007bff;
  text-decoration: none;
}

.lg-checkbox-group label a:hover {
  text-decoration: underline;
}

/* Link Styling */
#lg-already-member-link {
  color: #007bff;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

#lg-already-member-link:hover {
  color: #0056b3;
}

#lg-already-member-link2 {
  color: #007bff;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

#lg-already-member-link2:hover {
  color: #0056b3;
}



.lg-container.shifted .lg-image-container {
  order: 1; 
}

.lg-container.shifted .lg-form-container {
  order: 2; 
}

/* Button */

/* Small Back Button */
/* Small Back Button - Always Visible */
.tiny-back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;  /* Ensures it's on top */
  background: #343a40;  /* Semi-transparent background */
  padding: 5px 10px;
  border-radius: 5px;
}

.tiny-back a {
  color: #fff;  /* White color for contrast */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.tiny-back a:hover {
  text-decoration: underline;
}


.lg-button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  color: white;
  background-color: #e7367a;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;

}
.lg-button:hover,
.lg-button:focus {
  background-color: #f082ac;
}

.lg-form-container .lg-button {
  margin: 10px auto;
  
}

.lg-input-group {
  display: flex;
  align-items: center;
  padding: 10px;
}

.lg-input-group i {
  position: absolute;
  left: 10px;
  font-size: 16px;
  color: #888;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #2b2c2e;
  color: #fff;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  text-decoration: none;
}

.back-button:hover {
  background-color: #3a3b3c;
}

.lg-container {
  position: relative; 
}

.lg-image-container img {
  position: relative;
  z-index: 1; 
}


.back-button:hover {
  transform: translateY(-2px); 
  box-shadow: 0 2px 5px rgba(101, 179, 239, 0.2), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-button i {
  margin-right: 5px;
}



.lg-input-group i {
  margin-right: 10px;
}

/* Forgot Password & Create Account */
.lg-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lg-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.lg-links a:hover {
  text-decoration: underline;
}

#gradbut{
  background: linear-gradient(0.25turn, #ec478d, #d19bc7, #13b5ff);
  color: white; 
  border: none;
}

#gradbut:hover{
  background: linear-gradient(0.25turn, #13b5ff, #d19bc7, #ec478d);
  color: white;
}
#lg-gender {
  flex: 1;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  padding: 5px 0;
  color: #888; /* Placeholder color */
  cursor: pointer;
  appearance: none; /* Removes default dropdown arrow */
  border-bottom: 2px solid #ccc;
}

/* Custom dropdown arrow */
.lg-input-group::after {
  content: "\f078"; /* FontAwesome down arrow */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  color: #888;
  font-size: 12px;
}

/* When a valid option is selected */
#lg-gender:valid {
  color: #000;
}

.placeholder-label {
  position: absolute;
  left: 45px; /* Adjust to align with other inputs */
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #888;
  transition: 0.3s;
  pointer-events: none;
}