/* ══════════════════════════════════════════
   VEM ENGAJAR — Auth Pages (Login/Register)
   ══════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

/* Decorative background */
.auth-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Left panel - Branding */
.auth-branding {
  flex: 1;
  background: linear-gradient(135deg, #059669 0%, #10B981 30%, #34D399 60%, #0D9488 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  color: white;
}

.auth-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-branding .brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.auth-branding .brand-logo-auth {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.auth-branding h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.auth-branding p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
}

.auth-branding .features-list {
  list-style: none;
  margin-top: 32px;
  text-align: left;
}

.auth-branding .features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  opacity: 0.95;
}

.auth-branding .features-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Floating shapes */
.auth-branding .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: float 6s ease-in-out infinite;
}

.auth-branding .shape-1 { width: 200px; height: 200px; top: -50px; left: -50px; animation-delay: 0s; }
.auth-branding .shape-2 { width: 150px; height: 150px; bottom: -30px; right: -30px; animation-delay: 2s; }
.auth-branding .shape-3 { width: 80px; height: 80px; top: 30%; right: 10%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Right panel - Form */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 32px;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.auth-form-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-tab:hover {
  color: var(--gray-700);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.role-option {
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  background: var(--white);
}

.role-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg-light);
}

.role-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg-light);
}

.role-option .role-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.role-option .role-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.role-option .role-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Auth footer link */
.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer-text a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .auth-branding {
    display: none;
  }

  .auth-form-panel {
    max-width: 100%;
    flex: 1;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 24px 20px;
  }

  .auth-form-title {
    font-size: 1.5rem;
  }
}
