@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('../img/mosque.jpg');
  background-size: cover; /* Membuat gambar menutupi seluruh area body */
  background-position: center center; /* Memposisikan gambar di tengah */
  background-repeat: no-repeat; /* Mencegah gambar berulang jika ukurannya kecil */
  background-color: #cccccc; /* Warna fallback jika gambar gagal dimuat */
  padding: 20px; /* Padding tetap ada */
}

.login-container {
  width: 100%;
  max-width: 420px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Animasi saat muncul */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeInScaleUp 0.6s ease-out forwards;
}

@keyframes fadeInScaleUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.login-form .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 0.9em;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9em;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px; /* Padding kiri untuk ikon */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95em;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.input-group input::placeholder {
  color: #aaa;
}

.input-group .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  cursor: pointer;
  font-size: 1em;
}

.input-group .toggle-password:hover {
  color: #764ba2;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.85em;
}

.options .remember-me {
  display: flex;
  align-items: center;
  color: #555;
  cursor: pointer;
}

.options .remember-me input {
  margin-right: 8px;
  accent-color: #764ba2; /* Warna checkbox */
}

.options .forgot-password {
  color: #764ba2;
  text-decoration: none;
}

.options .forgot-password:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  margin-bottom: 25px;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-login:active {
  transform: scale(0.98); /* Efek klik */
}

.error-message {
  color: #dc3545;
  text-align: center;
  font-size: 0.85em;
  margin-top: 15px;
  min-height: 1.2em; /* Sisakan ruang agar layout tidak bergeser */
}
.bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.3em;
  color: #1a472a;
  margin-bottom: 15px;
  text-align: center;
}

.login-form h2 {
  color: #1a472a;
}

.btn-login {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.input-group input:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.input-group .toggle-password:hover {
  color: #27ae60;
}

.options .forgot-password {
  color: #27ae60;
}
