/* ========== STYLE LOGIN MOBILE DENGAN ANIMASI & EFEK KEREN + FOOTER RAPI ========== */
@media (max-width: 768px) {
   body {
      background: linear-gradient(135deg, #1e3c72, #2a5298);
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
      padding: 0;
      overflow: hidden;
      position: relative;
   }

   /* 🔹 Efek gradasi lembut bergerak */
   body::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle at center, #2a5298 0%, #1e3c72 100%);
      animation: bgMove 10s linear infinite alternate;
      z-index: 0;
      opacity: 0.8;
   }

   @keyframes bgMove {
      0% {
         transform: translate(0, 0) scale(1);
      }

      100% {
         transform: translate(10%, 10%) scale(1.1);
      }
   }

   .auth-main {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
   }

   .auth-wrapper.v3 {
      width: 90%;
      max-width: 380px;
      animation: fadeInUp 0.8s ease-out;
   }

   @keyframes fadeInUp {
      0% {
         opacity: 0;
         transform: translateY(40px);
      }

      100% {
         opacity: 1;
         transform: translateY(0);
      }
   }

   .auth-form {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      padding: 25px;
      transform: translateY(0);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
   }

   .auth-form:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
   }

   .auth-header img {
      width: 90px !important;
      margin-bottom: 15px;
      animation: bounce 2s infinite ease-in-out;
   }

   @keyframes bounce {

      0%,
      100% {
         transform: translateY(0);
      }

      50% {
         transform: translateY(-6px);
      }
   }

   h3.mb-0 {
      font-size: 1.6rem;
      font-weight: 700;
      color: #1e3c72;
   }

   .form-control {
      font-size: 0.95rem;
      padding: 11px 14px;
      border-radius: 12px;
      border: 1px solid #cdd6f3;
      transition: all 0.3s ease;
   }

   .form-control:focus {
      border-color: #2a5298;
      box-shadow: 0 0 8px rgba(42, 82, 152, 0.3);
   }

   .btn {
      border-radius: 12px;
      font-weight: 600;
      padding: 12px;
      background: linear-gradient(135deg, #1e3c72, #2a5298);
      color: #fff;
      border: none;
      transition: all 0.3s ease;
   }

   .btn:hover {
      background: linear-gradient(135deg, #2a5298, #1e3c72);
      transform: scale(1.02);
      box-shadow: 0 6px 15px rgba(42, 82, 152, 0.4);
   }

   .link-primary {
      font-size: 0.9rem;
      color: #2a5298 !important;
      transition: color 0.3s ease;
   }

   .link-primary:hover {
      color: #1e3c72 !important;
      text-decoration: underline;
   }

   .modal-dialog {
      margin: 20px;
      animation: fadeInUp 0.5s ease-out;
   }

   .modal-content {
      border-radius: 15px;
      border: none;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
   }

   /* Loader background adaptif */
   .loader-bg {
      background: #1e3c72 !important;
   }

   /* Tambah animasi masuk elemen input */
   .form-group {
      opacity: 0;
      transform: translateY(20px);
      animation: slideUp 0.6s forwards;
   }

   .form-group:nth-child(1) {
      animation-delay: 0.2s;
   }

   .form-group:nth-child(2) {
      animation-delay: 0.4s;
   }

   .form-group:nth-child(3) {
      animation-delay: 0.6s;
   }

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

   /* ========== FOOTER LOGIN MOBILE RAPI DAN ELEGAN ========== */
   .auth-footer {
      position: absolute;
      bottom: 10px;
      left: 0;
      width: 100%;
      text-align: center;
      padding: 10px 15px;
      color: #ffffff;
      font-size: 0.85rem;
      z-index: 3;
   }

   .auth-footer p {
      margin: 5px 0;
      color: #ffffff;
   }

   .auth-footer a {
      color: #f8f9fa;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
   }

   .auth-footer a:hover {
      color: #ffd700;
   }

   .auth-footer .footer-link {
      padding: 0;
      margin-top: 5px;
   }

   .auth-footer .footer-link li {
      display: inline-block;
      margin: 0 8px;
   }

   .auth-footer .footer-link a {
      font-size: 0.85rem;
      color: #f1f1f1;
   }

   .auth-footer .footer-link a:hover {
      text-decoration: underline;
      color: #ffd700;
   }

   /* Garis tipis pemisah */
   .auth-footer::before {
      content: "";
      display: block;
      width: 80%;
      height: 1px;
      background: rgba(255, 255, 255, 0.3);
      margin: 0 auto 8px auto;
   }
}