/* ====== RESET DASAR ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ====== LATAR BELAKANG ====== */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  background-attachment: fixed;
}

/* ====== WRAPPER LOGIN ====== */
.login-wrapper {
  background-color: #fff;
  width: 380px;
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.8s ease;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.login-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ====== LOGO (Opsional, tambahkan jika ingin pakai gambar) ====== */
.login-wrapper::before {
  content: "";
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  background: url('../img/logo.png') center/contain no-repeat;
  border-radius: 50%;
  border: 3px solid #1e3a8a;
  background-color: #f3f4f6;
}

/* ====== JUDUL ====== */
.login-wrapper h2 {
  color: #1e3a8a;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
}

/* ====== FORM ====== */
.input-group {
  text-align: left;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: #1e3a8a;
  outline: none;
  box-shadow: 0 0 6px rgba(30, 58, 138, 0.3);
}

/* ====== TOMBOL LOGIN ====== */
.btn-login {
  width: 100%;
  padding: 12px;
  background-color: #1e3a8a;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-login:hover {
  background-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ====== PESAN ERROR ====== */
.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  border: 1px solid #fecaca;
  text-align: left;
}

/* ====== FOOTER LOGIN ====== */
.login-footer {
  margin-top: 25px;
  font-size: 14px;
  color: #374151;
}

.login-footer a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ====== ANIMASI ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE (untuk HP) ====== */
@media (max-width: 480px) {
  body {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    padding: 15px;
  }

  .login-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 30px 25px;
    border-radius: 12px;
  }

  .login-wrapper h2 {
    font-size: 20px;
  }

  .input-group input {
    padding: 9px 10px;
    font-size: 13px;
  }

  .btn-login {
    padding: 10px;
  }
}
