/* --- 1. Reset & Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #e0f2fe, #93c5fd);
}


/*sbody {
  background: purple !important;
}

/* --- 2. Container Utama --- */

.container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.25),
              0 10px 10px rgba(147, 197, 253, 0.22);
  position: relative;
  overflow: hidden;
  width: 800px;
  max-width: 100%;
  min-height: 480px;
  margin: 50px auto;
}

/* --- 3. Form Container --- */

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.login-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.register-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

/* --- 4. State Aktif --- */

.container.active .register-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

.container.active .login-container {
  transform: translateX(100%);
}

/* --- 5. Overlay --- */

/* 🔥 FIX UTAMA DI SINI */
.overlay-container {
  position: absolute;
  top: 0;
  right: 0; /* sebelumnya left: 50% */
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.overlay {
  background: linear-gradient(to right, #60a5fa, #1d4ed8);
  color: #ffffff;

  position: relative;
  left: -100%;

  height: 100%;
  width: 200%;

  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.active .overlay-container {
  transform: translateX(-100%);
}

.container.active .overlay {
  transform: translateX(50%);
}

/* --- 6. Overlay Panel --- */

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform 0.6s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container.active .overlay-left {
  transform: translateX(0);
}

.container.active .overlay-right {
  transform: translateX(20%);
}

/* --- 7. Animasi --- */

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

/* --- 8. Form Styling --- */

form {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  height: 100%;
  text-align: center;
}

title {
  font-weight: 700;
  margin-bottom: 20px;
  color: #f5f5f8;
}

.title2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #010179;
}

span {
  font-size: 12px;
  margin: 15px 0;
  color: #475569;
}

input {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 5px;
  color: #1e3a8a;
}

/* --- Button --- */

button {
  border-radius: 20px;
  border: 1px solid #3b82f6;
  background-color: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
}

button:hover {
  transform: scale(1.05);
  background-color: #1d4ed8;
}

button.ghost {
  background-color: transparent;
  border-color: #fff;
  margin-top: 20px;
}

button.ghost:hover {
  background-color: #fff;
  color: #2563eb;
}

/* --- Social Icons --- */

.social-container {
  margin: 20px 0;
}

.social {
  border: 1px solid #ddd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  margin: 0 5px;
  color: #2563eb;
  background-color: #fff;
}

.social:hover {
  color: #ffffff;
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* --- Remember Me --- */

.content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox label {
  margin-left: 5px;
}

.pass-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.pass-link a:hover {
  color: #1d4ed8;
}

/* --- Responsive --- */

@media (max-width: 768px) {

  .container {
    width: 95%;
    min-height: 500px;
  }

  .overlay-container {
    display: none;
  }

  .form-container {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px 0;
  }

  .login-container,
  .register-container {
    transform: none !important;
    opacity: 1 !important;
  }

  .container.active .login-container {
    display: none;
  }

  .container:not(.active) .register-container {
    display: none;
  }

}

/* --- Video Background --- */

.video-bg {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;

  opacity: 0.25;

  border-radius: 10px;

  pointer-events: none;
}