/* ===== BASE STYLES ===== */
:root {
  --primary: #8b5cf6;
  --secondary: #ec4899;
  --dark: #1f2937;
  --darker: #111827;
  --light: #f3f4f6;
  --text: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVIGATION ===== */
nav {
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav .menu {
  display: flex;
  gap: 15px;
}

nav .menu-item {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

nav .menu-item:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

nav .menu-item i {
  font-size: 1rem;
}

/* ===== GLASS EFFECT ===== */
.glass {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== LOGIN FORM ===== */
.login-container {
  max-width: 450px;
  margin: 120px auto 40px;
  padding: 30px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header i {
  font-size: 4rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-header p {
  color: #9ca3af;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: black;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.bypass-info {
  margin-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.bypass-info p {
  margin-bottom: 8px;
}

.bypass-code {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  color: #34d399;
  margin-bottom: 10px;
}

.demo-credentials {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #1e293b, #334155);
  max-width: 600px;
  margin: 40px auto;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.8rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close {
  font-size: 1.8rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: white;
}

.modal-body {
  color: #d1d5db;
}

.modal-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.modal-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.modal-section p {
  margin-bottom: 10px;
}

.qris-container {
  text-align: center;
  margin: 20px 0;
}

.qris-container img {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.telegram-btn {
  background: #0088cc;
  color: white;
}

.telegram-btn:hover {
  background: #0077b5;
  transform: translateY(-2px);
}

.message-template {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  color: #34d399;
  margin: 10px 0;
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  color: #fca5a5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Navigation adjustments */
  nav {
    padding: 10px 0;
  }
  
  nav .logo {
    font-size: 1.2rem;
  }
  
  nav .menu {
    gap: 8px;
  }
  
  nav .menu-item {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  nav .menu-item i {
    font-size: 0.9rem;
  }
  
  /* Login form adjustments */
  .login-container {
    margin: 100px auto 30px;
    padding: 25px 20px;
  }
  
  .login-header i {
    font-size: 3.5rem;
  }
  
  .login-header h1 {
    font-size: 1.8rem;
  }
  
  .form-group input {
    padding: 10px 12px;
  }
  
  .btn {
    padding: 10px;
  }
  
  /* Modal adjustments */
  .modal-content {
    margin: 20px auto;
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .close {
    font-size: 1.5rem;
  }
  
  .qris-container img {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  /* Smaller mobile adjustments */
  .container {
    padding: 0 15px;
  }
  
  nav .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .login-container {
    padding: 20px 15px;
  }
  
  .login-header i {
    font-size: 3rem;
  }
  
  .login-header h1 {
    font-size: 1.6rem;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
}

/* ===== DARK MODE OPTIMIZATION ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
  }
  
  .glass {
    background: rgba(15, 23, 42, 0.8);
  }
  
  .modal-content {
    background: linear-gradient(135deg, #0f172a, #1e293b);
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .glass {
    border: 2px solid white;
  }
  
  .form-group input {
    border: 2px solid white;
  }
  
  .btn {
    border: 2px solid white;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}