/* assets/css/auth.css */

.auth-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* ============ Container ============ */
.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.auth-single .auth-right {
  max-width: 480px;
  margin: auto;
  padding: 2rem;
}

/* ============ Left Panel ============ */
.auth-left {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #0F1117 0%, #1a1630 50%, #1C1F2E 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

/* Brand */
.auth-brand { text-align: center; z-index: 1; margin-bottom: 2rem; }
.brand-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.brand-name {
  font-family: 'Orbitron', 'Comic Sans MS', cursive;
  font-size: 2.5rem; font-weight: 900;
  color: var(--text);
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent-2), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tagline { color: var(--subtext); font-size: 0.9rem; margin-top: 0.25rem; }

/* Illustration */
.auth-illustration {
  position: relative;
  width: 260px; height: 200px;
  margin: 1rem auto;
  z-index: 1;
}
.float-card {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  animation: floatCard 4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.fc-1 { top:0; left:20px; color:#1877F2; animation-delay:0s; }
.fc-2 { top:0; right:20px; color:#E1306C; animation-delay:0.6s; }
.fc-3 { top:70px; left:0; color:#FF0000; animation-delay:1.2s; }
.fc-4 { top:70px; right:0; color:#E7E9EA; animation-delay:1.8s; }
.fc-5 { bottom:0; left:50%; transform:translateX(-50%); color:#E8E8F0; animation-delay:2.4s; }

.central-chart {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.mini-chart { width: 100%; height: 100%; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Stats */
.auth-stats {
  display: flex; gap: 2rem; z-index: 1; margin-top: 1.5rem;
}
.stat-item { text-align: center; }
.stat-val { display: block; font-size: 1.5rem; font-weight: 900; color: var(--accent-2); }
.stat-lbl { font-size: 0.75rem; color: var(--subtext); }

/* ============ Right Panel ============ */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-header h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.auth-header p  { color: var(--subtext); font-size: 0.9rem; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--subtext); font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.back-link:hover { color: var(--accent); }

.link-forgot { font-size: 0.82rem; color: var(--accent); }
.link-forgot:hover { color: var(--accent-2); }

.auth-footer {
  margin-top: 1.5rem;
  color: var(--subtext);
  font-size: 0.78rem;
  text-align: center;
}

/* ============ Responsiveness ============ */
@media (max-width: 900px) {
  .auth-body {
    overflow-y: auto;
  }
  .auth-container {
    flex-direction: column;
  }
  .auth-left {
    flex: none;
    padding: 2.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .auth-left::before, .auth-left::after {
    display: none; /* Sembunyikan efek glow besar di mobile agar tidak mengganggu layout */
  }
  .auth-right {
    flex: 1;
    padding: 2rem 1rem;
  }
  .brand-name {
    font-size: 2rem;
  }
  .auth-illustration {
    transform: scale(0.85);
    margin: 0.5rem auto;
  }
  .auth-stats {
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
}

/* ============ Animations & Interactions ============ */

/* 1. Login Form Entrance Animation */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-card {
  opacity: 0;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-illustration {
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Feature Icons Float Animation */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); color: var(--accent-2); }
  50% { transform: translateY(-5px); color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
}

.stat-val i {
  display: inline-block;
  animation: floatIcon 3.5s infinite ease-in-out;
  color: var(--accent-2);
  will-change: transform, color;
}
.stat-item:nth-child(2) .stat-val i { animation-delay: 1s; }
.stat-item:nth-child(3) .stat-val i { animation-delay: 2s; }

/* 3. Success Login Overlay */
.success-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 17, 23, 0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}
.success-content {
  text-align: center;
  background: var(--surface);
  padding: 3rem 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 175, 125, 0.3);
  box-shadow: 0 10px 40px rgba(76, 175, 125, 0.15);
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-icon {
  font-size: 5rem;
  color: #4CAF7D;
  margin-bottom: 1.5rem;
  animation: popScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-content h2 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #E8E8F0; }
.success-content p { color: var(--subtext); font-size: 0.95rem; }

@keyframes popIn { 
  0% { opacity: 0; transform: translateY(20px) scale(0.95); } 
  100% { opacity: 1; transform: translateY(0) scale(1); } 
}
@keyframes popScale { 
  0% { transform: scale(0); } 
  60% { transform: scale(1.2); } 
  100% { transform: scale(1); } 
}
