/* ==========================================================================
   LIS-A — Halaman Login
   Split layout: panel brand (kiri) + card form (kanan)
   Dimuat setelah seluruh CSS Limitless, jadi selektor di sini boleh sederhana.
   ========================================================================== */

:root {
  --auth-orange: #fb8c00;
  --auth-orange-deep: #ef6c00;
  --auth-orange-soft: #ffb74d;
  --auth-green: #009688;
  --auth-green-deep: #00796b;
  --auth-green-soft: #4db6ac;
  --auth-ink: #2a3140;
  --auth-muted: #6b7280;
  --auth-surface: #ffffff;
  --auth-canvas: #fffaf4;
  --auth-border: #e4e7ee;
  --auth-radius: 12px;
}

/* --------------------------------------------------------------- shell -- */

html {
  height: 100%;
}

body.auth-body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--auth-canvas);
  color: var(--auth-ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tanpa `overflow: hidden` di sini — kalau kolom kiri lebih tinggi dari
   viewport, isinya akan terpotong dan tidak bisa di-scroll. Blob ambient
   sudah dikurung oleh .auth-ambient yang punya overflow sendiri. */
.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
}

/* ------------------------------------------------------------- ambient -- */

.auth-ambient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  -webkit-filter: blur(90px);
  filter: blur(90px);
}

/* oranye besar, kiri atas */
.auth-blob--a {
  top: -16%;
  left: -10%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(251, 140, 0, .55) 0%, rgba(251, 140, 0, 0) 68%);
}

/* hijau/teal, kiri bawah */
.auth-blob--b {
  bottom: -22%;
  left: 6%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(0, 150, 136, .42) 0%, rgba(0, 150, 136, 0) 68%);
}

/* oranye lembut, tengah — jembatan warna ke sisi kanan */
.auth-blob--c {
  top: 38%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(255, 183, 77, .38) 0%, rgba(255, 183, 77, 0) 70%);
}

/* hijau tipis, kanan atas */
.auth-blob--d {
  top: -10%;
  right: -8%;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(77, 182, 172, .3) 0%, rgba(77, 182, 172, 0) 70%);
}

/* -------------------------------------------------------- panel brand -- */

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem clamp(2rem, 4.5vw, 4.5rem);
}

/* Logo transparan tanpa background chip putih */
.auth-brand__logo-chip {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 2rem;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.auth-brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: 280px;
}

.auth-brand__title {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--auth-ink);
}

.auth-brand__title em {
  font-style: normal;
  color: var(--auth-orange-deep);
}

.auth-brand__subtitle {
  margin: .6rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--auth-green-deep);
}

.auth-brand__desc {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--auth-muted);
}

.auth-brand__points {
  list-style: none;
  max-width: 34rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.auth-brand__points li {
  display: flex;
  align-items: flex-start;
  margin-bottom: .7rem;
  font-size: .875rem;
  color: var(--auth-ink);
}

.auth-brand__points li:last-child {
  margin-bottom: 0;
}

.auth-brand__points i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: .75rem;
  border-radius: 8px;
  background-color: rgba(0, 150, 136, .12);
  color: var(--auth-green-deep);
  font-size: 13px;
  line-height: 28px;
  text-align: center;
}

/* ------------------------------------------------------------- slider -- */

.auth-slider {
  max-width: 34rem;
  margin-top: 1rem;
}

.auth-slider .carousel-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .6);
  box-shadow: 0 2px 6px rgba(42, 49, 64, .06), 0 18px 40px -14px rgba(42, 49, 64, .28);
}

.auth-slider .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.auth-slider .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-slider .carousel-indicators {
  position: static;
  margin: .9rem 0 0;
  padding: 0;
}

.auth-slider .carousel-indicators li {
  width: 26px;
  height: 4px;
  margin: 0 4px;
  border: 0;
  border-radius: 2px;
  background-color: rgba(42, 49, 64, .18);
  opacity: 1;
  transition: background-color .25s ease, width .25s ease;
}

.auth-slider .carousel-indicators li.active {
  width: 38px;
  background-color: var(--auth-orange);
}

/* -------------------------------------------------------- panel form -- */

.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem clamp(1.5rem, 3vw, 3rem);
  background-color: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255, 255, 255, .8);
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  margin: 0;
  padding: 2.5rem;
  background-color: var(--auth-surface);
  border: 1px solid rgba(228, 231, 238, .9);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(42, 49, 64, .04), 0 16px 40px -12px rgba(42, 49, 64, .16);
}

.auth-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--auth-ink);
}

.auth-card__hint {
  margin: .35rem 0 1.75rem;
  font-size: .875rem;
  color: var(--auth-muted);
}

.auth-card__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.auth-card__footer .auth-brand__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--auth-ink);
}

.auth-card__footer .auth-brand__title em {
  font-style: normal;
  color: var(--auth-orange-deep);
}

.auth-card__footer .auth-brand__subtitle {
  margin: .25rem 0 0;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--auth-green-deep);
  line-height: 1.35;
}

.auth-footnote {
  margin: 1.75rem 0 0;
  font-size: .75rem;
  color: var(--auth-muted);
  text-align: center;
}

/* --------------------------------------------------------------- form -- */

.auth-card .auth-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--auth-ink);
}

/* bootstrap_limitless.min.css memaksa `.form-control { border-top-color:
   transparent !important }` untuk gaya underline Material — ditimpa eksplisit
   agar border oranye utuh di keempat sisi. */
.auth-card .form-control {
  height: auto;
  padding: .6875rem 1rem;
  border: 1px solid var(--auth-border);
  border-top-color: var(--auth-border) !important;
  border-radius: var(--auth-radius);
  background-color: #fcfcfd;
  font-size: .875rem;
  color: var(--auth-ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-card .form-control:hover {
  border-color: #b2dfdb !important;
}

.auth-card .form-control:focus {
  border-color: var(--auth-green) !important;
  border-top-color: var(--auth-green) !important;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, .15) !important;
  outline: 0;
}

.auth-card .form-control::-webkit-input-placeholder { color: #aab0bc; }
.auth-card .form-control::-moz-placeholder { color: #aab0bc; }
.auth-card .form-control:-ms-input-placeholder { color: #aab0bc; }

.auth-card .form-control.is-invalid,
.auth-card .form-control.is-invalid:hover,
.auth-card .form-control.is-invalid:focus {
  border-color: #f44336 !important;
  border-top-color: #f44336 !important;
  box-shadow: none !important;
}

/* Wrapper field sendiri: ikon diposisikan relatif terhadap input, bukan
   terhadap .form-group — kelas feedback bawaan Limitless mengukur dari atas
   grup sehingga ikonnya melompat ke area <label>. */
.auth-field {
  position: relative;
}

.auth-field .form-control {
  padding-left: 2.75rem;
}

.auth-field--password .form-control {
  padding-right: 2.75rem;
}

.auth-field__icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 100%;
  color: #aab0bc;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transition: color .2s ease;
}

.auth-field .form-control:focus ~ .auth-field__icon {
  color: var(--auth-green);
}

.auth-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #aab0bc;
  cursor: pointer;
  transition: color .2s ease;
}

.auth-toggle:hover,
.auth-toggle:focus {
  color: var(--auth-green);
  outline: 0;
}

.auth-toggle:focus-visible {
  color: var(--auth-green-deep);
}

/* remember me */
.auth-card .custom-control-label {
  font-size: .8125rem;
  color: var(--auth-muted);
  cursor: pointer;
  padding-top: 1px;
}

.auth-card .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--auth-orange);
  background-color: var(--auth-orange);
}

.auth-card .custom-control-input:focus ~ .custom-control-label::before {
  border-color: var(--auth-orange);
  box-shadow: none;
}

.auth-card .custom-control-label:hover::before {
  border-color: var(--auth-orange);
}

/* alert error */
.auth-alert {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(244, 67, 54, .24);
  border-radius: var(--auth-radius);
  background-color: rgba(244, 67, 54, .08);
  color: #c62828;
  font-size: .8125rem;
  line-height: 1.5;
}

.auth-alert i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 14px;
}

/* ------------------------------------------------------------- tombol -- */

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1rem;
  border: 0;
  border-radius: var(--auth-radius);
  background-image: linear-gradient(135deg, var(--auth-orange) 0%, var(--auth-orange-deep) 100%);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none; /* tema Limitless memaksa uppercase pada .btn */
  box-shadow: 0 6px 16px -6px rgba(239, 108, 0, .6);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-auth:hover,
.btn-auth:focus {
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 10px 22px -8px rgba(239, 108, 0, .7);
  transform: translateY(-1px);
}

.btn-auth:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 140, 0, .3), 0 10px 22px -8px rgba(239, 108, 0, .7);
}

.btn-auth:active {
  transform: translateY(0);
}

.btn-auth:disabled,
.btn-auth.disabled {
  opacity: .85;
  cursor: wait;
  transform: none;
  box-shadow: 0 6px 16px -6px rgba(239, 108, 0, .4);
}

.btn-auth__icon {
  margin-left: .55rem;
  font-size: 14px;
}

.btn-auth.is-loading .btn-auth__icon {
  -webkit-animation: auth-spin .8s linear infinite;
  animation: auth-spin .8s linear infinite;
}

@-webkit-keyframes auth-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes auth-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* spinner di dalam overlay BlockUI */
.auth-block-spinner {
  display: inline-block;
  color: var(--auth-orange-deep);
  font-size: 26px;
  -webkit-animation: auth-spin .8s linear infinite;
  animation: auth-spin .8s linear infinite;
}

/* ---------------------------------------------------------- responsif -- */

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-content: center;
  }

  .auth-brand {
    align-items: center;
    padding: 2.5rem 1.5rem 1rem;
    text-align: center;
  }

  .auth-brand__logo-chip {
    align-self: center;
    margin-bottom: 1.5rem;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .auth-brand__logo {
    max-height: 64px;
    max-width: 220px;
  }

  .auth-brand__desc,
  .auth-brand__points {
    display: none;
  }

  .auth-slider {
    width: 100%;
    max-width: 30rem;
    margin-top: 1.75rem;
  }

  .auth-panel {
    padding: 1.5rem 1.5rem 3rem;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-left: 0;
  }

  .auth-blob--c,
  .auth-blob--d {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .auth-slider {
    display: none;
  }

  .auth-brand {
    padding: 2.25rem 1.25rem .5rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
}

/* ------------------------------------------------- prefers-reduced-motion */

@media (prefers-reduced-motion: reduce) {
  .btn-auth,
  .auth-slider .carousel-indicators li,
  .auth-card .form-control {
    transition: none;
  }

  .btn-auth.is-loading .btn-auth__icon,
  .auth-block-spinner {
    -webkit-animation: none;
    animation: none;
  }

  .carousel-fade .carousel-item {
    transition: none;
  }
}
