/* =========================================================================
   Portal Akademik — Login Redesign
   Split-screen: visual carousel (kiri) + form login (kanan)
   Scoped under .auth-redesign agar tidak bentrok dengan theme global.
   ========================================================================= */

.auth-redesign {
  --brand: #2f9e44;
  --brand-dark: #1e7d33;
  --brand-darker: #14692a;
  --ink: #1f2a24;
  --muted: #6b7b72;
  --line: #e3eae5;
  --visual-bg: #0d1812;

  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 100vh;
  width: 100%;
  /* Jarak kiri-kanan agar konten tidak menempel ke tepi layar */
  margin: 0 15%;
  /* Tanpa padding kiri-kanan, hanya jarak atas-bawah tipis */
  padding: 16px 0;
  background: #ffffff;
  box-sizing: border-box;
}

.auth-redesign *,
.auth-redesign *::before,
.auth-redesign *::after { box-sizing: border-box; }

/* ============================== LEFT — VISUAL ============================= */
.auth-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  /* Overlay hijau transparan supaya pola background-new.png tetap terlihat,
     sedikit lebih gelap di bawah agar chip kontak tetap kontras. */
  background:
    linear-gradient(165deg, rgba(20, 86, 46, 0.45) 0%, rgba(10, 48, 26, 0.74) 100%),
    url('/assets/images/background-new.png') center/cover no-repeat;
  background-color: #0f3d22;
}

.auth-visual__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 42px 46px 34px;
}

/* Carousel */
.auth-carousel {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-carousel__track {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.auth-slide {
  display: none;
  animation: authFade .55s ease;
}
.auth-slide.is-active { display: block; }

.auth-slide__img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}

.auth-slide__title {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: .2px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.auth-slide__text {
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

@keyframes authFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav arrows */
.auth-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47, 158, 68, .45);
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.auth-carousel__nav:hover { background: var(--brand-dark); transform: translateY(-50%) scale(1.06); }
.auth-carousel__nav--prev { left: -6px; }
.auth-carousel__nav--next { right: -6px; }

/* Dots */
.auth-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 30px;
}
.auth-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.auth-carousel__dot.is-active { width: 22px; border-radius: 4px; background: var(--brand); }

/* Contact chips — alamat full-width di atas, telepon + email sebaris di bawah */
.auth-visual__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.auth-chip--full { grid-column: 1 / -1; }   /* alamat membentang penuh */
.auth-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.4;
}
.auth-chip span { min-width: 0; overflow-wrap: anywhere; }
.auth-chip i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

/* ============================== RIGHT — FORM ============================= */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
}

.auth-form {
  width: 100%;
  text-align: left;            /* override text-align:center bawaan theme */
}

.auth-form__logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;         /* center sesuai gambar 2 */
}

.auth-form__head { margin-bottom: 24px; text-align: center; }
.auth-form__head h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 700;
}
.auth-form__head h1 span { display: block; font-weight: 700; }
.auth-form__head p { color: var(--muted); margin: 0; font-size: 1.05rem; font-weight: 500; }

/* Form card */
.auth-form__card {
  background: #f6faf7;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
}

.auth-field { margin-bottom: 18px; }
.auth-field:last-of-type { margin-bottom: 14px; }

.auth-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.auth-input-wrap { position: relative; }

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-input::placeholder { color: #aeb9b3; }
.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, .14);
}
.auth-input.has-toggle { padding-right: 46px; }
.auth-input.is-invalid { border-color: #dc3545; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, .14); }

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}
.auth-toggle:hover { color: var(--brand); }

.auth-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: .8rem;
  color: #dc3545;
}

/* Remember + options */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.auth-remember input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* Submit */
.auth-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(47, 158, 68, .32);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-submit:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(47, 158, 68, .42); }
.auth-submit:active { transform: translateY(1px); }

.auth-forgot {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.auth-forgot:hover { color: var(--brand-darker); text-decoration: underline; }

.auth-form__footer {
  text-align: center;
  margin-top: 26px;
  font-size: .8rem;
  color: var(--muted);
}

/* ============================== RESPONSIVE ============================= */
@media (max-width: 991px) {
  .auth-redesign { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; padding: 32px 20px; }
}

@media (max-width: 420px) {
  .auth-form__card { padding: 22px 18px; }
  .auth-form__head h1 { font-size: 1.45rem; }
}
