/* ================================================================
   login.css - khusus tampilan halaman login (index.html)
   Tema: glassmorphism gelap - selaras dengan tema seluruh aplikasi
   (theme-dark di style.css), supaya kartu login benar-benar terasa
   "kaca tembus pandang" (kontras warna vivid di belakang membuat
   efek transparan jauh lebih terlihat dibanding di atas latar putih).
   ================================================================ */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 700px at 12% -12%, rgba(79, 124, 255, 0.32), transparent 55%),
    radial-gradient(900px 700px at 102% 0%, rgba(168, 85, 247, 0.26), transparent 55%),
    radial-gradient(1100px 800px at 50% 112%, rgba(45, 150, 180, 0.22), transparent 55%),
    linear-gradient(180deg, #0b0f1a 0%, #101728 55%, #0d1220 100%);
  padding: 20px;
}

/* Blob dekoratif — mengambang pelan, warna vivid supaya "menyala"
   lembut di balik kaca buram saat ditembus card. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}
.blob-1 { width: 420px; height: 420px; background: #6d8bff; top: -120px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: #d770e8; bottom: -140px; right: -80px; animation-delay: 2.5s; }
.blob-3 { width: 300px; height: 300px; background: #4fd1e8; bottom: 60px; left: 8%; animation-delay: 5s; }
.blob-4 { width: 260px; height: 260px; background: #a78bfa; top: 10%; right: 12%; opacity: 0.45; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.06); }
}

/* ---------------- Kartu kaca gelap (inti glassmorphism) ---------------- */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 40px 32px 28px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6d8bff, #a78bfa);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(109, 139, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.login-logo h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #f5f7fb;
}
.login-logo h1 span { color: #9db4ff; }

.login-subtitle {
  color: #b7bfd6;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 26px;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-google {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-google:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-google:active:not(:disabled) { transform: translateY(0) scale(0.98); }

#btnSiswa {
  background: linear-gradient(135deg, rgba(109, 139, 255, 0.28), rgba(167, 139, 250, 0.28));
  border: 1px solid rgba(157, 180, 255, 0.4);
}
#btnSiswa:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(109, 139, 255, 0.4), rgba(167, 139, 250, 0.4));
}

.g-icon { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.btn.loading { opacity: 0.6; pointer-events: none; }

.login-note {
  min-height: 18px;
  font-size: 13px;
  color: #f87171;
  margin: 14px 0 0;
}

.recaptcha-note {
  position: relative;
  margin-top: 20px;
  font-size: 11px;
  color: #8890a8;
  line-height: 1.5;
}
.recaptcha-note a { color: #9db4ff; font-weight: 600; }

.grecaptcha-badge { visibility: hidden !important; }

/* ---------------- Overlay transisi masuk (siswa/admin) ---------------- */
.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 700px at 12% -12%, rgba(79, 124, 255, 0.32), transparent 55%),
    radial-gradient(900px 700px at 102% 0%, rgba(168, 85, 247, 0.26), transparent 55%),
    linear-gradient(180deg, #0b0f1a 0%, #101728 55%, #0d1220 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.transition-overlay.show { opacity: 1; pointer-events: all; }
.transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.transition-content .logo-mark {
  animation: pulseLogo 1.1s ease-in-out infinite;
}
.transition-content p {
  color: #cdd3e8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
