/* ==========================================================================
   ERA PAZARYERİ - AUTH & GİRİŞ STİLLERİ (assets/css/auth.css)
   ========================================================================== */

:root {
  --bg-main: #080c14;
  --bg-surface: #0f172a;
  --bg-card: #131d35;
  --bg-input: #0a0f1d;
  --border-color: #1e293b;
  --border-focus: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  min-height: 100vh;
}

.auth2 {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   SOL TARAF: GİRİŞ FORMU
   -------------------------------------------------------------------------- */
.auth2-form-side {
  width: 460px;
  min-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 36px;
  background: var(--bg-main);
  z-index: 2;
  flex-shrink: 0;
}

.auth2-card {
  width: 100%;
  max-width: 380px;
}

.auth2-brand {
  margin-bottom: 22px;
}

.auth2-brand img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.auth2-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.auth2-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth2-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth2-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth2-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth2-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth2-input-wrap svg.lucide-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color 0.2s;
}

.auth2-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 42px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.auth2-input:focus {
  border-color: var(--border-focus);
  background: #0d1527;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth2-input:focus ~ svg.lucide-input-icon {
  color: #60a5fa;
}

.auth2-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

.auth2-toggle:hover {
  color: #ffffff;
}

.auth2-submit {
  margin-top: 6px;
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: all 0.2s ease;
}

.auth2-submit:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.auth2-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.auth2-foot a, .auth2-field a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth2-foot a:hover, .auth2-field a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   SAĞ TARAF: VİTRİN & ENTEGRASYONLAR (TEK PARÇA, TAM OTURAN DİZAYN)
   -------------------------------------------------------------------------- */
.auth2-visual {
  flex: 1;
  width: 100%;
  background: radial-gradient(circle at 75% 25%, #172554 0%, #0b1120 60%, #060911 100%);
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  position: relative;
  overflow: hidden;
}

.auth2-visual::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* İç kapsayıcı: Boşluğu bitiren, genişleyen tek parça yapı */
.auth2-visual-inner {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.visual-badge-top {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.auth2-visual h2 {
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.auth2-visual p.visual-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Entegrasyon Logoları Izgarası */
.integration-section {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.integration-header {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.integration-header span.tag-online {
  color: #10b981;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.partner-card {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.partner-card:hover {
  border-color: #3b82f6;
  background: #0f172a;
  transform: translateY(-2px);
}

.partner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.partner-name {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
}

/* Nasıl Çalışır? (3 Adım) */
.workflow-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.workflow-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  width: 100%;
}

.workflow-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #60a5fa;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-info p {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   RESPONSIVE (MOBİL VE TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .auth2 {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .auth2-form-side {
    width: 100%;
    min-width: 100%;
    padding: 40px 24px;
  }

  .auth2-visual {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 40px 24px 60px;
  }

  .auth2-visual-inner {
    max-width: 580px;
  }
}

@media (max-width: 640px) {
  .auth2-visual h2 {
    font-size: 20px;
  }

  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}