/* ==========================================================================
   İLİM KİTABEVİ - FULL-PAGE LOGIN & REGISTER STYLES (AUTH.CSS)
   Lüks Koyu Obsidian & Altın Vurgulu Split-Screen Düzen
   ========================================================================== */

:root {
  --bg-dark: #0D0F14;
  --bg-card: #151821;
  --bg-card-hover: #1A1F2C;
  --accent-gold: #E2B768;
  --accent-gold-light: #F6D69B;
  --accent-cobalt: #1F3FB0;
  --text-main: #FAF8F5;
  --text-muted: #8E95A5;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(226, 183, 104, 0.3);
  --shadow-main: 0 16px 40px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ==================== ANA DÜZEN (SPLIT SCREEN) ==================== */
.auth-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* ==================== SOL TARAF: DİNAMİK REKLAM & KİTAP VİTRİNİ ==================== */
.auth-showcase-panel {
  flex: 1.15;
  position: relative;
  background: radial-gradient(circle at 20% 30%, #171d2b 0%, #0d0f14 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
}

/* Arka plan dekoratif desenler ve ışık efektleri */
.showcase-ambient-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 183, 104, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.showcase-ambient-glow-2 {
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 63, 176, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Üst Marka Başlığı */
.showcase-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge .logo-crest {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2b768 0%, #b88628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 22px;
  color: #12100d;
  box-shadow: 0 4px 15px rgba(226, 183, 104, 0.3);
}

.brand-badge .brand-title {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFF;
}

.brand-badge .brand-tagline {
  font-size: 10px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-stat-badge {
  background: rgba(226, 183, 104, 0.12);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Vitrin Slider Alanı */
.showcase-carousel-wrapper {
  position: relative;
  z-index: 2;
  margin: auto 0;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.showcase-slide {
  display: none;
  width: 100%;
  animation: slideFadeIn 0.6s var(--ease);
}

.showcase-slide.active {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Kitap Kapağı 3D Efekti */
.slide-book-cover {
  position: relative;
  width: 200px;
  aspect-ratio: 1 / 1.45;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(226, 183, 104, 0.15);
  transform: perspective(800px) rotateY(-8deg) scale(1);
  transition: transform 0.4s var(--ease);
  background: #1a1e27;
}

.slide-book-cover:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.04);
}

.slide-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(226, 183, 104, 0.95);
  color: #12100d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Kitap Detayları */
.slide-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.slide-rating {
  font-size: 11px;
  color: #f1c40f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slide-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.25;
}

.slide-author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.slide-synopsis {
  font-size: 13px;
  color: #c1c7d0;
  line-height: 1.6;
  max-height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.slide-price-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.slide-price {
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.slide-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.slide-shipping-tag {
  background: rgba(31, 63, 176, 0.25);
  border: 1px solid rgba(31, 63, 176, 0.4);
  color: #799aff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Slider Kontrolleri (Noktalar ve Butonlar) */
.showcase-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.showcase-dots {
  display: flex;
  gap: 8px;
}

.dot-indicator {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.dot-indicator.active {
  width: 44px;
  background: var(--accent-gold);
}

.showcase-nav-btns {
  display: flex;
  gap: 8px;
}

.showcase-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.showcase-arrow:hover {
  background: var(--accent-gold);
  color: #12100d;
  border-color: var(--accent-gold);
}

/* Alt Güven & Servis Rozetleri */
.showcase-footer {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  font-size: 20px;
}

.trust-text h4 {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}

.trust-text p {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==================== SAĞ TARAF: GİRİŞ & KAYIT FORMU ==================== */
.auth-form-panel {
  flex: 0.95;
  background: #11131A;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

.form-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

/* Geri Dönüş Linki */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back-to-home:hover {
  color: var(--accent-gold);
}

/* Form Başlığı */
.auth-header-title {
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.auth-header-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Segmented Tab Switcher */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-gold-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(226, 183, 104, 0.25);
}

/* Form Alanları */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.auth-form.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.35;
}

.form-group label .label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-group label .label-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
}

.form-group label .label-required {
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 2px;
}

.badge-belgium {
  font-size: 10px;
  background: rgba(226, 183, 104, 0.12);
  color: #e2b768;
  border: 1px solid rgba(226, 183, 104, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.form-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  color: #e2b768;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 183, 104, 0.1) 0%, rgba(226, 183, 104, 0.3) 50%, rgba(226, 183, 104, 0.1) 100%);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #FFF;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.input-with-icon input:hover,
.input-with-icon select:hover {
  border-color: rgba(226, 183, 104, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  border-color: var(--accent-gold);
  background: rgba(226, 183, 104, 0.06);
  box-shadow: 0 0 0 3px rgba(226, 183, 104, 0.18);
}

.input-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-password-btn:hover {
  color: #FFF;
}

/* İki Sütunlu Grid Form Alanları */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Şifremi Unuttum ve Beni Hatırla */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.forgot-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.forgot-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Buton */
.btn-submit-auth {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: linear-gradient(135deg, #e2b768 0%, #b88628 100%);
  border: none;
  border-radius: 8px;
  color: #12100d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(226, 183, 104, 0.3);
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226, 183, 104, 0.45);
}

.btn-submit-auth:active {
  transform: translateY(0);
}

/* Bildirim Kutusu (Toast / Alert) */
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-alert.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.auth-alert.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

/* ==================== MOBİL & TABLET UYUMU ==================== */
@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-showcase-panel {
    padding: 32px 24px;
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .showcase-slide.active {
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }

  .slide-book-cover {
    width: 140px;
  }

  .slide-title {
    font-size: 20px;
  }

  .slide-synopsis {
    -webkit-line-clamp: 2;
  }

  .auth-form-panel {
    padding: 36px 20px 60px;
  }

  .showcase-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-group label {
    font-size: 12.5px;
  }
  .auth-form-panel {
    padding: 28px 16px 48px;
  }
}

@media (max-width: 576px) {
  .showcase-slide.active {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .slide-book-cover {
    margin: 0 auto;
    width: 160px;
  }

  .slide-content {
    align-items: center;
  }

  .slide-cat-row, .slide-price-bar {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .demo-btns-grid {
    grid-template-columns: 1fr;
  }

  .auth-showcase-panel {
    padding: 18px 14px;
  }

  .showcase-slider-wrapper,
  .showcase-footer {
    display: none;
  }

  .auth-form-panel {
    padding: 20px 14px 36px;
  }

  .auth-card {
    padding: 22px 16px;
  }

  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   BELÇİKA OPENSTREETMAP (OSM) ADRES DOĞRULAYICI & HARİTA STİLLERİ
   ========================================================================== */
.osm-validator-group {
  position: relative;
  margin-bottom: 16px;
}

.osm-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111520;
  border: 1px solid rgba(226, 183, 104, 0.4);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  margin-top: 4px;
}

.osm-suggest-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.osm-suggest-item:last-child {
  border-bottom: none;
}

.osm-suggest-item:hover {
  background: rgba(226, 183, 104, 0.12);
}

#osm-map-container {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Leaflet Tile Dark / Kontrast Uyum */
.leaflet-container {
  background: #0d111a !important;
  font-family: inherit !important;
}

.leaflet-control-zoom a {
  background: #151821 !important;
  color: #e2b768 !important;
  border-color: rgba(226, 183, 104, 0.3) !important;
}

.leaflet-control-zoom a:hover {
  background: #e2b768 !important;
  color: #0d121c !important;
}

.leaflet-popup-content-wrapper {
  background: #151821 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(226, 183, 104, 0.35) !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
}

.leaflet-popup-tip {
  background: #151821 !important;
}


/* ==================== KİTAPÇI PIKE PALET UYUMU (LOGIN & REGISTER) ==================== */
body {
  background-color: #FAF8F5 !important;
  color: #1A232E !important;
}
.auth-showcase-panel {
  background: radial-gradient(circle at 20% 25%, #223044 0%, #18222F 65%, #0D1520 100%) !important;
  border-right: 1px solid #E5DFD5 !important;
  color: #FAF8F5 !important;
}
.logo-crest {
  width: 38px !important;
  height: 38px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.logo-crest::after {
  display: none !important;
}
.auth-form-panel,
.auth-right-panel {
  background: #FAF8F5 !important;
  color: #1A232E !important;
}
.auth-card,
.auth-box {
  background: #FFFFFF !important;
  border: 1px solid #E5DFD5 !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(24, 34, 47, 0.06) !important;
  color: #1A232E !important;
}
.auth-tabs {
  background: #F2EFE9 !important;
  border: 1px solid #E5DFD5 !important;
  border-radius: 999px !important;
  padding: 4px !important;
}
.auth-tab {
  color: #475569 !important;
  border-radius: 999px !important;
}
.auth-tab.active {
  background: #18222F !important;
  color: #FFFFFF !important;
}
.auth-form-panel h2,
.auth-form-panel h3,
.auth-form-panel label {
  color: #1A232E !important;
}
.auth-form-panel p,
.auth-form-panel .form-subtitle,
.auth-form-panel small {
  color: #64748b !important;
}
.auth-form-panel input[type="text"],
.auth-form-panel input[type="email"],
.auth-form-panel input[type="password"],
.auth-form-panel input[type="tel"],
.auth-form-panel select {
  background: #FAF8F5 !important;
  border: 1px solid #E5DFD5 !important;
  color: #1A232E !important;
  border-radius: 10px !important;
}
.auth-form-panel input:focus {
  border-color: #18222F !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(24, 34, 47, 0.08) !important;
}
.btn-auth-submit,
.auth-submit-btn,
.auth-form-panel button[type="submit"] {
  background: #18222F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}
.btn-auth-submit:hover,
.auth-submit-btn:hover,
.auth-form-panel button[type="submit"]:hover {
  background: #0D1520 !important;
}
.auth-form-panel a {
  color: #2563EB !important;
}


/* Kontrast & Okunabilirlik Düzeltmesi */
.auth-form-panel h1,
.auth-form-panel h2,
.auth-form-panel h3,
.auth-form-panel strong {
  color: #1A232E !important;
}
.auth-tab.active,
.auth-tab.active * {
  color: #FFFFFF !important;
}
.auth-form-panel button:not([type="submit"]):not(.auth-tab) {
  color: #1A232E !important;
  background: #FFFFFF !important;
  border-color: #E5DFD5 !important;
}
.auth-form-panel button:not([type="submit"]):not(.auth-tab):hover {
  background: #F2EFE9 !important;
  border-color: #18222F !important;
}
.auth-form-panel button:not([type="submit"]):not(.auth-tab) span {
  color: #475569 !important;
}
