/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #74abe2, #5563de);
} */

body {
  display: flex;
  flex-direction: column; /* TAMBAH INI */
  justify-content: center; /* tetap center vertical */
  align-items: center;     /* center horizontal */
  height: 100vh;
  background: linear-gradient(135deg, #74abe2, #5563de);
}


/* ====== LOGO ====== */
.logo {
  width: 100%;
  display: flex;
  justify-content: center;  /* posisi horizontal tengah */
  margin-bottom: 20px;
  margin-top: -80px;
}

.logo img {
  width: 100px;   /* lebih besar sedikit jika perlu */
  display: block;
}

/* ========== CONTAINER ========== */
.login-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
}

.login-container h2 {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.login-container p {
  color: #777;
  margin-bottom: 30px;
  font-size: 14px;
}

/* ========== INPUT GROUP ========== */
.input-group {
  position: relative;
  margin-bottom: 25px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
  font-size: 15px;
}

.input-group input:focus {
  border-color: #5563de;
  box-shadow: 0 0 5px rgba(85, 99, 222, 0.3);
}

/* ========== BUTTON ========== */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #5563de, #74abe2);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #4450c0, #5e97e0);
}

/* ========== FOOTER ========== */
.footer-text {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.footer-text a {
  color: #5563de;
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .login-container h2 {
    font-size: 22px;
  }

  .btn-login {
    font-size: 15px;
  }
}

/* ========== DASHBOARD ========== */
.dashboard-container {
  width: 420px;
  min-height: 360px;
  margin: 20px auto;
  padding: 30px 25px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: "Poppins", sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.dashboard-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.dashboard-container p {
  color: #666;
  /* margin-bottom: 25px; */
  margin-top: 15px;
  font-size: 15px;
}

/* ========== BUTTON AREA ========== */
.box-mapil {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 50px;
}

/* ========== BUTTON STYLE ========== */
.box-mapil .mapil {
  width: 85%;
  height: 50px;
  background: linear-gradient(135deg, #5563de, #74abe2);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(85, 99, 222, 0.3);
}

.box-mapil .mapil:hover {
  background: linear-gradient(135deg, #4450c0, #5e97e0);
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(85, 99, 222, 0.4);
}

.box-mapil .mapil:active {
  transform: scale(0.98);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .dashboard-container {
    width: 90%;
    padding: 25px 15px;
  }

  .dashboard-container h2 {
    font-size: 1.6rem;
  }

  .box-mapil .mapil {
    font-size: 15px;
    height: 45px;
  }
}

/* ========== ANIMATION ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-container {
  animation: fadeInUp 0.6s ease both;
}

/* ====== AREA TOMBOL MATA PELAJARAN ====== */
.box-mapil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

/* Tombol menggunakan tag <a> */
.box-mapil .mapil {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 350px;
  height: 55px;
  background: linear-gradient(135deg, #5563de, #74abe2);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(85, 99, 222, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.box-mapil .mapil:hover {
  background: linear-gradient(135deg, #4450c0, #5e97e0);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(85, 99, 222, 0.4);
}

.box-mapil .mapil:active {
  transform: scale(0.97);
}

/* Tombol disabled */
.box-mapil .mapil.disabled {
  background: #ccc;
  color: #666;
  pointer-events: none;
  box-shadow: none;
}

