/* ═══════════════════════════════════════════════════
   CariTR — Auth Sayfaları v2.0 (Ultra Kurumsal)
   Login / Register / OTP Doğrulama
   ═══════════════════════════════════════════════════ */

:root {
  --auth-primary:      #1a56db;
  --auth-primary-dark: #1640b0;
  --auth-accent:       #6c63ff;
  --auth-bg-dark:      #060d1a;
  --auth-surface:      #0b1629;
  --auth-border:       rgba(255,255,255,.09);
}

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

body.auth-body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-page {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SOL PANEL — Marka / Tanıtım
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-left {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 10%,  rgba(108,99,255,.4) 0%, transparent 42%),
    radial-gradient(ellipse at 80% 90%,  rgba(26,86,219,.5)  0%, transparent 48%),
    radial-gradient(ellipse at 60% 40%,  rgba(16,185,129,.1) 0%, transparent 35%),
    linear-gradient(160deg, #060d1a 0%, #0a1628 50%, #0d1f42 100%);
  color: #fff;
  padding: 52px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

/* Dekoratif arka plan elementleri */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-orb-1 {
  width: 420px; height: 420px;
  bottom: -150px; right: -120px;
  background: radial-gradient(circle, rgba(108,99,255,.18) 0%, transparent 70%);
  animation: authOrb 12s ease-in-out infinite alternate;
}
.auth-orb-2 {
  width: 280px; height: 280px;
  top: 15%; left: -100px;
  background: radial-gradient(circle, rgba(26,86,219,.15) 0%, transparent 70%);
  animation: authOrb 16s ease-in-out infinite alternate-reverse;
}
@keyframes authOrb {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(12px, -18px); }
}

/* Logo */
.auth-logo {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
.auth-logo-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; letter-spacing: -.04em;
  box-shadow: 0 8px 28px rgba(26,86,219,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.auth-logo-text {
  font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.75) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-logo-badge {
  font-size: .62rem; font-weight: 800; background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3); color: #34d399;
  padding: 2px 7px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase;
  margin-left: 4px; -webkit-text-fill-color: #34d399;
}

/* Başlık */
.auth-hero { position: relative; z-index: 2; }
.auth-headline {
  font-size: 2.55rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -.03em; margin-bottom: 16px;
  background: linear-gradient(160deg, #fff 0%, rgba(226,232,240,.85) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-headline .hl {
  background: linear-gradient(135deg, #79b8ff 0%, #a5b4fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-sub {
  font-size: .97rem; color: rgba(226,232,240,.65); line-height: 1.7;
  max-width: 440px;
}

/* Özellik Listesi */
.auth-features {
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 2;
}
.auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
}
.auth-feature h4 { font-size: .9rem; font-weight: 700; color: #f1f5f9; margin-bottom: 3px; }
.auth-feature p  { font-size: .8rem; color: rgba(203,213,225,.6); line-height: 1.45; }

/* İstatistikler */
.auth-stats {
  display: flex; gap: 0;
  position: relative; z-index: 2;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(12px);
}
.auth-stats > div {
  flex: 1; padding: 18px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.auth-stats > div:last-child { border-right: none; }
.auth-stat-num   { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1; }
.auth-stat-label { font-size: .69rem; color: rgba(148,163,184,.8); margin-top: 5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

/* Güvenlik rozeti — sol panel alt */
.auth-left-trust {
  display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 2;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.auth-left-trust-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: .71rem; color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .02em;
}
.auth-left-trust-badge svg { opacity: .55; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SAĞ PANEL — Form
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #fff;
  position: relative;
}

/* Hafif üst çizgi */
.auth-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent));
}

.auth-card {
  width: 100%; max-width: 400px;
  position: relative;
}
.auth-card-mobile-logo { display: none; }

.auth-card h2 {
  font-size: 1.6rem; font-weight: 800; margin: 0 0 6px;
  color: #0f172a; letter-spacing: -.025em;
}
.auth-card > p.auth-card-sub {
  font-size: .87rem; color: #64748b; margin: 0 0 28px; line-height: 1.5;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM ELEMENTLERİ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-group { margin-bottom: 15px; }
.form-label {
  display: block; font-size: .78rem; font-weight: 700;
  color: #374151; margin-bottom: 6px; letter-spacing: .01em;
}

.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
  display: flex; align-items: center;
}
.auth-input-wrap .form-control { padding-left: 40px; }

.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: .9rem; color: #111827; background: #fafafa;
  transition: all .18s; font-family: inherit;
  outline: none;
}
.form-control:focus {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,86,219,.08);
}
.form-control:hover:not(:focus) { border-color: #cbd5e1; background: #fff; }
.form-control::placeholder { color: #b0bec5; }

.auth-pass-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8;
  padding: 5px; display: flex; border-radius: 7px; transition: all .15s;
}
.auth-pass-toggle:hover { color: #475569; background: #f1f5f9; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUBMIT BUTONU
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-submit-btn {
  width: 100%; padding: 13px 18px;
  border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
  color: #fff; font-size: .92rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(26,86,219,.35), inset 0 1px 0 rgba(255,255,255,.12);
  letter-spacing: .01em; font-family: inherit;
  position: relative; overflow: hidden;
}
.auth-submit-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 100%);
  pointer-events: none;
}
.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,86,219,.45), inset 0 1px 0 rgba(255,255,255,.12);
}
.auth-submit-btn:active  { transform: translateY(0); box-shadow: 0 3px 10px rgba(26,86,219,.3); }
.auth-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.auth-submit-btn .spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: authspin .65s linear infinite;
}
.auth-submit-btn.loading .spinner  { display: inline-block; }
.auth-submit-btn.loading .btn-text { opacity: .7; }
@keyframes authspin { to { transform: rotate(360deg); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AYIRICI / BAĞLANTI / FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.auth-divider span { font-size: .74rem; color: #9ca3af; font-weight: 600; }

.auth-link { text-align: center; font-size: .86rem; color: #64748b; }
.auth-link a { color: var(--auth-primary); font-weight: 700; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERT BİLDİRİMLERİ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .84rem; line-height: 1.45;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ROZET (WhatsApp 2FA vb.)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-badge-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: .76rem;
  line-height: 1.4;
}
.auth-badge-admin {
  background: rgba(26,86,219,.05); border: 1px solid rgba(26,86,219,.13); color: #1e40af;
}
.auth-badge-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TRUST BAR (güvenlik logolari sağ alt)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.auth-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .69rem; font-weight: 700;
  color: #94a3b8; letter-spacing: .02em; text-transform: uppercase;
}
.auth-trust-item svg { opacity: .5; }

/* FOOTER */
.auth-footer {
  margin-top: 22px; text-align: center; font-size: .73rem; color: #9ca3af;
  line-height: 1.5;
}
.auth-footer a { color: #9ca3af; text-decoration: none; transition: color .15s; }
.auth-footer a:hover { color: var(--auth-primary); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ŞİFRE GÜCÜ GÖSTERGESİ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pw-strength { display: flex; gap: 4px; margin-top: 7px; }
.pw-strength-bar {
  flex: 1; height: 3px; border-radius: 3px; background: #e5e7eb;
  transition: background .25s;
}
.pw-strength-bar.active.weak   { background: #ef4444; }
.pw-strength-bar.active.medium { background: #f59e0b; }
.pw-strength-bar.active.strong { background: #16a34a; }
.pw-strength-text { font-size: .71rem; margin-top: 4px; font-weight: 600; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   OTP DOĞRULAMA SAYFASI
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-center-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(108,99,255,.3) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(26,86,219,.4) 0%, transparent 45%),
    linear-gradient(160deg, #060d1a 0%, #0a1628 50%, #0d1f42 100%);
  padding: 24px;
}
.otp-card {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 22px;
  padding: 44px 40px; box-shadow: 0 32px 72px rgba(0,0,0,.4);
  text-align: center; position: relative; overflow: hidden;
}
.otp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #25d366, #128c7e);
}

.otp-icon-wrap {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 22px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.4);
}
.otp-card h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 9px; color: #0f172a; letter-spacing: -.02em; }
.otp-card p.otp-sub { font-size: .87rem; color: #64748b; margin: 0 0 28px; line-height: 1.55; }
.otp-sub strong { color: #0f172a; font-weight: 700; }

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.otp-digit {
  width: 48px; height: 58px; text-align: center;
  font-size: 1.5rem; font-weight: 800;
  border: 1.5px solid #e5e7eb; border-radius: 13px; color: #0f172a;
  transition: all .18s; font-family: inherit; background: #fafafa;
  outline: none;
}
.otp-digit:focus { border-color: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.12); background: #fff; }
.otp-digit.filled { border-color: #25d366; background: #f0fdf4; }

.otp-resend { font-size: .82rem; color: #64748b; margin-top: 18px; }
.otp-resend button {
  background: none; border: none; color: var(--auth-primary);
  font-weight: 700; cursor: pointer; font-size: .82rem; font-family: inherit;
  transition: color .15s;
}
.otp-resend button:hover { color: var(--auth-primary-dark); }
.otp-resend button:disabled { color: #94a3b8; cursor: not-allowed; }
.otp-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: #0f172a; }

.otp-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: #64748b; text-decoration: none; margin-top: 18px;
  transition: color .15s;
}
.otp-back-link:hover { color: #0f172a; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KAYIT ADIM GÖSTERGESİ (register sayfası)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-steps-indicator {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 12px 16px;
  position: relative; overflow: hidden;
}
.auth-steps-indicator::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 33.33%; /* ilk adım aktif */
  background: rgba(26,86,219,.06);
  border-radius: 10px;
}
.auth-step-dot {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; z-index: 1;
}
.auth-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; background: #e5e7eb; color: #94a3b8;
  transition: all .2s;
}
.auth-step-dot.active .auth-step-num {
  background: var(--auth-primary); color: #fff;
  box-shadow: 0 3px 8px rgba(26,86,219,.3);
}
.auth-step-label { font-size: .64rem; font-weight: 600; color: #94a3b8; text-align: center; }
.auth-step-dot.active .auth-step-label { color: var(--auth-primary); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1020px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right::before { display: none; }
  .auth-card-mobile-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 28px; }
  .auth-right { padding: 36px 24px; }
  .auth-right::after {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent));
  }
}
@media (max-width: 500px) {
  .auth-right { padding: 28px 16px; background: #fff; min-height: 100vh; align-items: flex-start; padding-top: 40px; }
  .auth-card  { max-width: 100% !important; }
  .auth-card h2 { font-size: 1.4rem; }
  .auth-submit-btn { padding: 14px; font-size: .95rem; }
  .form-control { font-size: 1rem; padding: 12px 14px; }
  .auth-trust-bar { gap: 12px; }
}
@media (max-width: 420px) {
  .otp-card   { padding: 32px 18px; }
  .otp-digit  { width: 42px; height: 54px; font-size: 1.3rem; }
  .otp-inputs { gap: 7px; }
  .auth-center-page { padding: 16px; align-items: flex-start; padding-top: 36px; }
}
