body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.container {
  display: flex;
  height: 100vh;
}

.left-side {
  flex: 0 0 60%; /* Adjusted to take 70% of the width */
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Tambahkan latar belakang dengan transparansi */
  padding: 20px; /* Atur padding agar teks tidak terlalu dekat dengan latar belakang */
  border-radius: 20px; /* Tambahkan sudut melengkung pada latar belakang */
  color: #fff; /* Warna teks */
  text-align: center;
}

.alert {
  padding: 2px;
  border-radius: 10px;
  /*Tambahkansudutmelengkungpadalatarbelakang*/
  background-color: #f44336;
  color: white;
  text-align: center;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.left-side h1,
.left-side p {
  text-align: center;
}

/* Add CSS for logo */
.logo {
  display: block;
  margin: 0 auto; /* Centers the logo horizontally */
  max-width: 300px; /* Adjust the max-width as needed */
  margin-bottom: 5%;
}

.right-side {
  flex: 1;
  display: flex;
  flex-direction: column; /* Aligns children vertically */
  justify-content: center; /* Centers children vertically */
  align-items: center; /* Centers children horizontally */
}

.login-form {
  max-width: 400px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-form input[type="submit"] {
  width: 100%;
  background: linear-gradient(to right, #8b4513, #a0522d); /* Brown gradient */
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-form input[type="submit"]:hover {
  background: linear-gradient(
    to right,
    #a0522d,
    #8b4513
  ); /* Brown gradient on hover */
}

.forgot-password-link {
  text-align: right;
  margin-top: 10px;
  font-size: 14px;
  color: #666; /* Change color to a softer gray */
}

.forgot-password-link a {
  color: #4285f4; /* Change link color to Google blue */
  text-decoration: none; /* Remove underline */
}

.forgot-password-link a:hover {
  text-decoration: underline; /* Add underline on hover */
}

/* Add CSS for video */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@media only screen and (max-width: 768px) {
  /* Hide left side when screen size is less than or equal to 768px */
  .left-side {
    display: none;
  }

  /* Adjust right side width to take full width when left side is hidden */
  .right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Take full width */
    margin: 0 20px; /* Add margin to the right side */
  }
}

@media only screen and (max-width: 1270px) {
  .left-side {
    flex: 0 0 50%; /* Adjusted to take 70% of the width */
  }

  /* Adjust right side width to take full width when left side is hidden */
  .right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Take full width */
    margin: 0 20px; /* Add margin to the right side */
  }
}
