body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('../images/bck522.jpg') no-repeat center center; /* ganti dengan path gambar */
  background-size: cover;  /* supaya gambar memenuhi layar */
}
body::before {
  content: "";
  position: fixed;      /* overlay menutupi seluruh layar */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* biar overlay tidak mengganggu klik */
  z-index: 0;
}


.login-container {
  display: flex;
  max-width: 1000px;
  margin: 120px auto;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-left {
  flex: 1;
  background: #eee;
  position: relative;
}

.login-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text {
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.login-right {
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 100%;
  max-width: 320px;
}

.login-box img {
  display: block;
  margin: 0 auto 20px;
  width: 80px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 6px; /* jarak antar input & tombol */
}

.form-group {
  position: relative;
  margin-bottom: 15px;
}

.form-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box; /* pastikan padding tidak membuat input melebar */
}

button {
  width: 100%;
  padding: 10px;
  background: #0066cc;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box; /* pastikan padding tidak membuat tombol melebar */
}

button:hover {
  background: #004999;
}

#loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.loader-box {
  text-align: center;
  background: #1e3a8a;
  padding: 2rem 3rem;
  border-radius: 1rem;
  color: white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  width: 300px;
}

.progress-container {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.2s ease;
}

#progress-text {
  font-weight: bold;
  font-size: 1rem;
}

/* Animasi putar */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spin-image {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
  animation: spin 1.2s linear infinite;
  filter: brightness(100%) grayscale(100%) invert(100%);
}

.error-message {
  color: red;
  margin-top: 10px;
  text-align: center;
}
.special-text {
  text-align: center;               /* teks di tengah */
  font-size: 18px;                  /* ukuran huruf lebih besar */
  font-weight: 700;                 /* tebal */
  color: #2340c2;                   /* warna kuning cerah */
  text-shadow: 1px 1px 4px rgba(47, 42, 42, 0.41); /* agar terlihat di atas background */
  margin: 0;                         /* hapus margin default */
}

.special-text + p {
  text-align: center;               
  font-size: 14px;                  
  font-weight: 700;                 
  font-family: 'Arial', 'Helvetica', sans-serif; 
  color: rgba(0, 0, 0, 0.6);        /* warna hitam memudar (60% opacity) */
  margin: 5px 0 10px 0;              
  position: relative;                
  display: inline-block;             
}

/* Garis di bawah teks */
.special-text + p::after {
  content: '';
  display: block;
  height: 2px;                       
  width: 100%;                        
  background-color: rgba(0, 0, 0, 0.6); /* garis juga memudar sama dengan teks */
  margin-top: 4px;                     
}
.login-box h2 {
  text-align: center;             
  font-size: 16px;                  
  font-weight: 700;                 
  font-family: 'Arial', 'Helvetica', sans-serif; 
  color: rgba(0, 0, 0, 0.6); 

}
    .form-group {
      position: relative;
      margin-bottom: 1.5rem;
    }

    .form-group .toggle-password {
      position: absolute;
      right: 2.5rem;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #999;
    }