/* === Gaya Dasar === */
body,
html {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden; /* Mencegah scroll yang tidak perlu */
}

/* === Layout Utama (Desktop) === */
.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

.left-panel {
  width: 75%;
  background-color: #f8f9fa;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Menambahkan lapisan overlay untuk gambar background */
.left-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../uploads/foto_profil/rusun.jpg");
  /* [REVISI] Mengubah 'cover' menjadi 'auto' untuk menampilkan ukuran asli gambar */
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
}

/* Memastikan teks berada di atas lapisan gambar */
.welcome-text {
  position: relative;
  z-index: 2;
}

.welcome-text h1 {
  font-size: 2.8rem;
  color: #333;
}
.welcome-text p {
  font-size: 1.1rem;
  color: #333;
}

.right-panel {
  width: 25%;
  background-color: #f37021;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Form Login Mengambang (Floating Form) === */
.login-form-wrapper {
  position: absolute;
  width: 340px;
  left: -170px;
  z-index: 10;
}

/* Penyesuaian untuk reCAPTCHA */
.recaptcha-wrapper {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.card {
  border-radius: 12px;
  border: none;
}

#logo-ondel {
  width: 150px;  /* 50% dari lebar asli (383px) */
  height: auto;  /* Menjaga rasio aspek gambar */
  margin-bottom: 1px; /* Memberi jarak ke teks "Aplikasi Warga Rusun" */
}

/* === Aturan Responsive (Mobile) === */
@media (max-width: 992px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
  }

  .login-form-wrapper {
    position: relative;
    left: auto;
    width: 90%;
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  body {
    background-color: #f37021;
  }
  .right-panel {
    background-color: transparent;
  }
}