
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 15px 25px;
}
.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 0 15px; /* default padding untuk mobile */
}
.logo-box {
  margin-bottom: -40px;
  animation: bounceIn 1.5s ease;
}
.logo-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Animasi zoom lembut */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 50px 30px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  color: #fff;

  /* Animasi scale-in */
  animation: scaleIn 0.6s ease-out;
}

/* Media query untuk skrin besar (hilangkan extra padding) */
@media (min-width: 768px) {
  .login-container {
      padding: 0;
  }
}
.login-card h3 {
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}
.login-card p {
  text-align: center;
  font-size: 0.9rem;
  color: #ddd;
}
.form-control {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
}
.form-control::placeholder {
  color: #ddd;
}
.btn-login {
  width: 100%;
  border: none;
}
.input-group-text {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
}
.extra-links {
  text-align: center;
  margin-top: 15px;
}
.extra-links a {
  color: #0d6efd;
  text-decoration: none;
}
.extra-links a:hover {
  text-decoration: underline;
}
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/*modal untuk error*/
.modal {
  text-align: center;
}
@media screen and (min-device-width: 768px) {
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
}