* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

:root {
  /* Modern Colors */
  --body-color: #eef1ff;
  --glass-color: rgba(255, 255, 255, 0.15);
  --primary-color: #6C63FF;
  --primary-gradient: linear-gradient(135deg, #6C63FF, #8E88FF);
  --text-color: #4b4b4b;
  --border-color: rgba(255, 255, 255, 0.4);

  /* Transition */
  --tran-fast: all 0.2s ease;
  --tran: all 0.3s ease;
  --tran-slow: all 0.5s ease;
}

/* =============================
   Background
============================= */

body {
  background-image: url('../../uploads/background/1.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: background-image 1s ease-in-out;
  min-height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end; /* pindah ke kanan */
  padding-right: 80px; /* jarak dari kanan */

  position: relative;
}

/* Dark overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 0;
}

/* Background slider */
.background-slider {
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out, transform 6s ease;
  z-index: -2;
  opacity: 0;
}

.background-slider.active {
  opacity: 1;
  transform: scale(1.05); /* cinematic zoom */
}

/* =============================
   Glass Form
============================= */

.form-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 480px;
  padding: 35px;
  margin: 20px;

  background: var(--glass-color);
  border-radius: 28px;

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid var(--border-color);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  animation: fadeUp 0.6s ease;
}

/* Subtle gradient shine */
.form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05)
  );
  pointer-events: none;
}


/* =============================
  Floating
============================= */
.form-floating > label {
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}


/* =============================
   Animation
============================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   Title
============================= */

h2 {
  font-size: 34px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* =============================
   Input
============================= */

.rounded-input,
.form-control,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.9);
  font-size: 15px;
  transition: var(--tran);
}

.rounded-input::placeholder {
  color: #9a9a9a;
  font-size: 14px;
}

.rounded-input:focus,
.form-control:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.25);
}

/* =============================
   Input Group
============================= */

.input-group {
  flex-wrap: nowrap;
}

.input-group .rounded-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  border-radius: 14px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: var(--tran-fast);
}

.input-group-text i {
  color: var(--primary-color);
}

.input-group-text:hover i {
  opacity: 0.8;
}

/* =============================
   Button
============================= */

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tran);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108,99,255,0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* =============================
   Links
============================= */

.font-small a,
.small {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: var(--tran-fast);
}

.font-small a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =============================
   Checkbox & Captcha
============================= */

.form-check-label {
  font-weight: 500;
  color: #333;
}

#captchaBox label {
  font-size: 14px;
}

.bold-text {
  font-weight: 800;
}

/* =============================
   Responsive
============================= */

@media (max-width: 768px) {
  .form-container {
    padding: 25px;
  }

  h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {

  .form-container {
    padding: 16px;
    margin: 12px;
    border-radius: 20px;
  }

  h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .rounded-input,
  .form-control,
  select {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .input-group-text {
    padding: 0 12px;
    font-size: 16px;
  }

  .btn-primary {
    padding: 12px;
    font-size: 15px;
    border-radius: 14px;
  }

  #captchaBox label {
    font-size: 13px;
  }

  .form-check-label {
    font-size: 13px;
  }

  .font-small a,
  .small {
    font-size: 13px;
    display: inline-block;
    margin-top: 6px;
  }
}

/* Small phones */
@media (max-width: 360px) {

  h2 {
    font-size: 22px;
  }

  .rounded-input,
  .form-control {
    font-size: 13px;
    padding: 10px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 11px;
  }

  .input-group-text {
    padding: 0 10px;
  }
}

/* Short height device */
@media (max-height: 700px) {
  .form-container {
    transform: scale(0.95);
  }
}

/* Override warna teks supaya kontras di atas background foto */
.text-dark {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
@media (max-width: 480px) {

  .form-container {
    padding: 16px;
    margin: 12px;
    border-radius: 20px;
  }

  h2 {
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .form-floating label {
    font-size: 13px;
  }

  .rounded-input,
  .form-control,
  select {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 12px;
  }
}
@media (max-width: 768px) {

  body{
    justify-content: center;
    padding: 0;
  }

  .form-container{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

}