/* ============================================================
   AUTOKANSAJA — Modern Split-Screen Auth Design System v3.0
   Hootsuite-inspired High-Conversion SaaS Layout
   ============================================================ */

:root {
  --c-bg-light: #ffffff;
  --c-surface: #ffffff;
  --c-ink: #0f172a;
  --c-muted: #64748b;
  --c-primary: #2563eb;
  --c-primary-hover: #1d4ed8;
  --c-line: #e2e8f0;
  --c-line-focus: #2563eb;
  --grad-main: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-showcase: linear-gradient(145deg, #1d4ed8 0%, #1e3a8a 40%, #0f172a 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

body.auth-saas {
  min-height: 100vh;
  margin: 0;
  color: var(--c-ink);
  background-color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Split Screen Outer Grid */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ------------------------------------------------------------
   LEFT PANEL: Form & Authentication Controls
   ------------------------------------------------------------ */
.auth-split-left {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  background-color: #ffffff;
  position: relative;
  z-index: 10;
}

.auth-split-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.auth-split-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.auth-split-form-wrap {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 24px 0;
}

.auth-split-form-wrap h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-split-form-wrap .auth-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Prominent Google One-Tap Action Button */
.google-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.google-primary-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

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

.google-icon-svg {
  width: 20px;
  height: 20px;
}

/* Elegant Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Elements */
.auth-saas .fgroup {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-saas .fgroup label {
  color: #0f172a;
  font-weight: 700;
  font-size: 13.5px;
}

.auth-saas .inp {
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14.5px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s var(--ease-out);
}

.auth-saas .inp::placeholder {
  color: #94a3b8;
}

.auth-saas .inp:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* Primary Action Button (Continue / Masuk) */
.auth-saas .btn-primary {
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.auth-saas .btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.auth-saas .btn-primary:active {
  transform: translateY(0);
}

.auth-saas .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error/Alert Message */
.auth-saas .form-err {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
  animation: errorShake 0.4s ease-in-out;
}

.hidden {
  display: none !important;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Alternative links */
.auth-split-footer-links {
  margin-top: 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}

.auth-split-footer-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-split-footer-links a:hover {
  text-decoration: underline;
}

/* Bottom Legal Strip */
.auth-split-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #94a3b8;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.auth-split-bottom a {
  color: #64748b;
  text-decoration: none;
  margin-left: 14px;
  font-weight: 600;
}

.auth-split-bottom a:hover {
  color: #0f172a;
}

/* ------------------------------------------------------------
   RIGHT PANEL: High-Impact Hero Showcase (Hootsuite Style)
   ------------------------------------------------------------ */
.auth-split-right {
  flex: 1.1;
  min-height: 100vh;
  background: var(--grad-showcase);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 54px;
  overflow: hidden;
  color: #ffffff;
}

/* Ambient Radial Glows */
.auth-split-right::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.auth-split-right::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.auth-showcase-content {
  position: relative;
  z-index: 5;
  max-width: 540px;
}

.auth-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 20px;
}

.auth-showcase-headline {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.auth-showcase-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #bfdbfe;
  margin: 0;
  font-weight: 500;
}

/* Floating Mockup Art Area */
.auth-mockup-stage {
  position: relative;
  z-index: 5;
  height: 380px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 30px;
}

/* Floating Card 1: Social Post Mockup */
.mockup-card-post {
  width: 250px;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: absolute;
  left: 20px;
  bottom: 30px;
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-out);
  animation: floatSlow 6s ease-in-out infinite alternate;
}

.mockup-card-post:hover {
  transform: rotate(0deg) scale(1.03);
}

.mockup-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mockup-post-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
}

.mockup-post-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mockup-post-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

.mockup-post-handle {
  font-size: 9.5px;
  color: #64748b;
}

.mockup-post-img {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: block;
}

.mockup-post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

/* Floating Card 2: Analytics & Heart Reaction */
.mockup-card-analytics {
  width: 180px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 230px;
  bottom: 140px;
  transform: rotate(4deg);
  animation: floatOpposite 7s ease-in-out infinite alternate;
}

.mockup-heart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.mockup-analytics-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 7px solid #e0e7ff;
  border-top-color: #2563eb;
  border-right-color: #38bdf8;
  margin: 6px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.mockup-analytics-label {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
}

/* Floating Card 3: AI Assistant 24/7 Status Pill */
.mockup-card-pill {
  position: absolute;
  left: 170px;
  bottom: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  z-index: 6;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(-3deg); }
  100% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatOpposite {
  0% { transform: translateY(0px) rotate(4deg); }
  100% { transform: translateY(-10px) rotate(6deg); }
}

/* ------------------------------------------------------------
   RESPONSIVE DESIGN (UI/UX PRO MAX MOBILE CONTRACT)
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .auth-split-right {
    display: none !important;
  }
  
  .auth-split-left {
    padding: 24px 20px;
  }

  .auth-split-form-wrap {
    padding: 16px 0;
  }

  .auth-split-form-wrap h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .auth-split-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
  
  .auth-split-bottom div {
    display: flex;
    gap: 12px;
  }

  .auth-split-bottom a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-card-post,
  .mockup-card-analytics,
  .status-dot-pulse {
    animation: none !important;
    transform: none !important;
  }
}

/* Legacy Card Layout Compatibility (e.g. lupa-password) */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: #f8fafc;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  padding: 36px 32px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 6px;
}

.auth-card p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.auth-alt a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-back {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.auth-back:hover {
  color: #0f172a;
}

/* ------------------------------------------------------------
   ENHANCED LIVELY & PRO UI/UX EXTENSIONS (UI-UX-PRO-MAX)
   ------------------------------------------------------------ */
.auth-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.auth-avatar-stack {
  display: flex;
  align-items: center;
}

.auth-avatar-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
}
.auth-avatar-item:first-child {
  margin-left: 0;
}

.auth-social-text {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-features-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.auth-feat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Platform strip on right showcase */
.auth-platform-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.auth-platform-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
}
.auth-platform-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* Stats Counter Grid on right */
.auth-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.auth-stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.2s ease;
}
.auth-stat-box:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.auth-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.auth-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #93c5fd;
  margin-top: 3px;
}

/* Live Simulation Activity Card */
.auth-live-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  padding: 18px 20px;
  color: #0f172a;
  position: relative;
  z-index: 5;
  width: 100%;
}

.auth-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.auth-live-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.auth-live-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.auth-live-item:last-child {
  margin-bottom: 0;
}
.auth-live-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.auth-live-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-live-body {
  flex: 1;
  min-width: 0;
}

.auth-live-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.auth-live-user {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.auth-live-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.auth-live-text {
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 4px;
}

.auth-live-reply {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  line-height: 1.4;
}

/* Floating Testimonial Toast */
.auth-testimonial-pill {
  position: absolute;
  right: 10px;
  bottom: -20px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
  color: #ffffff;
  max-width: 320px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: floatOpposite 6s ease-in-out infinite alternate;
}


