/* Landing & alur pendaftaran: dibangun di atas register.css (hero, tombol tema, keyframes). */

/* ---------- Landing: satu panel di tengah layar ---------- */
.fms-home-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4.5rem 1.25rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.fms-home-center {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.fms-home-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.fms-home-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -22px -34px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), .18), transparent);
}

.fms-home-logo {
  display: block;
  max-width: 220px;
  max-height: 96px;
  object-fit: contain;
  animation: fms-home-float 6s ease-in-out infinite;
}

.fms-home-title {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3rem);
  line-height: 1.12;
}

/* Kuning accent sebagai sapuan stabilo; teks tetap primary agar terbaca. */
.fms-home-accent {
  color: rgb(var(--primary-rgb));
  background: linear-gradient(transparent 62%, rgba(var(--accent-rgb), .7) 62%, rgba(var(--accent-rgb), .7) 92%, transparent 92%);
  padding: 0 .1em;
}

[data-theme-mode="dark"] .fms-home-accent {
  color: rgb(var(--accent-rgb));
  background: none;
}

.fms-home-lead {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.fms-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.fms-home-cta {
  box-shadow: 0 .5rem 1.25rem rgba(var(--primary-rgb), .28);
}

.fms-home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.5rem rgba(var(--primary-rgb), .34);
}

.fms-home-footer {
  color: var(--text-muted, #697386);
  font-size: .75rem;
}

.fms-home-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  margin-bottom: .5rem;
}

.fms-home-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted, #697386);
  text-decoration: none;
  transition: color .2s ease;
}

.fms-home-footer__links a:hover {
  color: rgb(var(--primary-rgb));
}

.fms-home-landing .fms-home-footer {
  flex: 0 0 auto;
  margin-top: 2.5rem;
  text-align: center;
}

/* Cahaya latar lembut; ditaruh di belakang konten. */
.fms-home-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.fms-home-orb--one {
  top: -120px;
  left: 50%;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .16), transparent 65%);
  animation: fms-home-pulse 9s ease-in-out infinite;
}

.fms-home-orb--two {
  right: -140px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%);
  animation: fms-home-pulse 9s ease-in-out -4.5s infinite;
}

/* ---------- Halaman alur pendaftaran ---------- */
.fms-home-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  color: rgb(var(--primary-rgb));
  background: rgba(var(--primary-rgb), .10);
  font-size: 1.35rem;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .2s ease;
}

.fms-home-step__number {
  color: rgba(var(--accent-rgb), .6);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.fms-home-step:hover .fms-home-step__icon {
  transform: rotate(-6deg) scale(1.08);
  background: rgba(var(--primary-rgb), .16);
}

.fms-home-checklist {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fms-home-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.fms-home-checklist i {
  margin-top: .1rem;
  color: rgb(var(--primary-rgb));
}

.fms-home-cta-card {
  border: 1px solid rgba(var(--primary-rgb), .22);
  background: linear-gradient(160deg, rgba(var(--primary-rgb), .10), rgba(var(--primary-rgb), .02));
}

.fms-home-stores {
  margin-top: 1.75rem;
}

.fms-home-stores__label {
  margin-bottom: .7rem;
  color: var(--text-muted, #697386);
  font-size: .8125rem;
}

.fms-home-stores__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

/* Logo store PNG; tinggi tetap supaya tombol seragam walau ukuran logo beda. */
.fms-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: .35rem .9rem;
  border: 1px solid var(--default-border, rgba(0, 0, 0, .12));
  border-radius: .6rem;
  background: var(--custom-white, #fff);
  box-shadow: 0 .25rem .9rem rgba(0, 0, 0, .08);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}

.fms-store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), .4);
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
}

[data-theme-mode="dark"] .fms-store-btn {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

/* Kotak tetap supaya tombol tidak bergeser saat logo selesai dimuat. */
.fms-store-btn__media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 26px;
  overflow: hidden;
  border-radius: .25rem;
}

/* Shimmer hanya aktif bila JS jalan; tanpa JS logo langsung tampil. */
.fms-store-btn.js-shimmer .fms-store-btn__logo {
  opacity: 0;
}

.fms-store-btn.js-shimmer .fms-store-btn__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), .07) 25%,
    rgba(var(--primary-rgb), .18) 37%,
    rgba(var(--primary-rgb), .07) 63%
  );
  background-size: 400% 100%;
  animation: fms-store-shimmer 1.3s ease-in-out infinite;
}

.fms-store-btn__logo {
  display: block;
  width: auto;
  max-width: 128px;
  height: 26px;
  object-fit: contain;
  opacity: 1;
  transition: opacity .25s ease;
}

@keyframes fms-store-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.fms-store-btn__fallback {
  display: none;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 500;
}

/* Kelas, bukan atribut hidden: Bootstrap memakai [hidden]{display:none!important}. */
.fms-store-btn__fallback.is-shown {
  display: inline-flex;
}

.fms-store-btn__fallback i {
  font-size: 1.1rem;
}

/* ---------- Halaman informasi (cara hapus akun) ---------- */
.fms-info-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.fms-info-list li {
  margin-bottom: .6rem;
}

.fms-info-list li:last-child {
  margin-bottom: 0;
}

.fms-info-list li::marker {
  color: rgba(var(--primary-rgb), .55);
  font-weight: 600;
}

/* ---------- Motion saat muncul ---------- */
/* Hanya disembunyikan bila JS aktif, jadi konten tetap tampil tanpa JS. */
.fms-home-motion-ready [data-home-motion] {
  opacity: 0;
}

.fms-home-motion-ready [data-home-motion].is-visible {
  animation-duration: .7s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  animation-fill-mode: both;
  animation-delay: var(--fms-home-delay, 0ms);
}

.fms-home-motion-ready [data-home-motion="fade-up"].is-visible {
  animation-name: fms-fade-up;
}

.fms-home-motion-ready [data-home-motion="scale-in"].is-visible {
  animation-name: fms-scale-in;
}

.fms-home-motion-ready [data-home-motion="slide-right"].is-visible {
  animation-name: fms-slide-right;
}

@keyframes fms-home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fms-home-pulse {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}

@media (max-width: 575.98px) {
  .fms-home-landing {
    padding-top: 4rem;
  }

  .fms-home-logo {
    max-width: 160px;
    max-height: 72px;
  }

  .fms-home-lead {
    font-size: 1rem;
  }

  .fms-home-actions {
    flex-direction: column;
    width: 100%;
  }

  .fms-home-actions .btn {
    width: 100%;
  }

  .fms-home-orb--one {
    width: 420px;
    height: 420px;
    margin-left: -210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fms-home-logo,
  .fms-home-orb,
  .fms-home-step__icon,
  .fms-home-motion-ready [data-home-motion],
  .fms-home-motion-ready [data-home-motion].is-visible {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Shimmer jadi blok statis, tanpa gerakan. */
  .fms-store-btn.js-shimmer .fms-store-btn__media::after {
    animation: none;
    background: rgba(var(--primary-rgb), .12);
  }
}
