* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0ffec;
  color: #fff;
}

.container {
  width: 90%;
  height: 90vh;
  border-radius: 15px;
  display: flex;
}

.right {
  width: 40%;
  border-radius: 15px;
  background-color: #1d3828;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.241);
}

.left {
  width: 60%;
  border-radius: 15px;
  background-color: #333;
  background-image: url("image/image2.png"); /* Add your background image here */
  background-size: cover;
  background-position: center;
  position: relative;
  margin-right: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.241);
}

.left::before {
  content: "";
  position: absolute;
  border-radius: 15px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Solid black overlay with 70% opacity */
}

.login-box {
  width: 100%;
}
.login-title {
  display: flex;
  justify-content: center;
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.input-box {
  margin-bottom: 15px;
}

.login-box img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem; /* Centers horizontally and adds spacing below */
  padding: 30px 0px;
}

.input-box label {
  display: block;
  margin-bottom: 5px;
}

.input-box input {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.input-box input:focus {
  caret-color: #fff; /* White caret when focused */
}

button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  background-color: #78c043;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.5s;
}

button:hover {
  background-color: #1d9045;
}

.left .welcome-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.left .welcome-message h1 {
  font-size: 45px;
  margin-bottom: 10px;
}

.left .welcome-message p {
  font-size: 24px;
}

.login-options {
  margin-top: 20px;
  text-align: center;
}

.login-options a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #78c043;
}

.login-options a:hover {
  text-decoration: underline;
}

input[type="text"] {
  outline: none;
}

input[type="password"] {
  outline: none;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.divider:not(:empty)::before {
  margin-right: 0.25em;
}

.divider:not(:empty)::after {
  margin-left: 0.25em;
}

.social-login {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  cursor: pointer;
}

.social-login i {
  height: 20px;
  width: 20px;
}
/* Media query for mobile devices with max-width of 600px */
@media (max-width: 800px) {
  .container {
    flex-direction: column; /* Stack welcome message above login form */
    height: auto;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.241);
  }

  .left,
  .right {
    width: 100%; /* Full width for both sections */
  }
  .left {
    height: 350px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: none;
  }
  .right {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    box-shadow: none;
  }
  .left::before {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .left .welcome-message {
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transform: none;
    top: 170px;
    left: 0;
    padding: 20px;
  }
  .left .welcome-message h1 {
    font-size: 30px;
  }
  .left .welcome-message p {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .left .welcome-message {
    top: 200px;
  }
}
