/* ══════════════════════════════════════════════════════════════
   GİRİŞ / KAYIT SAYFASI
   Yalnızca /giris ve /kayit sayfalarında yüklenir (uye.php).

   TASARIM YÖNÜ: koyu sinematik editoryal. Sol sütun tipografi ve
   marka vaadi, sağ sütun cam yüzeyli form. Atmosfer TAMAMEN CSS ile
   kuruldu — arka plana poster mozaiği KOYULMADI, çünkü posterler
   /img.php üzerinden PHP ile vekilleniyor: 12 poster = 12 FPM
   işçisinin CDN'i beklemesi. (Aynı desen bir kez siteyi düşürdü:
   dış istekte kilitlenen işçiler havuzu tüketti.)
══════════════════════════════════════════════════════════════ */

.auth-sahne {
  /* Renkler artık style.css'teki tek kaynaktan geliyor; burada sabit
     değer tutmak sayfayı sitenin geri kalanından ayırıyordu. */
  --a1: var(--kor);
  --a2: var(--kor-parlak);
  --cam: rgba(14, 14, 17, .72);
  --cizgi: rgba(255, 255, 255, .09);
  --metin-sos: rgba(255, 255, 255, .52);

  position: relative;
  min-height: calc(100vh - var(--nav-h) - var(--sat));
  min-height: calc(100dvh - var(--nav-h) - var(--sat));   /* iOS: adres çubuğu */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px calc(var(--bot-h) + var(--sab) + 32px);
  overflow: hidden;
  isolation: isolate;                /* z-index'ler sayfaya taşmasın */
}
@media (min-width: 1024px) {
  .auth-sahne { min-height: 100vh; min-height: 100dvh; padding: 48px 40px; }
}

/* Sahne ekranın tamamını kaplıyor; altta kalan footer ve yüzen Telegram
   düğmesi sadece gereksiz kaydırma üretiyordu (ölçüldü: 720px sahne +
   125px artık). Telegram düğmesi mobilde ayrıca alt bilgi yazısının
   üstüne biniyor. */
body:has(.auth-sahne) footer,
body:has(.auth-sahne) a[aria-label="Telegram grubumuza katıl"] { display: none; }

/* ── Atmosfer: iki renk kütlesi + ince tarama dokusu ────────── */
.auth-fon {
  position: absolute; inset: -20%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 22%, rgba(255, 90, 31, .16), transparent 70%),
    radial-gradient(46% 44% at 82% 78%, rgba(255, 90, 31, .10), transparent 72%),
    radial-gradient(60% 50% at 50% 50%, rgba(8, 8, 12, 0), #08080a 78%);
}
/* Grenli doku: 1 KB'lık SVG gürültü, ağ isteği yok.
   Düz koyu zeminde oluşan renk bantlarını da kırıyor. */
.auth-fon::after {
  content: ''; position: absolute; inset: 0;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Kart: masaüstünde iki sütun, mobilde tek ───────────────── */
.auth-kart {
  position: relative;
  width: 100%; max-width: 440px;
  border: 1px solid var(--cizgi);
  border-radius: 26px;
  background: var(--cam);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
@media (min-width: 900px) {
  .auth-kart { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ══ SOL SÜTUN — marka & vaat (yalnızca geniş ekran) ══════════ */
.auth-yan { display: none; }
@media (min-width: 900px) {
  .auth-yan {
    display: flex; flex-direction: column;
    justify-content: flex-start;
    padding: 48px 36px 36px;
    border-right: 1px solid var(--cizgi);
    background:
      linear-gradient(165deg, rgba(255, 90, 31, .09), transparent 48%),
      linear-gradient(0deg, rgba(255, 90, 31, .06), transparent 52%);
  }
}

.auth-yan-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-resmi-rozet {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9060;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.28);
  border-radius: 999px;
}

.auth-marka {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px;
  text-transform: uppercase; text-decoration: none; color: #fff;
  width: fit-content;
}
.auth-marka svg { width: 32px; height: 32px; flex: 0 0 32px; overflow: visible; }

.auth-slogan {
  margin: 0;
  font-size: clamp(1.85rem, 1.2rem + 1.4vw, 2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -1.4px;
  color: #fff;
}
.auth-slogan em {
  display: block; font-style: italic; font-weight: 500;
  padding-bottom: .10em;
  color: var(--kor);
}
.auth-yan-alt {
  margin: 12px 0 24px;
  font-size: 14px; line-height: 1.6; color: var(--metin-sos);
}

.auth-fayda { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.auth-fayda li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.auth-fayda li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.auth-fayda-ik {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 10px;
  background: rgba(255, 90, 31, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.auth-fayda-ik svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--a1); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.auth-fayda-yazi {
  display: flex; flex-direction: column; gap: 2px;
}
.auth-fayda-yazi b {
  font-size: 13.5px; font-weight: 700; color: #fff;
}
.auth-fayda-yazi small {
  font-size: 12px; color: var(--metin-sos); line-height: 1.35;
}

.auth-yan-guvenlik {
  display: flex; align-items: center; gap: 9px;
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.auth-yan-guvenlik svg {
  width: 16px; height: 16px; flex: 0 0 16px;
  stroke: #10b981; fill: none;
}

/* ══ SAĞ SÜTUN — form ═════════════════════════════════════════ */
.auth-alan { padding: 30px 24px 28px; }
@media (min-width: 900px) { .auth-alan { padding: 44px 38px; } }

.auth-alan-tepe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

/* Mobilde marka sol sütunla birlikte kaybolduğu için burada çıkar */
.auth-marka-mobil { margin: 0; }
@media (min-width: 900px) { .auth-marka-mobil { display: none; } }

/* Resmi Güvenlik Rozeti */
.auth-guvenlik-rozet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-guvenlik-rozet svg {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: #34d399; fill: none;
}
.guvenlik-nabiz {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: guvenlikNabiz 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes guvenlikNabiz {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Segment: Giriş / Kayıt ── */
.auth-sekme {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 22px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid var(--cizgi);
  border-radius: 14px;
}
.auth-sekme::before {
  content: ''; position: absolute;
  top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.auth-sekme[data-aktif="kayit"]::before { transform: translateX(100%); }
.auth-sekme a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 0; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .1px;
  color: var(--metin-sos);
  border-radius: 10px;
  transition: color .2s;
}
.auth-sekme a svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-sekme a:hover { color: rgba(255, 255, 255, .9); }
.auth-sekme a[aria-current="page"] { color: #fff; }

.auth-baslik {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.8rem);
  font-weight: 800; letter-spacing: -.8px; color: #fff;
}
.auth-alt { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--metin-sos); }

/* ── Uyarı şeridi ──────────────────────────────────────────── */
.auth-uyari {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 13px 15px;
  border-radius: 13px;
  background: var(--kor-sonuk);
  border: 1px solid rgba(255, 90, 122, .32);
  color: #ffc9d3; font-size: 13.5px; line-height: 1.45;
}
.auth-uyari svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; fill: #ff5a7a; }

/* ── Alanlar: yüzen etiket ─────────────────────────────────── */
.af { position: relative; margin-bottom: 14px; }
.af-in {
  width: 100%; box-sizing: border-box;
  height: 62px; padding: 24px 46px 8px 44px;
  font-size: 15.5px; font-weight: 500; color: #fff;
  font-family: inherit;
  background: rgba(0, 0, 0, .42);
  border: 1px solid var(--cizgi);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.af-in:hover { border-color: rgba(255, 255, 255, .17); }
.af-in:focus {
  background: rgba(0, 0, 0, .58);
  border-color: var(--kor-cizgi);
  box-shadow: 0 0 0 4px var(--kor-sonuk);
}
/* Tarayıcı otomatik doldurmasının mavi zemini metni okunmaz yapıyor */
.af-in:-webkit-autofill,
.af-in:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #14141a inset;
  caret-color: #fff;
}

/* ⚠️ KONUM GİRDİYE GÖRE, KAPSAYICIYA GÖRE DEĞİL.
   `.af` yalnızca input'u değil altındaki `.af-mesaj`, `.af-ipucu`,
   `.af-caps` ve `.af-guc` elemanlarını da içeriyor. `top: 50%` bu yüzden
   62px'lik girdinin değil, tüm bloğun ortasını buluyordu ve etiket/ikon
   AŞAĞI KAYIYORDU — şifre alanında iki eleman daha olduğu için kayma
   daha da büyüktü (bildirilen hata).
   `.af-in` yüksekliği sabit 62px; ortası 31px. Oraya sabitliyoruz. */
.af-lb {
  position: absolute; left: 44px; top: 31px;
  transform: translateY(-50%);
  /* line-height SABİT tutuluyor: yükseklik font-size'a eşit olunca
     yukarıdaki konum hesabı ölçülebilir hale geliyor. Serbest satır
     yüksekliğiyle etiket, yazılan metnin üstüne 2px biniyordu. */
  font-size: 15px; line-height: 1; font-weight: 500;
  color: rgba(255, 255, 255, .42);
  pointer-events: none;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), color .18s;
  transform-origin: left center;
}
/* Dolu ya da odaklı → etiket yukarı çıkar.
   placeholder=" " şart: :placeholder-shown "alan boş mu?" testi.
   ⚠️ translateY buradaki tek dikey konum kaynağı — temel kuraldaki
   -50% override edildiği için değeri ona göre seçildi:
   62px alanda etiketin altı ~18px, metin 24px'ten başlıyor. */
/* `.af.dolu` YEDEĞİ: yüzen etiket yalnızca `:placeholder-shown`a
   bağlıydı. O seçici `placeholder=" "` özniteliğine, otomatik doldurmaya
   ve tarayıcı farklarına duyarlı; tutmadığı anda etiket alanın ortasında
   kalıyor ve yazılan metin onun ÜSTÜNE biniyor. auth.js artık alan
   doluyken `.dolu` sınıfı basıyor — iki yol da aynı sonucu veriyor. */
.af.dolu .af-lb,
.af-in:focus + .af-lb,
.af-in:not(:placeholder-shown) + .af-lb {
  transform: translateY(calc(-50% - 16px)) scale(.8);
  color: rgba(255, 255, 255, .58);
}
.af-in:focus + .af-lb { color: var(--a1); }

.af-ikon {
  position: absolute; left: 15px; top: 31px; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s;
}
.af-in:focus ~ .af-ikon { stroke: var(--a1); }

/* Şifreyi göster/gizle */
.af-goz {
  position: absolute; right: 8px; top: 31px; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 10px;
  color: rgba(255, 255, 255, .42);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .2s, background .2s;
}
.af-goz:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.af-goz svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-goz .goz-kapali { display: none; }
.af-goz[aria-pressed="true"] .goz-acik { display: none; }
.af-goz[aria-pressed="true"] .goz-kapali { display: block; }

/* Hata durumu + mesaj */
.af.hatali .af-in { border-color: rgba(255, 90, 122, .65); }
.af.hatali .af-in:focus { box-shadow: 0 0 0 4px rgba(255, 90, 122, .14); }
.af.hatali .af-ikon { stroke: #ff5a7a; }
.af-mesaj {
  display: none;
  margin: 7px 2px 0;
  font-size: 12.5px; font-weight: 500; color: #ff8199;
}
.af.hatali .af-mesaj { display: block; }

.af-ipucu { margin: 7px 2px 0; font-size: 12.5px; color: rgba(255, 255, 255, .38); }
.af.hatali .af-ipucu { display: none; }

/* Caps Lock uyarısı — şifre alanında sık yapılan hata */
.af-caps {
  display: none;
  margin: 7px 2px 0;
  font-size: 12.5px; font-weight: 600; color: #ffb44d;
}
.af.caps-acik .af-caps { display: block; }

/* ── Beni Hatırla & Şifremi Unuttum Satırı ──────────────────── */
.auth-ekstra-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 0 2px;
}

.auth-beni-hatirla {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--metin-sos);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.auth-beni-hatirla input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.auth-kutucuk {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.auth-beni-hatirla input:checked + .auth-kutucuk {
  background: var(--kor);
  border-color: var(--kor);
}
.auth-beni-hatirla input:checked + .auth-kutucuk::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}
.auth-beni-hatirla:hover {
  color: #fff;
}
.auth-beni-hatirla:hover .auth-kutucuk {
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-sifre-unuttum-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.18s ease;
}
.auth-sifre-unuttum-link:hover {
  color: var(--kor-parlak);
  text-decoration: underline;
}

/* ── Şifre gücü (yalnızca kayıt) ───────────────────────────── */
.af-guc { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; }
.af-guc-bar { display: flex; gap: 4px; flex: 1; }
.af-guc-bar i {
  height: 3px; flex: 1; border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  transition: background .25s;
}
.af-guc-yazi { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .4); min-width: 46px; text-align: right; }
.af-guc[data-seviye="1"] i:nth-child(-n+1) { background: #ff5a5a; }
.af-guc[data-seviye="2"] i:nth-child(-n+2) { background: #ffb44d; }
.af-guc[data-seviye="3"] i:nth-child(-n+3) { background: #ffd84d; }
.af-guc[data-seviye="4"] i { background: #3ddc84; }
.af-guc[data-seviye="1"] .af-guc-yazi { color: #ff5a5a; }
.af-guc[data-seviye="2"] .af-guc-yazi { color: #ffb44d; }
.af-guc[data-seviye="3"] .af-guc-yazi { color: #ffd84d; }
.af-guc[data-seviye="4"] .af-guc-yazi { color: #3ddc84; }

/* ── Gönder ────────────────────────────────────────────────── */
.auth-gonder {
  position: relative;
  width: 100%; height: 56px; margin-top: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  color: #fff; cursor: pointer;
  /* ⚠️ EĞİMLİ DOLGU + RENKLİ PARILTI KALDIRILDI. Turuncudan pembeye giden
     dolgu ve altındaki 30px'lik turuncu hale sitenin geri kalanındaki
     düğmelerle uyuşmuyordu (orada düz dolgu, gölge yok) — aynı ürünün iki
     ayrı düğme dili oluyordu. */
  border: none; border-radius: 12px;
  background: var(--kor);
  transition: background var(--sure, .22s) ease, transform .18s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.auth-gonder:hover { background: var(--kor-parlak); transform: translateY(-1px); }
.auth-gonder:active { transform: translateY(0); }
.auth-gonder:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.auth-gonder svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* Yükleniyor: metin gizlenir, dönen halka çıkar. Çift gönderimi
   engellemek görsel olarak da belli olsun. */
.auth-gonder.yukleniyor { pointer-events: none; filter: saturate(.7); }
.auth-gonder.yukleniyor .gonder-ic { visibility: hidden; }
.auth-gonder .donen {
  display: none;
  position: absolute; width: 21px; height: 21px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff; border-radius: 50%;
  animation: authDon .7s linear infinite;
}
.auth-gonder.yukleniyor .donen { display: block; }
.gonder-ic { display: inline-flex; align-items: center; gap: 9px; }
@keyframes authDon { to { transform: rotate(360deg); } }

/* ── Alt bilgi ─────────────────────────────────────────────── */
.auth-dip {
  margin: 22px 0 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .38);
  text-align: center;
}
.auth-dip a { color: rgba(255, 255, 255, .75); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.auth-dip a:hover { color: var(--a1); border-bottom-color: var(--a1); }

/* Mobilde sol sütun yok; faydalar formun altında tek satır olarak */
.auth-fayda-mobil {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin: 18px 0 0;
}
@media (min-width: 900px) { .auth-fayda-mobil { display: none; } }
.auth-fayda-mobil span {
  padding: 6px 11px;
  font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 100px;
}

/* ══ DAR EKRAN ══════════════════════════════════════════════
   İki düzeltme birlikte gerekli (375x812'de ölçüldü):

   1) Alan yazı boyutu 16px'in ALTINDA olamaz. iOS Safari küçük
      yazılı bir alana odaklanınca sayfayı kendiliğinden
      yakınlaştırıyor — kullanıcı bunu "ekran anlık büyüyor"
      olarak görüyor ve geri çıkmak zor.
   2) Kart 745px yüksekliğe çıkıyordu; ekran 812 ve altta 54px
      sabit gezinme çubuğu var, yani kartın dibi çubuğun
      arkasında kalıyordu. Boşluklar sıkıştırıldı.
══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .auth-sahne { padding-top: 26px; }
  .auth-alan { padding: 24px 20px; }
  .auth-marka-mobil { margin-bottom: 16px; }
  .auth-sekme { margin-bottom: 18px; }
  .auth-alt { margin-bottom: 18px; }
  .af-in { height: 58px; font-size: 16px; padding-top: 23px; }
  .af-lb { font-size: 16px; }
  .auth-gonder { height: 54px; margin-top: 18px; }
  .auth-dip { margin-top: 18px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-sekme::before, .af-lb, .auth-gonder { transition: none; }
  .auth-gonder .donen { animation-duration: 1.6s; }
  .auth-gonder:hover { transform: none; }
}

/* ══ HİZALAMA DÜZELTMESİ + GİRİŞ ANİMASYONU ══════════════════
   Sol sütunda logo ile slogan arasında büyük bir boşluk kalıyordu:
   yalnızca slogan `margin: auto 0 0` alıyordu, yani tüm artan alanı
   tek başına yukarı itiyordu. Artık fayda listesi de `auto` payı
   alıyor; boşluk slogan ile liste arasında PAYLAŞILIYOR. */
.af-guc { margin-top: 14px; }
.auth-dip { margin-top: 26px; padding-top: 22px; }

/* Kart ve içindeki bloklar sırayla belirir. Yalnızca opacity/transform
   — düzen yeniden hesaplanmıyor, açılış takılmıyor. */
@keyframes authGir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes authKart { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }

.auth-kart { animation: authKart .6s cubic-bezier(.16,1,.3,1) both; }

.auth-yan > *, .auth-alan > * { animation: authGir .55s cubic-bezier(.16,1,.3,1) both; }
.auth-yan > *:nth-child(1) { animation-delay: .10s; }
.auth-yan > *:nth-child(2) { animation-delay: .16s; }
.auth-yan > *:nth-child(3) { animation-delay: .22s; }
.auth-yan > *:nth-child(4) { animation-delay: .28s; }
.auth-alan > *:nth-child(1) { animation-delay: .14s; }
.auth-alan > *:nth-child(2) { animation-delay: .20s; }
.auth-alan > *:nth-child(3) { animation-delay: .26s; }
.auth-alan > *:nth-child(4) { animation-delay: .32s; }
.auth-alan > *:nth-child(5) { animation-delay: .38s; }
.auth-alan > *:nth-child(6) { animation-delay: .44s; }
.auth-alan > *:nth-child(7) { animation-delay: .50s; }

/* Form alanları da kendi içinde sırayla */
/* ⚠️ FORM ALANLARI AYRICA ANİMASYONLANMIYOR. `.auth-alan > *` zaten
   `form`u bir bütün olarak getiriyor; içerideki `.af`lere ikinci bir
   `translateY` vermek alanları aşağı kaymış gösteriyordu (iki dönüşüm
   üst üste biniyor). Form tek parça gelsin. */

/* Fayda satırları tek tek */
.auth-fayda li { animation: authGir .5s cubic-bezier(.16,1,.3,1) both; }
.auth-fayda li:nth-child(1) { animation-delay: .34s; }
.auth-fayda li:nth-child(2) { animation-delay: .40s; }
.auth-fayda li:nth-child(3) { animation-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
  .auth-kart, .auth-yan > *, .auth-alan > *, .auth-alan form .af,
  .auth-alan form .auth-gonder, .auth-fayda li { animation: none !important; }
}

/* ── YÜZEN ÜST DÜĞMELER ────────────────────────────────────────────────
   `#mobileMenu` (sol, menüyü aç) ve `#mobileAra` (sağ, arama) gövdeden
   bağımsız `position:fixed` ve `z-index:9500` ile çiziliyor — her şeyin
   üstünde yüzüyorlar ve giriş kartının üstüne binip dokunuşu çalıyorlardı.

   ⚠️ İLK ÇÖZÜM FAZLA GENİŞTİ: ikisini de kapatmıştım. Ama MENÜYÜ tamamen
   kaldırmak yeni bir sorun yarattı — giriş sayfasına düşen kullanıcının
   siteye dönmek için tek yolu kalıyordu. Doğrusu düğmeyi bırakıp ONA YER
   AÇMAK; üst boşluk aşağıda düğme yüksekliği kadar artırılıyor.

   Arama kapalı KALIYOR: giriş yaparken dizi aranmaz, sağ üstte gereksiz
   bir dokunma hedefi olmaktan başka işe yaramıyordu.

   Kural burada çünkü auth.css YALNIZCA bu iki sayfada yükleniyor
   (uye.php → $GLOBALS['dh_sayfa_css']) ve en son yüklendiği için
   layout.php'nin satır içi kuralını güvenle eziyor. */
#mobileAra { display: none !important; }

/* Menü düğmesi 42px + üstten 10px + çentik payı. İçerik bunun ALTINDAN
   başlasın ki düğme markanın/sekmenin üstüne binmesin. */
@media (max-width: 899px) {
  .auth-sahne { padding-top: calc(env(safe-area-inset-top, 0px) + 64px) !important; }
}

/* ── L7WAF DOĞRULAMA BİLEŞENİ (TURNSTILE / CAPTCHA) ───────────────────── */
.af-kapca {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 52px;
}
.af-kapca .l7waf-dogrulama {
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.kapca-yonerge {
  display: block; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.62);
}

.kapca-kutu {
  position: relative;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0f0f12; line-height: 0;
  transition: border-color .18s;
}
.kapca-kutu img {
  display: block; width: 100%; height: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;      /* çift dokunuşta yakınlaştırmasın */
}
.kapca-kutu.secildi { border-color: var(--kor-cizgi); }
.kapca-kutu.hatali  { border-color: rgba(255,90,122,.6); }

/* Seçilen hücrenin üstüne inen işaret — dokunuşun kaydedildiğini gösterir.
   Genişlik/konum JS tarafından yüzde olarak veriliyor. */
.kapca-isaret {
  position: absolute; top: 0; bottom: 0;
  display: none; pointer-events: none;
  border: 2px solid var(--kor);
  border-radius: 9px;
  background: var(--kor-sonuk);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}
.kapca-kutu.secildi .kapca-isaret { display: block; }

.kapca-yenile {
  position: absolute; right: 5px; top: 5px;
  width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: rgba(10,10,12,.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: rgba(255,255,255,.75);
  cursor: pointer; transition: color .18s, border-color .18s;
}
.kapca-yenile svg { width: 15px; height: 15px; }
.kapca-yenile:hover { color: var(--kor); border-color: var(--kor-cizgi); }
.kapca-yenile.donuyor svg { animation: kapcaDon .5s linear; }
@keyframes kapcaDon { to { transform: rotate(360deg); } }


@media (prefers-reduced-motion: reduce) {
  .kapca-yenile, .kapca-yenile.donuyor svg, .kapca-kutu { transition: none; animation: none; }
}

/* ── Google Giriş & Sosyal Auth Butonu ── */
.auth-sosyal {
  margin-bottom: 20px;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.auth-google-btn:hover {
  background: #f3f4f6;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

.auth-google-btn .google-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-veya {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-veya::before,
.auth-veya::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-veya span {
  padding: 0 12px;
}

.auth-uyari.auth-basari {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

