/* ================================================================
   NÖMRƏLƏRİM — İstifadəçi Giriş / Qeydiyyat Səhifəsi
   Tam yeni dizayn | Mobil uyğun
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --pri:       #6366f1;
  --pri-d:     #4f46e5;
  --pri-l:     #ede9fe;
  --sec:       #f59e0b;
  --text:      #0f172a;
  --sub:       #64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --card:      #ffffff;
  --radius:    14px;
  --tr:        0.22s ease;
}

/* ── Reset / Base ─────────────────────────────────────────────── */
.auth-page * { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafaff 50%, #f5f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 40px;
}

/* ── Auth card ────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 980px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(99,102,241,0.10), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  min-height: 580px;
}

/* ── Left branding panel ──────────────────────────────────────── */
.auth-brand {
  width: 42%;
  background: linear-gradient(155deg, #4f46e5 0%, #6366f1 45%, #818cf8 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Decorative blobs */
.auth-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.brand-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  display: block;
}

/* Hero text */
.brand-hero {
  position: relative;
  z-index: 2;
}

.brand-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.brand-title span {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Feature list */
.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.brand-features li i {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fde68a;
  flex-shrink: 0;
}

/* Floating phone mockup */
.brand-mockup {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 110px;
  opacity: 0.12;
  z-index: 1;
}

/* ── Right form panel ─────────────────────────────────────────── */
.auth-forms {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 2px;
}

.auth-tab {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sub);
  cursor: pointer;
  transition: all var(--tr);
}

.auth-tab.active {
  background: #fff;
  color: var(--pri);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Tab panels */
.auth-panel-content { display: none; }
.auth-panel-content.active { display: block; }

/* Form heading */
.form-heading {
  margin-bottom: 24px;
}

.form-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.form-heading p {
  font-size: 0.85rem;
  color: var(--sub);
}

/* Input group */
.inp-group {
  margin-bottom: 14px;
}

.inp-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.inp-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
}

.inp-group input:focus {
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.inp-group input::placeholder { color: #94a3b8; }

/* Two-col row */
.inp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Optional label */
.inp-optional {
  font-size: 0.7rem;
  color: var(--sub);
  font-weight: 400;
}

/* Submit button */
.btn-auth {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--pri), var(--pri-d));
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr);
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(99,102,241,0.38);
}

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

/* Dealer link button */
.btn-dealer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 4px 14px rgba(15,23,42,0.2);
}

.btn-dealer:hover { box-shadow: 0 8px 22px rgba(15,23,42,0.28); }

/* Error alert */
.auth-alert {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: 9px;
  font-size: 0.82rem;
  color: #b91c1c;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-alert i { margin-top: 1px; flex-shrink: 0; }

/* Success alert */
.auth-alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #22c55e;
  color: #15803d;
}

/* Terms checkbox */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pri);
  cursor: pointer;
  flex-shrink: 0;
}

.check-row label {
  font-size: 0.78rem;
  color: var(--sub);
  cursor: pointer;
  margin: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--sub);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Dealer link section */
.dealer-link-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  border: 1px solid #ddd6fe;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dealer-link-box-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dealer-link-box-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--sub);
  line-height: 1.4;
}

.dealer-link-box-text strong {
  display: block;
  color: var(--text);
  font-size: 0.83rem;
  margin-bottom: 2px;
}

.dealer-link-box-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pri);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1.5px solid var(--pri);
  border-radius: 8px;
  transition: all var(--tr);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dealer-link-box-btn:hover {
  background: var(--pri);
  color: #fff;
}

/* ── MOBİL ────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .auth-card {
    flex-direction: column;
    border-radius: 18px;
    min-height: auto;
    max-width: 480px;
  }

  .auth-brand {
    width: 100%;
    padding: 28px 24px;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand-hero { display: none; }

  .brand-logo-icon { width: 38px; height: 38px; font-size: 1rem; }
  .brand-logo-name { font-size: 1rem; }

  .auth-forms {
    padding: 24px 22px 28px;
  }

  .inp-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 380px) {
  .auth-forms { padding: 20px 16px 24px; }
  .auth-tabs { margin-bottom: 22px; }
  .form-heading h2 { font-size: 1.15rem; }
}
