/* Halaman login: latar aurora merah-emas beranimasi pelan, panel sambutan, dan kartu kaca.
   Warna dasar memakai token di gaya.css (:root). Animasi dimatikan untuk pengguna yang memilih "kurangi gerakan". */

.hal-login {
  min-height: 100vh; margin: 0; overflow-x: hidden; display: flex; flex-direction: column;
  background: #070506; color: var(--teks);
}

/* ---------- Latar ---------- */
.latar-login {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 650px at 12% 8%, rgba(225, 29, 72, 0.20), transparent 60%),
    radial-gradient(900px 600px at 92% 95%, rgba(159, 18, 57, 0.28), transparent 60%),
    radial-gradient(700px 500px at 75% 15%, rgba(251, 191, 36, 0.06), transparent 60%),
    linear-gradient(160deg, #0c0607 0%, #13070a 45%, #070508 100%);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen;
  animation: melayang 24s ease-in-out infinite alternate;
}
.aurora.a1 { width: 560px; height: 560px; left: -160px; top: -180px; background: radial-gradient(circle, #e11d48, transparent 65%); }
.aurora.a2 { width: 680px; height: 680px; right: -220px; bottom: -260px; background: radial-gradient(circle, #be123c, transparent 65%);
  animation-duration: 30s; animation-delay: -7s; }
.aurora.a3 { width: 420px; height: 420px; left: 48%; top: 52%; background: radial-gradient(circle, rgba(251, 191, 36, 0.7), transparent 65%);
  opacity: 0.18; animation-duration: 34s; animation-delay: -13s; }
@keyframes melayang {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 45px) scale(1.12); }
  100% { transform: translate(-45px, 90px) scale(0.94); }
}
/* Kisi samar yang memudar ke tepi */
.kisi-login {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
}
/* Garis cahaya yang menyapu pelan */
.garis-cahaya {
  position: absolute; left: -25%; width: 150%; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.55), rgba(251, 191, 36, 0.35), transparent);
  animation: sapu 11s linear infinite;
}
.garis-cahaya.g1 { top: 28%; }
.garis-cahaya.g2 { top: 72%; animation-delay: -5.5s; }
@keyframes sapu {
  0% { transform: translateX(-25%) rotate(-10deg); opacity: 0; }
  20%, 80% { opacity: 0.8; }
  100% { transform: translateX(25%) rotate(-10deg); opacity: 0; }
}
/* Gelembung chat samar, ciri LiveChat */
.gelembung { position: absolute; color: rgba(251, 113, 133, 0.07); animation: naik 20s ease-in-out infinite alternate; }
.gelembung.b1 { left: 6%; top: 62%; font-size: 120px; }
.gelembung.b2 { left: 40%; top: 6%; font-size: 70px; animation-delay: -4s; color: rgba(251, 191, 36, 0.06); }
.gelembung.b3 { right: 8%; top: 12%; font-size: 96px; animation-delay: -9s; }
.gelembung.b4 { right: 30%; bottom: 6%; font-size: 64px; animation-delay: -13s; color: rgba(251, 191, 36, 0.05); }
.gelembung.b5 { left: 54%; top: 46%; font-size: 48px; animation-delay: -16s; }
@keyframes naik { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-36px) rotate(5deg); } }

/* ---------- Tata letak ---------- */
.tata-login {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 32px 24px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px); gap: 64px; align-items: center;
}

/* ---------- Sambutan ---------- */
.sambutan-login { animation: muncul 0.7s ease-out both; }
.logo-cincin { position: relative; width: 116px; height: 116px; display: grid; place-items: center; margin-bottom: 26px; }
.logo-cincin::before {   /* cincin berputar merah-emas */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf24, #e11d48, rgba(225, 29, 72, 0) 38%, #fbbf24 62%, #e11d48 82%, #fbbf24);
  animation: putar 9s linear infinite;
}
.logo-cincin::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: #0c0708; }
.logo-cincin img, .logo-cincin .logo-teks {
  position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 46px rgba(251, 191, 36, 0.35), 0 0 90px rgba(225, 29, 72, 0.25);
}
.logo-cincin .logo-teks { display: grid; place-items: center; font-size: 30px; font-weight: 800; background: radial-gradient(circle at 30% 30%, #fb7185, #9f1239); }
@keyframes putar { to { transform: rotate(360deg); } }
/* Logo animasi (GIF). mix-blend-mode screen: sisa latar hitam di GIF menyatu dengan latar gelap halaman */
.logo-gif {
  /* Tulisan di GIF mulai di 14% dan berakhir di 82% lebarnya (diukur dari semua frame). Margin kiri negatif
     menutup ruang kosong di kiri supaya logo rata dengan teks di bawahnya */
  display: block; width: min(440px, 100%); height: auto; margin: 0 0 4px calc(min(440px, 100%) * -0.14); mix-blend-mode: screen;
  filter: drop-shadow(0 8px 26px rgba(225, 29, 72, 0.28)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.12));
}
.sambutan-login h1 { margin: 4px 0 14px; font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: 0.5px; }
/* Subjudul di bawah GIF: huruf dibentang selebar tulisan logo (68% lebar GIF), rata kiri-kanan */
.judul-gif { margin: 0 0 22px; }
.judul-gif .sub-rata {
  display: flex; justify-content: space-between; width: calc(min(440px, 100%) * 0.68);
  font-size: 30px; line-height: 1.15; letter-spacing: 0; text-transform: uppercase;
}
.sambutan-login h1 > span {
  display: block; background: linear-gradient(90deg, #fb7185, #e11d48 45%, #fbbf24); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.ajakan { max-width: 520px; margin: 0 0 28px; font-size: 14.5px; line-height: 1.65; color: #b9b4ad; }
.fitur-login { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.fitur-login li { display: flex; align-items: center; gap: 14px; }
.ikon-fitur {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #fda4af;
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.18), rgba(225, 29, 72, 0.04)); border: 1px solid rgba(251, 113, 133, 0.22);
}
.fitur-login b { display: block; font-size: 13.5px; }
.fitur-login li span:not(.ikon-fitur) { font-size: 12px; color: var(--teks-redup); }

/* ---------- Kartu login (kaca) ---------- */
.kartu-login {
  position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 34px 32px 26px; border-radius: 20px;
  background: rgba(20, 14, 16, 0.62); border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(225, 29, 72, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: muncul 0.7s 0.1s ease-out both;
}
.kartu-login::before {   /* bingkai bergradasi tipis */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.65), rgba(251, 113, 133, 0) 38%, rgba(251, 191, 36, 0) 62%, rgba(251, 191, 36, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.kepala-login { margin-bottom: 4px; }
.logo-kecil { display: none; margin-bottom: 14px; }
.logo-kecil .logo-gambar { width: 58px; height: 58px; }
.logo-kecil .logo-gif { width: 230px; margin: -6px 0 2px calc(230px * -0.14); }
.kepala-login h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.kepala-login p { margin: 0; font-size: 12.5px; color: var(--teks-redup); }
.pesan-login {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  color: #fecaca; background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); animation: goyang 0.4s ease-out;
}
.pesan-login i { margin-top: 2px; color: var(--merah); }
@keyframes goyang { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.isian-login { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: #d6d2cc; }
.kolom-login {
  position: relative; display: flex; align-items: center; border-radius: 12px; background: rgba(8, 6, 7, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.kolom-login:focus-within { border-color: var(--aksen); background: rgba(8, 6, 7, 0.9); box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15); }
.kolom-login > i { width: 44px; text-align: center; color: #9b8f8f; font-size: 13px; transition: color 0.15s; }
.kolom-login:focus-within > i { color: var(--aksen-terang); }
.kolom-login input {
  flex: 1; min-width: 0; padding: 13px 12px 13px 0; border: 0; background: transparent; color: var(--teks);
  font-family: inherit; font-size: 13.5px; font-weight: 400;
}
.kolom-login input:focus { outline: none; border: 0; }
.kolom-login input::placeholder { color: #6f6969; }
.intip-sandi {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 0; background: none; cursor: pointer;
  color: #9b8f8f; border-radius: 10px;
}
.intip-sandi:hover, .intip-sandi:focus-visible { color: var(--aksen-terang); outline: none; }
.tombol-masuk {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px;
  padding: 14px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff; background: linear-gradient(135deg, #fb7185, #e11d48 45%, #9f1239);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s, box-shadow 0.15s;
}
.tombol-masuk::after {   /* kilau yang lewat saat disorot */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transition: left 0.6s;
}
.tombol-masuk:hover { box-shadow: 0 14px 34px rgba(225, 29, 72, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.tombol-masuk:hover::after { left: 120%; }
.tombol-masuk:active { transform: translateY(1px); }
.tombol-masuk i { transition: transform 0.15s; }
.tombol-masuk:hover i.fa-arrow-right { transform: translateX(4px); }
.tombol-masuk.memuat { pointer-events: none; opacity: 0.85; }
.aman-login { margin: 4px 0 0; text-align: center; font-size: 11px; color: #7f7878; }
.aman-login i { margin-right: 4px; color: var(--hijau); }
.kaki-login { position: relative; z-index: 1; padding: 0 16px 18px; text-align: center; font-size: 11px; color: #5f5959; letter-spacing: 0.3px; }

@keyframes muncul { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Layar sempit: hanya kartu login, logo pindah ke kartu ---------- */
@media (max-width: 940px) {
  .tata-login { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 32px 16px 20px; }
  .sambutan-login { display: none; }
  .kartu-login { width: 100%; max-width: 420px; min-width: 0; }
  .logo-kecil { display: block; }
}
@media (max-width: 420px) {
  .kartu-login { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .garis-cahaya, .gelembung, .logo-cincin::before, .sambutan-login, .kartu-login, .pesan-login { animation: none !important; }
  .garis-cahaya { opacity: 0.4; }
}
