/* auth.css - Versi Diperbaiki */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e;
    color: #e6e6e6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }
  
  .auth-container {
    width: 100%;
    max-width: 600px;
    background-color: #16213e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    position: relative;
  }
  
  .logo {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
  }
  
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .auth-form h2 {
    color: #4d4dff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .form-group label {
    color: #aaa;
    font-size: 0.9rem;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2a3a5e;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #e6e6e6;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus {
    border-color: #4d4dff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 77, 255, 0.2);
  }
  
  .package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
  }
  
  .package-option {
    position: relative;
  }
  
  .package-option input[type="radio"] {
    opacity: 0;
    position: absolute;
  }
  
  .package-option label {
    display: block;
    height: 100%;
    padding: 20px;
    border: 2px solid #2a3a5e;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .package-option input[type="radio"]:checked + label {
    border-color: #4d4dff;
    background-color: rgba(77, 77, 255, 0.1);
    transform: translateY(-2px);
  }
  
  .package-option:hover label {
    border-color: #4d4dff;
  }
  
  .package-option h3 {
    color: #4d4dff;
    margin-bottom: 8px;
    font-size: 1.2rem;
  }
  
  .package-option p {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 12px;
  }
  
  .package-option ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .package-option li {
    font-size: 0.9rem;
    color: #aaa;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .package-option li::before {
    content: "•";
    color: #4d4dff;
  }
  
  .btn-submit {
    background-color: #4d4dff;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
  }
  
  .btn-submit:hover {
    background-color: #3a3ac7;
    transform: translateY(-2px);
  }
  
  .auth-link {
    text-align: center;
    color: #aaa;
    margin-top: 20px;
  }
  
  .auth-link a {
    color: #4d4dff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .auth-link a:hover {
    text-decoration: underline;
  }
  
  /* Loading Overlay */
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    z-index: 100;
  }
  
  .loading-content {
    text-align: center;
    padding: 30px;
    background-color: #16213e;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .loading-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  /* Responsiveness */
  @media (max-width: 768px) {
    .auth-container {
      padding: 20px;
      margin: 10px;
    }
    
    .package-options {
      grid-template-columns: 1fr;
    }
    
    .package-option label {
      padding: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .form-group input {
      padding: 10px 12px;
      font-size: 0.9rem;
    }
    
    .btn-submit {
      padding: 12px;
      font-size: 0.9rem;
    }
  }

  /* Tambahkan ini di auth.css */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  cursor: pointer;
}

.remember-me input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #4d4dff;
}

.forgot-password {
  color: #4d4dff;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Tambahan animasi */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}
}

.auth-form {
  animation: slideIn 0.5s ease-out;
}

/* Prevent zoom on click for clickable elements */
.package-option label,
.form-group input,
.btn-submit {
  touch-action: manipulation; /* Mencegah zoom saat klik di perangkat layar sentuh */
  font-size: 16px; /* Mencegah iOS zoom otomatis saat input difokuskan */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Hilangkan highlight biru di iOS */
}

/* Hindari perubahan skala tiba-tiba pada elemen */
.auth-form,
.auth-container {
  transform: translateZ(0); /* Aktifkan GPU rendering untuk stabilisasi */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

/* Tambahkan untuk input dan label yang bisa diklik */
input[type="radio"],
input[type="checkbox"],
label,
button,
a {
  user-select: none; /* Hindari seleksi teks yang memicu interaksi */
  -webkit-user-select: none;
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group input.error {
  border-color: #ef4444;
}