body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f3f3f3;
}

/* ===== Struktur utama ===== */
.login-wrapper {
  display: flex;
  height: 100vh;
}

/* ===== Bagian kiri (gambar) ===== */
.login-left {
  flex: 1;
  background-color: #1b3528;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-left img {
  width: 85%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Bagian kanan (form) ===== */
.login-right {
  flex: 1;
  background: linear-gradient(160deg, #1b3528, #295f41);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  border-radius: 0 0 0 80px;
  box-shadow: -10px 0 25px rgba(0,0,0,0.2);
}

.login-right h2 {
  font-size: 30px;
  font-family: "Rye", cursive;
  text-align: center;
  color: #f5e7d0;
  margin-bottom: 30px;
}

.login-right h2 span {
  color: #c8a87a;
}

label {
  font-weight: 500;
  margin-top: 10px;
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  margin-bottom: 15px;
}

input:focus {
  outline: 2px solid #c8a87a;
}

.login-btn {
  background: #f5e7d0;
  color: #1b3528;
  font-weight: 600;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  margin-top: 5px;
}

.login-btn:hover {
  background: #c8a87a;
  transform: scale(1.05);
}

.register-text {
  text-align: center;
  margin-top: 18px;
}

.register-text a {
  color: #f5e7d0;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.register-text a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Error Box ===== */
.error-box {
  background: #ffdddd;
  color: #a10000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .login-wrapper {
    flex-direction: column;
  }
  .login-left img {
    width: 60%;
    margin: 30px auto;
  }
  .login-right {
    border-radius: 0;
    padding: 40px;
  }
}
