* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Navbar styling moved to navbarlanding.css */

body {
  min-height: 100vh;
  margin: 0;
  background-image: url(../images/BG.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.container {
  background: #fff;
  width: 900px;
  max-width: 100%;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  overflow: hidden;
  margin: auto;
  margin-top: 120px;
}

.sign-in {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.sign-in h2 {
  margin-bottom: 20px;
  color: #333;
  font-family: Bungee;
  font-weight: 200;
}

form input {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border: none;
  background: #eee;
  border-radius: 5px;
}

form button {
  padding: 12px 45px;
  color: white;
  border-radius: 0px 50px 0px 50px;
  background-color: rgb(109, 231, 93);
  border: 1px solid black;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  margin-top: 10px;
}

form button:hover {
  background-color: rgb(57, 169, 42);
}

/* Panel kanan */
.overlay {
  flex: 1;
  background-color: #6edb77;
  background-image: url(../images/login-image.png);
  background-repeat: no-repeat;
  background-size: 90%;
  background-position: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 50px;
  text-align: center;
  border-radius: 100px 0px 0px 100px;
  position: relative;
  overflow: hidden;
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.overlay:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.overlay h2 {
  font-size: 1.7em;
  margin-bottom: 10px;
  width: 150%;
  position: relative;
  z-index: 1;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s ease;
  transition-delay: 0.1s;
  font-family: Bungee;
  font-weight: 200;
}

.overlay p {
  margin-bottom: 20px;
  font-size: 1.1em;
  position: relative;
  z-index: 1;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s ease;
  transition-delay: 0.2s;
  font-family: sans-serif;
  font-weight: 400;
}

.overlay button {
  border: 1px solid white;
  background: transparent;
  color: white;
  border-radius: 20px;
  padding: 12px 45px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.3s ease;
  transition-delay: 0.3s;
  font-family: sans-serif;
  font-weight: 400;
}

.overlay button:hover {
  background-color: white;
  color: #0077b6;
}

.overlay:hover h2,
.overlay:hover p,
.overlay:hover button {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    margin: 0;
    margin-top: 100px;
    border-radius: 0;
    width: 100%;
  }
  .overlay {
    order: 2;
    border-radius: 0;
    min-height: 300px;
    background-position: center;
    background-size: contain;
    width: 100%;
  }
  .sign-in {
    order: 1;
    padding: 30px;
    width: 100%;
  }
  .overlay h2,
  .overlay p,
  .overlay button {
    transform: translateY(0);
    opacity: 1;
  }
  .overlay::before {
    background: rgba(0, 0, 0, 0.5);
  }
}
