/* 🌈 LATAR BELAKANG DAN LAYOUT UTAMA */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #003366, #004b8d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0 15px; /* agar tidak mepet di layar kecil */
}

/* 🧩 KONTENER LOGIN */
.login-container {
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 25px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  animation: fadeIn 0.5s ease;
}

/* 🖼️ LOGO */
.login-container img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

/* 🔤 JUDUL */
h2 {
  margin: 0 0 18px 0;
  color: #003366;
  font-size: 1.5rem;
}

/* ✍️ INPUT FIELD */
input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.2s;
}

input:focus {
  border-color: #004b8d;
  outline: none;
}

/* 🔘 TOMBOL LOGIN */
button {
  background: #003366;
  color: #fff;
  border: none;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background: #004b8d;
}

button:active {
  transform: scale(0.98);
}

/* ⚠️ PESAN ERROR */
#msg {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

/* 🔗 LINK TAMBAHAN */
.link {
  margin-top: 14px;
  color: #004b8d;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
}

.link:hover {
  text-decoration: underline;
}

/* 🚫 UNTUK ELEMEN TERSEMBUNYI */
.hidden {
  display: none;
}

/* 🌍 RESPONSIVE UNTUK HP */
@media (max-width: 480px) {
  body {
    padding: 0 10px;
  }

  .login-container {
    padding: 20px 15px;
    border-radius: 12px;
  }

  .login-container img {
    width: 60px;
    height: 60px;
  }

  h2 {
    font-size: 1.3rem;
  }

  input {
    font-size: 15px;
    padding: 10px;
  }

  button {
    font-size: 15px;
    padding: 10px;
  }
}

/* ✨ ANIMASI HALUS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
