/* Konfigurasi CSS Utama */
:root {
  --primary-color: #0d6efd;
  /* Biru Bootstrap */
  --primary-dark: #0a58ca;
  --gradient-bg: linear-gradient(to right, #e2e2e2, #c9d6ff);
}

body {
  /* Pindahkan properti layout ke .background karena body sekarang hanya wadah luar */
  font-family: "Poppins", sans-serif;
  margin: 0;
  overflow: hidden;
}

.background {
  position: relative; /* Penting untuk positioning pseudo-element */
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(1px);
  transform: scale(1.1);
  z-index: -1;
}

/* Validasi Item Style */
.validation-item {
  font-size: 0.85rem;
  color: #6c757d;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-item.valid {
  color: #198754;
  /* Green */
  font-weight: 500;
}

.validation-item i {
  font-size: 1rem;
}

/* Progress Bar Animation */
.progress-bar {
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.4s ease;
}

/* Container Kartu Utama */
.container-custom {
  background-color: #fff;
  border-radius: 30px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.25),
    0 10px 10px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  width: 950px;
  max-width: 100%;
  min-height: 550px;
}

/* Styling Form Area */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  text-align: center;
  background-color: white;
}

.form-container form {
  width: 100%;
}

/* Area Form Login (Kiri) */
.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

/* Area Form Register (Kanan) */
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

/* Input Styling */
/* .form-control {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 8px;
}

.form-control:focus {
  background-color: #e0e0e0;
  box-shadow: none;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 10px 45px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
} */

/* --- ANIMASI SLIDING --- */
/* Saat tombol ditekan, class 'right-panel-active' ditambahkan ke container utama */

/* Geser form Login keluar */
.container-custom.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

/* Geser form Register masuk */
.container-custom.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

/* --- OVERLAY (Bagian Biru Setengah Lingkaran) --- */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition:
    transform 0.6s ease-in-out,
    border-radius 0.6s ease-in-out;
  z-index: 100;
  /* BENTUK KURVA (Setengah Lingkaran Menghadap Kiri) */
  border-radius: 150px 0 0 150px;
}

/* Geser overlay ke kiri saat mode Register */
.container-custom.right-panel-active .overlay-container {
  transform: translateX(-100%);
  /* Ubah arah kurva menghadap Kanan */
  border-radius: 0 150px 150px 0;
}

.overlay {
  background: #0d6efd;
  background: linear-gradient(to right, #0d6efd, #0043a8);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container-custom.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

/* Panel Kiri (Muncul saat Overlay di Kiri / Menutupi Login) */
.overlay-left {
  transform: translateX(-20%);
}

.container-custom.right-panel-active .overlay-left {
  transform: translateX(0);
}

/* Panel Kanan (Muncul saat Overlay di Kanan / Menutupi Register) */
.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container-custom.right-panel-active .overlay-right {
  transform: translateX(20%);
}

/* Tombol Ghost (Transparan) di Overlay */
button.ghost {
  background-color: transparent;
  border-color: #ffffff;
  border-width: 2px;
  border-style: solid;
  color: white;
  padding: 10px 45px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.2s;
}

button.ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Helper Typography */
h1 {
  font-weight: bold;
  margin: 0;
}

p {
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

.text-muted-custom {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.forgot-pass {
  font-size: 12px;
  color: #333;
  text-decoration: none;
  margin: 10px 0;
  display: block;
  text-align: right;
  width: 100%;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .container-custom {
    width: 90%;
    min-height: 650px;
  }

  .overlay-container {
    display: none;
    /* Sembunyikan animasi di layar hp kecil untuk aksesibilitas */
  }

  .sign-in-container,
  .sign-up-container {
    width: 100%;
    position: relative;
    opacity: 1;
    z-index: 1;
  }

  .sign-up-container {
    display: none;
  }

  /* Default hide register on mobile */
  /* Tambahkan logika JS khusus mobile jika diperlukan, tapi ini cukup untuk layout desktop */
}
