/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   BACKGROUND
========================= */
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2a66, #5a1dbb); /* biru tua → ungu */
  background-attachment: fixed;
  overflow: hidden;
}

/* efek shape lembut di background */
body::before, body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: float 8s infinite ease-in-out alternate;
}

body::before {
  width: 180px;
  height: 180px;
  top: 15%;
  left: 10%;
}

body::after {
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(20px); }
}

/* =========================
   LOGIN CONTAINER
========================= */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   GREETING TITLE
========================= */
#greeting {
  color: #3a1b9c;
  margin-bottom: 26px;
  font-weight: 600;
  font-size: 1.5rem;
  opacity: 0;
  animation: greetIn 1s ease forwards;
}

@keyframes greetIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   INPUT FIELDS
========================= */
.input-group {
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background-color: #fafafa;
  transition: 0.3s ease;
}

.input-group input:hover {
  background-color: #f0f0ff;
}

.input-group input:focus {
  border-color: #5a1dbb;
  box-shadow: 0 0 0 3px rgba(90, 29, 187, 0.2);
}

/* =========================
   BUTTON
========================= */
.btn-login {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a2a66, #5a1dbb);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background: linear-gradient(90deg, #071d48, #49179a);
  transform: translateY(-1px);
}



/* =========================
   ERROR MESSAGE
========================= */
.alert {
  background: #fde8e8;
  border: 1px solid #f5b5b5;
  color: #7f1d1d;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  animation: fadeInAlert 0.3s ease;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 520px) {
  .login-box {
    padding: 32px 24px;
  }
  #greeting {
    font-size: 1.3rem;
    margin-bottom: 22px;
  }
}
