/* ========================================================
   İletiCRM LOGIN V3 - MODERN & CLEAN SPLIT LAYOUT
   ======================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
}

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

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--slate-50);
  color: var(--dark);
  overflow: hidden;
}

/* ============================================
   VERSION BADGE
   ============================================ */
.version-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
}
.version-badge i {
  color: #818cf8;
}

/* ============================================
   SPLIT CONTAINER
   ============================================ */
.split-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* LEFT SIDE - FORM (42%) */
.split-left {
  flex: 0 0 42%;
  min-width: 440px;
  max-width: 560px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0,0,0,0.03);
  z-index: 10;
}

/* RIGHT SIDE - SLIDER (58%) */
.split-right {
  flex: 1;
  background: radial-gradient(circle at 70% 30%, #1e1b4b 0%, #0f172a 60%, #030712 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   FORM WRAPPER
   ============================================ */
.form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  padding: 20px 0;
}

/* ============================================
   BRAND HEADER
   ============================================ */
.brand {
  margin-bottom: 32px;
}
.brand-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  font-size: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.brand-text h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 0;
}
.brand-text p {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Alert Box */
.login-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.login-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.login-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ============================================
   FORM INPUTS & CONTROLS
   ============================================ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input {
  width: 100%;
  height: 52px;
  line-height: 52px;
  padding: 0 48px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--slate-50);
  color: var(--dark);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-group input::placeholder {
  color: var(--slate-400);
  font-weight: 400;
}

.input-group input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s;
}

.input-group input:focus ~ .input-icon {
  color: var(--primary);
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.password-toggle i {
  pointer-events: none;
  font-size: 16px;
  transition: color 0.15s ease;
}
.password-toggle:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}
.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-top: -4px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  margin-top: 6px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Signup CTA Box */
.signup-cta-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: 12px;
  text-align: center;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signup-cta-box span {
  color: var(--slate-500);
}
.signup-cta-btn {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.signup-cta-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ============================================
   STICKY FOOTER LINKS
   ============================================ */
.footer-links {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-400);
}
.footer-links a {
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-links .dot {
  color: var(--slate-200);
}

/* ============================================
   RIGHT PANEL: 3-SLIDE CAROUSEL
   ============================================ */
.carousel-container {
  width: 100%;
  max-width: 580px;
  padding: 40px;
  position: relative;
  z-index: 5;
}

.showcase-slide {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.showcase-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Visual Mockups */
.slide-visual {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.visual-circle-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
}
.visual-circle-glow.bg-emerald {
  background: #10b981;
}
.visual-circle-glow.bg-purple {
  background: #a855f7;
}
.visual-circle-glow.bg-indigo {
  background: #6366f1;
}

/* Slide 1 Mockup: Channels Bubble List */
.channels-preview-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.channel-bubble {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.channel-bubble:hover {
  transform: translateX(6px);
}
.channel-bubble i {
  font-size: 24px;
  width: 32px;
  text-align: center;
}
.wa-bubble i { color: #25d366; }
.ig-bubble i { color: #f43f5e; }
.fb-bubble i { color: #3b82f6; }

.bubble-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.bubble-info small {
  font-size: 12px;
  color: #94a3b8;
}
.bubble-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: auto;
}
.bubble-status.online {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Slide 2 Mockup: AI Chat Preview */
.ai-bot-preview-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.ai-header strong {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
}
.ai-live-badge {
  font-size: 11px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-live-badge i { font-size: 6px; }

.ai-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.ai-chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  max-width: 88%;
}
.ai-chat-msg.incoming {
  background: #334155;
  color: #f8fafc;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.ai-chat-msg.outgoing {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Slide 3 Mockup: Kanban Mini Columns */
.crm-preview-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}
.kanban-mini-columns {
  display: flex;
  gap: 10px;
}
.kanban-mini-col {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
}
.mini-col-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-col-count {
  background: #334155;
  color: #cbd5e1;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}
.mini-lead-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-lead-card.active {
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.mini-lead-card.won {
  border-color: #10b981;
}
.lead-name {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}
.lead-val {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

/* Slide Content Typography */
.slide-content {
  text-align: left;
}
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.slide-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.slide-content p {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature-tags span i {
  color: #818cf8;
}

/* Controls (Dots & Arrows) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot-btn.active {
  width: 32px;
  background: #6366f1;
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}
.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.arrow-btn:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

/* ============================================
   MODALS (FORGOT PASSWORD & 2FA)
   ============================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-header {
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border-bottom: 1px solid var(--slate-100);
}
.modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.auth-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.auth-modal-header p {
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 2px;
}
.auth-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--slate-400);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.auth-modal-close:hover {
  background: var(--slate-100);
  color: var(--dark);
}

.auth-modal-body {
  padding: 24px;
}

.input-hint {
  font-size: 12.5px;
  color: var(--slate-500);
  margin: 10px 0 18px 0;
  line-height: 1.5;
}

.code-info-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.4;
}

.code-resend-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 18px 0;
  font-size: 12.5px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.btn-link:hover {
  text-decoration: underline;
}

.success-icon {
  font-size: 56px;
  color: var(--success);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .split-container {
    flex-direction: column;
  }
  .split-left {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
    padding: 32px 24px;
  }
  .split-right {
    display: none;
  }
}
