@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

/* Reset */
body {
  font-family: "Inter", sans-serif;
  background-color: #f5f5f5;
}

/* Wrapper */
.login-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  background: url("../images/il_bg_login.svg") center/cover no-repeat;
}

/* Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.6s ease;
}

/* Logo */
.logo {
  max-width: 140px;
}

/* Inputs */
.input-custom {
  border-radius: 50px;
  padding: 14px 20px;
  background: #f1f3f5;
  border: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input-custom:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 116, 205, 0.15);
}

/* Wrapper icon di dalam input */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  font-size: 18px;
  transition: 0.3s;
}

.toggle-password:hover {
  color: #0d6efd;
}

/* Tambah padding kanan supaya teks tidak nabrak icon */
#password {
  padding-right: 50px;
}

/* Forgot link */
.forgot-link {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Button */
.btn-login {
  background-color: #0a74cd;
  color: white;
  width: 100%;
  border-radius: 50px;
  padding: 14px;
  font-weight: 600;
  font-size: 16px;
}

.btn-login:hover {
  background-color: #1e8de9;
  color: white;
  width: 100%;
  border-radius: 50px;
  padding: 14px;
  font-weight: 600;
  font-size: 16px;
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === QR SCANNER MODAL === */
.qr-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  animation: zoomFade 0.5s ease;
}

#reader video {
  width: 100% !important;
  border-radius: 20px;
}

/* Frame */
.qr-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 255, 255, 0.7);
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

/* Scan line */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #00fff7, transparent);
  animation: scanMove 2s linear infinite;
}

/* Animations */
@keyframes scanMove {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

@keyframes zoomFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal animation */
.modal.fade .modal-dialog {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}
