﻿/* ═══════════════════════════════════════════
   🔐 AUTH — Login / Register / Business Auth
   Sol panel: tema uyumlu + harita + network
   ═══════════════════════════════════════════ */

.auth-section {
  min-height: calc(100vh - var(--header-height));
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  min-height: 620px;
}

/* ═══ SOL: BRAND PANEL — Tema uyumlu ═══ */
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border);
  isolation: isolate;
}

/* İçe doğru kırmızı glow — sol üst */
.auth-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 30, 45, 0.14) 0%,
    rgba(185, 28, 28, 0.06) 35%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* İçe doğru kırmızı glow — sağ alt */
.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(127, 29, 45, 0.12) 0%,
    rgba(185, 28, 28, 0.04) 40%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* 1. Harita çizgileri */
.auth-map-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

.auth-map-lines svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 2. Işık halkaları */
.auth-glow-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.auth-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 95, 0.12);
  background: radial-gradient(
    circle at center,
    rgba(255, 30, 45, 0.06) 0%,
    transparent 70%
  );
}

.auth-ring.ring-1 {
  width: 260px;
  height: 260px;
  border-color: rgba(255, 90, 95, 0.18);
}

.auth-ring.ring-2 {
  width: 420px;
  height: 420px;
  border-color: rgba(255, 90, 95, 0.1);
}

.auth-ring.ring-3 {
  width: 580px;
  height: 580px;
  border-color: rgba(255, 90, 95, 0.05);
}

/* 3. Network çizgileri (logo → pinler) */
.auth-network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

/* 4. Logo merkezi */
.auth-logo-center {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(255, 30, 45, 0.4) 0%,
    rgba(185, 28, 28, 0.18) 35%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  animation: authGlowPulse 4s ease-in-out infinite;
}

@keyframes authGlowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.auth-brand-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(255, 30, 45, 0.5));
  z-index: 6;
  position: relative;
}

/* 5. Konum pinleri (10 adet) */
.auth-pin {
  position: absolute;
  color: #FF5A5F;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(255, 30, 45, 0.6));
  transform: translate(-50%, -100%);
}

.auth-pin svg {
  width: 100%;
  height: 100%;
}

.auth-pin.pin-1 {
  top: 19%;
  left: 13%;
  width: 28px;
  height: 28px;
  animation: authPinPulse 3s ease-in-out infinite 0s;
}

.auth-pin.pin-2 {
  top: 22%;
  left: 87%;
  width: 24px;
  height: 24px;
  opacity: 0.9;
  animation: authPinPulse 3s ease-in-out infinite 0.4s;
}

.auth-pin.pin-3 {
  top: 48%;
  left: 10%;
  width: 22px;
  height: 22px;
  opacity: 0.8;
  animation: authPinPulse 3s ease-in-out infinite 0.8s;
}

.auth-pin.pin-4 {
  top: 51%;
  left: 90%;
  width: 26px;
  height: 26px;
  animation: authPinPulse 3s ease-in-out infinite 1.2s;
}

.auth-pin.pin-5 {
  top: 80%;
  left: 20%;
  width: 24px;
  height: 24px;
  opacity: 0.85;
  animation: authPinPulse 3s ease-in-out infinite 1.6s;
}

.auth-pin.pin-6 {
  top: 84%;
  left: 80%;
  width: 22px;
  height: 22px;
  animation: authPinPulse 3s ease-in-out infinite 2s;
}

.auth-pin.pin-7 {
  top: 93%;
  left: 30%;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  animation: authPinPulse 3s ease-in-out infinite 2.4s;
}

.auth-pin.pin-8 {
  top: 95%;
  left: 70%;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  animation: authPinPulse 3s ease-in-out infinite 2.8s;
}

.auth-pin.pin-9 {
  top: 32%;
  left: 23%;
  width: 18px;
  height: 18px;
  opacity: 0.6;
  animation: authPinPulse 3s ease-in-out infinite 3.2s;
}

.auth-pin.pin-10 {
  top: 35%;
  left: 77%;
  width: 18px;
  height: 18px;
  opacity: 0.6;
  animation: authPinPulse 3s ease-in-out infinite 3.6s;
}

@keyframes authPinPulse {
  0%, 100% { transform: translate(-50%, -100%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -100%) scale(1.2); opacity: 1; }
}

/* 6. İşletme kartları */
.auth-biz-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 4;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 90, 95, 0.08) inset;
  min-width: 180px;
  animation: authBizFloat 6s ease-in-out infinite;
}

.biz-1 { top: 14%; left: 4%; animation-delay: 0s; }
.biz-2 { top: 70%; right: 4%; animation-delay: 2s; }
.biz-3 { bottom: 6%; left: 12%; animation-delay: 4s; }

@keyframes authBizFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.biz-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 30, 45, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF5A5F;
  flex-shrink: 0;
}

.biz-icon svg {
  width: 16px;
  height: 16px;
}

.biz-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.biz-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.biz-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.biz-cat {
  color: var(--neon-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 9.5px;
  font-weight: 700;
}

.biz-dot {
  color: var(--text-hint);
}

.biz-star {
  color: var(--premium-gold);
  font-weight: 700;
}

.biz-open {
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

/* ═══ SAĞ: FORM ═══ */
.auth-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 30, 45, 0.04) inset;
}

/* Logo */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Başlık */
.auth-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

/* ═══ FORM ═══ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-hint);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}

.auth-input::placeholder {
  color: var(--text-hint);
}

.auth-input:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 0 3px rgba(255, 30, 45, 0.12);
}

.auth-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Şifre göster/gizle */
.auth-input-wrapper:has(.auth-password-toggle) .auth-input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-hint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.auth-password-toggle:hover {
  color: var(--neon-red);
  background: rgba(255, 30, 45, 0.08);
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* Hata */
.auth-error {
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Şifremi unuttum */
.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-link {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--neon-red);
}

/* Submit butonu */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(255, 30, 45, 0.3);
  margin-top: 8px;
  outline: none;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 30, 45, 0.45);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--neon-red);
  outline-offset: 3px;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-submit-spinner svg {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-divider span {
  display: inline-block;
  padding: 0 12px;
  background: var(--card);
  color: var(--text-hint);
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

/* İşletme girişi */
.auth-business-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.auth-business-link:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 30, 45, 0.04);
}

.auth-business-link svg {
  color: currentColor;
}

/* Kayıt linki */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.auth-link-strong {
  color: var(--neon-red);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--transition);
}

.auth-link-strong:hover {
  color: var(--live-red);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .auth-biz-card.biz-3 { display: none; }
}

@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    max-width: 540px;
  }

  .auth-visual {
    display: none;
  }

  .auth-section {
    padding: 24px 0;
  }
}

@media (max-width: 640px) {
  .auth-container {
    padding: 0 var(--space-lg);
  }

  .auth-form-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .auth-logo-img {
    height: 42px;
  }

  .auth-title {
    font-size: 21px;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .auth-submit {
    height: 48px;
  }
}

/* ═══════════════════════════════════════════
   ♿ PREFERS-REDUCED-MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .auth-submit,
  .auth-password-toggle,
  .auth-business-link,
  .auth-input {
    transition: none;
  }

  .auth-submit-spinner svg {
    animation: none;
  }

  .auth-logo-glow,
  .auth-pin,
  .auth-biz-card {
    animation: none;
  }
}
/* ═══════════════════════════════════════════
   🏢 BUSINESS AUTH — Tab + Step
   ═══════════════════════════════════════════ */

/* Tab bar */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 30, 45, 0.3);
}

/* Form content (flex column) */
.auth-form-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step indicator */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.auth-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-hint);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.auth-step.active .auth-step-num {
  background: var(--primary-gradient);
  border-color: var(--neon-red);
  color: #FFFFFF;
}

.auth-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 0.3px;
}

.auth-step.active .auth-step-label {
  color: var(--text-primary);
}

.auth-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 60px;
}

/* Row (2 sütun) */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Buttons row (Geri + İleri) */
.auth-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.auth-buttons-row .auth-submit {
  flex: 1;
}

.auth-submit-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: none;
  border: 1.5px solid var(--border);
}

.auth-submit-secondary:hover:not(:disabled) {
  background: var(--card);
  border-color: var(--neon-red);
  color: var(--neon-red);
  transform: none;
  box-shadow: none;
}

/* Select (auth-input olarak) */
select.auth-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* Responsive — mobile */
@media (max-width: 640px) {
  .auth-row {
    grid-template-columns: 1fr;
  }

  .auth-buttons-row {
    flex-direction: column;
  }
}
/* ═══ BUSINESS REGISTER — Harita & Konum ═══ */

.auth-container-narrow {
  max-width: 1100px;
}

.biz-map {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--card);
}

.biz-map .leaflet-container {
  background: var(--card);
}

.biz-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.biz-locate-btn:hover:not(:disabled) {
  border-color: var(--neon-red);
  color: var(--neon-red);
}

.biz-locate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.biz-coords {
  font-size: 12px;
  color: var(--text-hint);
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-family: monospace;
}

.biz-coords.has-coords {
  color: var(--neon-red);
  background: rgba(255, 30, 45, 0.08);
}

.auth-label-hint {
  font-size: 11px;
  color: var(--text-hint);
  font-weight: 400;
  margin-left: 4px;
}

/* Leaflet pin özel stil */
.custom-pin {
  background: transparent !important;
  border: none !important;
}

.custom-pin .pin-inner {
  filter: drop-shadow(0 2px 6px rgba(255, 30, 45, 0.5));
  animation: pinBounce 0.3s ease;
}

@keyframes pinBounce {
  0% { transform: scale(0.5) translateY(-10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Spinner inline */
.spinner-inline {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Leaflet kontrol stilleri (dark tema) */
.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-secondary) !important;
}

.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: var(--text-secondary) !important;
  font-size: 10px;
}

.leaflet-control-attribution a {
  color: var(--neon-red) !important;
}

/* Mobil */
@media (max-width: 640px) {
  .biz-map {
    height: 200px;
  }
  .auth-container-narrow {
    max-width: 100%;
  }
}