/* ============================================
   AHENX LOGIN V2 - SPLIT LAYOUT + SLIDER
   Modern, Minimal, Professional
   ============================================ */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #1e40af;
  --accent: #60a5fa;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

/* ============================================
   VERSION BADGE
   ============================================ */
.version-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.version-badge i {
  color: var(--primary);
  margin-right: 4px;
}

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

/* LEFT SIDE - FORM (40%) */
.split-left {
  flex: 0 0 40%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

/* RIGHT SIDE - SLIDER (60%) */
.split-right {
  flex: 0 0 60%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); /* Koyu base */
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
}

/* ============================================
   FORM WRAPPER
   ============================================ */
.form-wrapper {
  width: 100%;
  max-width: 420px;
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   BRAND
   ============================================ */
.brand {
  margin-bottom: 48px;
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 22px;
  font-weight: 800;
  border-radius: 16px;
  letter-spacing: -1px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.brand-text {
  flex: 1;
  text-align: left;
}

.brand h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.brand p {
  font-size: 15px;
  color: var(--gray);
  font-weight: 400;
  margin: 0;
}

/* ============================================
   FLOATING LABEL INPUTS
   ============================================ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 20px 50px 8px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Floating Label */
.floating-label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--gray);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: var(--white);
  padding: 0 4px;
}

/* Active State (Float Up) */
.input-group input:focus ~ .floating-label,
.input-group input:not(:placeholder-shown) ~ .floating-label {
  top: -1px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  transform: translateY(0);
}

/* Input Icon */
.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 16px;
  transition: color 0.3s;
  z-index: 1;
}

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

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-size: 16px;
  padding: 8px;
  transition: color 0.2s;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--primary);
}

/* ============================================
   FORM EXTRAS (Remember Me)
   ============================================ */
.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

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

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

/* Loading Spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-btn.loading .spinner {
  display: block;
}

.submit-btn.loading .btn-text {
  display: none;
}

/* ============================================
   FORM FOOTER
   ============================================ */
.form-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}

.form-footer i {
  color: var(--success);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInDown 0.3s;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.alert i {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
  width: 20px;
  height: 20px;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================
   SLIDER
   ============================================ */
.slider-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Default */
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide-specific gradients (data-slide attribute ile değişecek) */
.slider-container[data-slide="0"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green - WhatsApp */
}

.slider-container[data-slide="1"] {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); /* Pink - Instagram */
}

.slider-container[data-slide="2"] {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); /* Purple - AI */
}

.slider-container[data-slide="3"] {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Orange - Analytics */
}

.slider-container[data-slide="4"] {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* Blue - Team */
}

.slider-container[data-slide="5"] {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); /* Red - Notifications */
}

.slider-container[data-slide="6"] {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); /* Cyan - Media */
}

.slider-container[data-slide="7"] {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); /* Teal - Translation */
}

.slider-container[data-slide="8"] {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); /* Indigo - Security */
}

.slider-container[data-slide="9"] {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); /* Yellow - Performance */
}

/* Animated background shapes */
.slider-container::before,
.slider-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: float 25s infinite ease-in-out;
  z-index: 0;
}

.slider-container::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
}

.slider-container::after {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -80px;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.slider-wrapper {
  width: 100%;
  max-width: 650px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.slide {
  display: none;
  animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.slide-image {
  width: 100%;
  height: 380px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  background-size: cover;
  background-position: center;
}

/* Overlay for better text readability */
.slide-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
}

.slide-image:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Photo slide - farklı stil */
.slide-image.has-photo {
  padding: 0;
  background-color: #1e293b;
}

.slide-image.has-photo .slide-icon,
.slide-image.has-photo .feature-badge {
  z-index: 1;
  position: relative;
}

/* Real photo styling */
.slide-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Icon container */
.slide-icon {
  font-size: 120px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: iconFloat 3s ease-in-out infinite;
  z-index: 1;
  position: relative;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

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

/* Feature badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: #1e293b;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1;
  position: relative;
}

.feature-badge i {
  font-size: 14px;
  color: #f59e0b; /* Gold star */
}

.slide-content {
  color: white;
  text-align: center;
}

.slide-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
}

.slide-content p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.98;
  max-width: 580px;
  margin: 0 auto 16px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.2);
  font-weight: 400;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-item i {
  font-size: 12px;
  color: #10b981;
}

/* ============================================
   SLIDER CONTROLS
   ============================================ */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.slider-nav {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
}

.slider-nav:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .split-left {
    flex: 0 0 45%;
  }

  .split-right {
    flex: 0 0 55%;
  }

  .slider-container {
    padding: 40px;
  }

  .slide-image {
    height: 320px;
    padding: 30px;
  }

  .slide-icon {
    font-size: 90px;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .slide-content p {
    font-size: 15px;
  }

  .feature-list {
    gap: 8px;
  }

  .feature-item {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }

  .split-left {
    flex: 1 1 auto;
    min-height: 100vh;
  }

  .split-right {
    display: none; /* Mobilde slider gizle */
  }

  .form-wrapper {
    max-width: 100%;
  }

  .version-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 5px 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .brand-content {
    gap: 16px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .brand p {
    font-size: 13px;
  }

  .input-group input {
    height: 52px;
    font-size: 14px;
  }

  .submit-btn {
    height: 52px;
    font-size: 15px;
  }
}

