* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
  background: #fff;
  overflow-x: hidden;
}

/* CONTAINER */
.split-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* BAGIAN KIRI */
.left-section {
  flex: 1.8;
  position: relative;
  background: url("../img/background.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  color: #fff;
}
.left-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 72, 198, 0.88) 0%,
    rgba(53, 64, 185, 0.92) 100%
  );
  z-index: 1;
}
.left-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.brand-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}
.brand-subtitle {
  color: #fff;
  margin-bottom: 15px;
}
.brand-description {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.brand-si,
.brand-pantau,
.brand-pas {
  color: #fff;
}

/* BAGIAN KANAN */
.right-section {
  flex: 1;
  min-width: 400px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-center;
  padding: 50px 60px;
}
.login-form-wrapper {
  width: 100%;
  max-width: 380px;
  margin: auto;
}

/* LOGO */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}
.logo-container img {
  max-height: 200px;
  width: auto;
}

/* BRAND KHUSUS MOBILE */
.mobile-brand {
  display: none;
}

/* HEADER */
.form-header {
  margin-bottom: 28px;
}
.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.form-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* FORM */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.form-control-custom {
  width: 100%;
  height: 46px;
  padding: 10px 16px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: 0.2s ease-in-out;
}
.form-control-custom:focus {
  background: #fff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}
.form-control-custom::placeholder {
  color: #94a3b8;
}

/* SELECT2 */
.select2-container--bootstrap4 .select2-selection--single {
  height: 46px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  transition: 0.2s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
}
.select2-container--bootstrap4
  .select2-selection--single
  .select2-selection__rendered {
  color: #1e293b !important;
  font-size: 14px !important;
  line-height: normal !important;
  padding-left: 4px !important;
}
.select2-container--bootstrap4
  .select2-selection--single
  .select2-selection__placeholder {
  color: #94a3b8 !important;
  font-size: 14px !important;
}
.select2-container--bootstrap4.select2-container--focus
  .select2-selection--single,
.select2-container--bootstrap4.select2-container--open
  .select2-selection--single {
  background: #fff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
  outline: none !important;
}
.select2-container--bootstrap4
  .select2-selection--single
  .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 12px !important;
  height: auto !important;
}
.select2-container--bootstrap4
  .select2-selection--single
  .select2-selection__clear {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 30px !important;
  margin-top: 0 !important;
}
.select2-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
  font-size: 14px !important;
}
.select2-container--bootstrap4
  .select2-results__option--highlighted[aria-selected] {
  background: #4361ee !important;
  color: #fff !important;
}

/* TAMPILKAN PASSWORD */
.show-password-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 24px;
}
.show-password-wrapper input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  accent-color: #4f46e5;
  cursor: pointer;
}
.show-password-wrapper label {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

/* BUTTON */
.btn-blue {
  width: 100%;
  height: 46px;
  background: #4361ee;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-blue:hover {
  background: #3651d4;
  color: #fff;
}

/* FOOTER */
.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* TABLET */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
  }
  .left-section {
    flex: none;
    padding: 50px 30px;
    text-align: center;
  }
  .brand-title {
    font-size: 32px;
  }
  .right-section {
    flex: none;
    min-width: 100%;
    padding: 40px 20px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    background: #ffffff !important;
  }
  body {
    background: linear-gradient(135deg, #ffffff, #ffffff) !important;
  }
  .split-container {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 18px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  }
  .left-section {
    display: none !important;
  }
  .right-section {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 400px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
  }
  .login-form-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 32px 32px 27px !important;
    background: #fff !important;
    border-radius: 24px !important;
  }

  /* Logo */

  /* Judul di bawah logo */
  .mobile-brand {
    display: none;
  }
  .mobile-brand h1 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: #4361ee;
  }
  .mobile-brand h1 span {
    color: #1e293b;
  }
  .mobile-brand p {
    max-width: 320px;
    margin: 0 auto;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: #64748b;
  }

  .logo-container img {
    width: 230px !important;
    max-width: 230px !important;
    height: auto;
  }

  .logo-container {
    margin-bottom: 25px !important;
  }

  /* Header login */
  .form-header {
    margin-bottom: 22px !important;
  }
  .form-header h2 {
    font-size: 24px !important;
    margin-bottom: 5px;
  }
  .form-header p {
    font-size: 13px;
  }

  /* Input */
  .form-control-custom {
    height: 46px;
  }

  /* Footer di dalam card */
  .form-footer {
    position: static !important;
    width: 100% !important;
    margin-top: 50px !important;
    text-align: center !important;
    color: #94a3b8 !important;
  }
}

/* HP KECIL */
@media (max-width: 480px) {
  .split-container {
    padding: 14px !important;
  }
  .right-section {
    max-width: 440px !important;
  }
  .login-form-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    padding: 28px 24px 24px !important;
    border-radius: 20px !important;
  }
  .logo-container {
    margin-bottom: 20px !important;
  }
  .logo-container img {
    width: 250px !important;
    max-width: 250px !important;
  }
  .mobile-brand {
    margin-top: 10px;
  }
  .mobile-brand h1 {
    font-size: 20px;
  }
  .mobile-brand p {
    font-size: 12px;
  }
  .form-header h2 {
    font-size: 23px !important;
  }
}

/* ================================
   FLIP LOGIN REGISTER
================================ */

.login-form-wrapper {
  perspective: 1200px;
}

.flip-card {
  position: relative;
  width: 100%;
  min-height: 520px;
  transform-style: preserve-3d;
}

.flip-front,
.flip-back {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.6s ease;
}

.flip-front {
  transform: rotateY(0deg);
}

.flip-back {
  transform: rotateY(180deg);
}

/* ketika register aktif */

.flip-card.active .flip-front {
  transform: rotateY(-180deg);
}

.flip-card.active .flip-back {
  transform: rotateY(0deg);
}

/* LINK REGISTER */

.register-link {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #94a3b8;
}

.register-link a {
  color: #4361ee;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}
