/* =========================================
   UTILITAS
========================================= */
.hidden {
  display: none !important;
}

/* =========================================
   OVERLAY
========================================= */
#login-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   LOGIN BOX
========================================= */
.login-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.6rem;              /* FIX ukuran */
  border-radius: 16px;
  width: 100%;
  max-width: 380px;             /* FIX agar tidak besar */

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #f1f1f1;
  transition: 0.25s ease;
}

body.light .login-box {
  background: rgba(255, 255, 255, 0.35); /* lebih transparan agar efek glass muncul */
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);           /* WAJIB untuk efek glass */
  -webkit-backdrop-filter: blur(12px);

  color: #2a2a2a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); /* bayangan lebih soft */
  transition: 0.25s ease;
}

/* =========================================
   LIGHT MODE — TEXT PUTIH
========================================= */
body.light h2,
body.light label {
  color: white !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.25); /* biar tetap terbaca */
}

/* =========================================
   LIGHT MODE — SUBMIT BUTTON TRANSPARAN
========================================= */
body.light .btn-submit {
  background: rgba(255, 255, 255, 0.22) !important; /* transparan glass */
  border: 1px solid rgba(255, 255, 255, 0.40) !important;
  color: white !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

body.light .btn-submit:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(255,255,255,0.25);
}



/* =========================================
   TITLE
========================================= */
.login-box h2 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* =========================================
   INPUT GROUP
========================================= */
.input-group {
  margin-bottom: 1rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* FIX LEBAR INPUT (PAS) */
.input-group input {
  width: 100%;
  height: 44px;                 /* seragam */
  padding: 10px 12px;
  box-sizing: border-box;       /* FIX LEBAR PAS */

  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  outline: none;
  transition: 0.2s;
}

.input-group input:focus {
  border-color: #4d90fe;
  box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.35);
}

body.light .input-group input {
  background: #fff;
  border: 1px solid #bfbfbf;
  color: #333;
}

/* =========================================
   SUBMIT BUTTON
========================================= */

/* FIX LEBAR BUTTON (PAS) */
.btn-submit {
  width: 100%;
  height: 44px;                /* seragam dengan input */
  box-sizing: border-box;

  padding: 0 12px;
  border-radius: 8px;
  border: none;

  /* WARNA BARU — Biru Neon Premium */
  background: linear-gradient(135deg, #1873ff 0%, #0a3ea0 100%);
  color: #fff;

  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 6px;
}

.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(24, 115, 255, 0.45);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* =========================================
   LOGIN BUTTON (HEADER)
========================================= */
.login-btn-header {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}

.login-btn-header:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.32);
}

body.light .login-btn-header {
  background: #eaeaea;
  border-color: #c7c7c7;
  color: #333;
}

body.light .login-btn-header:hover {
  background: #dcdcdc;
}


  /* Paksa swal paling tinggi */
  .swal2-container {
    z-index: 999999 !important;
    position: fixed !important;
  }

  /* turunkan overlay (kalau dia lebih tinggi) */
  #login-overlay {
    z-index: 1000 !important;
  }

  .login-box {
    z-index: 1100 !important;
    position: relative !important;
  }