/* ── NexWatch hesap (giriş/kayıt) sayfası ───────────────────────────────
   Taban (reset, tipografi, renk token'ları, .ambient) /style.css'ten gelir.
   Burada YALNIZCA style.css :root içindeki gerçek değişkenler kullanılır:
     --accent --bg --glass --strong --edge --shine --blur
     --spring --out --t1 --t2 --subc --font --adim
   Görünüm: sitenin sıvı cam (glassmorphism) dili — yarı saydam koyu zemin,
   ince açık kenarlık, üst iç parlama, blur'lu backdrop, yumuşak gölge.
   Sınıflar `hesap-*` önekiyle uygulamanın kendi sınıflarıyla çakışmaz.
   ────────────────────────────────────────────────────────────────────── */

.hesap-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Başlık: sitenin üst çubuğuyla aynı cam kapsül ────────────────────── */
.hesap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  flex: none;
  margin-top: max(10px, env(safe-area-inset-top));
  padding: 0 9px 0 20px;
  border-radius: 999px;
  background: var(--strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shine), 0 12px 34px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.hesap-logo {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .14em;
  color: var(--t1);
  text-decoration: none;
}

.hesap-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--t2);
  text-decoration: none;
  transition: background .25s, color .25s, transform .35s var(--spring);
}

.hesap-back:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--subc);
}

.hesap-back:active { transform: scale(.96); }

/* ── Gövde ────────────────────────────────────────────────────────────── */
.hesap-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 64px;
}

/* ── Kart: .glass görünümü + cömert köşe ──────────────────────────────── */
.hesap-kart {
  width: 100%;
  max-width: 430px;
  padding: 28px clamp(20px, 5vw, 32px) 32px;
  border-radius: 26px;
  background: var(--strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shine), 0 12px 34px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  animation: rise .9s var(--out) both;
}

/* ── Sekmeler ─────────────────────────────────────────────────────────── */
.hesap-sekmeler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shine);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.hesap-sekme {
  min-height: 44px;
  padding: 10px 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .35s var(--spring);
}

.hesap-sekme:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--subc);
}

.hesap-sekme.aktif {
  background: rgba(255, 255, 255, .2);
  color: var(--subc);
  box-shadow: var(--shine);
}

/* ── Form ─────────────────────────────────────────────────────────────── */
.hesap-baslik {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--t1);
  margin-bottom: 8px;
}

/* Form alt-yazısı (footer DEĞİL — bkz. .hesap-footer). */
.hesap-alt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
  margin-bottom: 22px;
}

.hesap-alt strong { color: var(--t1); }

.hesap-etiket {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 6px;
}

.hesap-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--t1);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--edge);
  border-radius: 14px;
  box-shadow: var(--shine);
  outline: 0;
  transition: background .2s, box-shadow .2s;
}

.hesap-input::placeholder { color: var(--t2); }

.hesap-input:focus,
.hesap-input:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, .14);
  box-shadow: var(--shine), 0 0 0 3px var(--adim);
}

.hesap-ipucu {
  font-size: 12px;
  color: var(--t2);
  opacity: .8;
  margin: -10px 0 18px;
}

/* ── Başarı ───────────────────────────────────────────────────────────────
   .hesap-hata'nın yeşil karşılığı. Aynı cam dili, accent yerine başarı tonu.
   Sayfa içi durum bildirimleri için (kaydedildi, kod gönderildi…). */
.hesap-iyi {
  font-size: 13px;
  line-height: 1.45;
  color: var(--t1);
  background: rgba(48, 209, 88, .16);
  border: 1px solid rgba(48, 209, 88, .55);
  border-left-width: 3px;
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 18px;
}

.hesap-iyi[hidden] { display: none; }

/* ── Metin bağlantısı biçiminde düğme ─────────────────────────────────── */
.hesap-baglanti {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 12px 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: color .2s, background .2s;
}

.hesap-baglanti:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .06);
}

.hesap-baglanti:focus-visible {
  outline: 3px solid var(--subc);
  outline-offset: 2px;
}

.hesap-baglanti[hidden] { display: none; }

/* ── Adım göstergesi (parola sıfırlama) ───────────────────────────────── */
.hesap-adimlar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  counter-reset: adim;
}

.hesap-adimlar li {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--edge);
  transition: background .25s, color .25s;
}

.hesap-adimlar li[aria-current="step"] {
  color: var(--subc);
  background: rgba(255, 255, 255, .2);
  border-color: transparent;
  box-shadow: var(--shine);
}

.hesap-adimlar li.tamam {
  color: var(--subc);
  background: var(--adim);
  border-color: var(--accent);
}

/* ── Hata ─────────────────────────────────────────────────────────────── */
.hesap-hata {
  font-size: 13px;
  line-height: 1.45;
  color: var(--t1);
  background: var(--adim);
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 18px;
}

/* ── Gönder: .btn.pri görünümü ────────────────────────────────────────── */
.hesap-gonder {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--subc);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shine), 0 8px 24px var(--adim);
  transition: filter .2s, box-shadow .2s, transform .35s var(--spring);
}

.hesap-gonder:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: var(--shine), 0 12px 30px var(--adim);
}

.hesap-gonder:active:not(:disabled) { transform: scale(.97); }

.hesap-gonder:disabled {
  cursor: default;
  opacity: .65;
}

/* ── Yasal bağlantılar (kendi sınıfı: form alt-yazısıyla çakışmaz) ────── */
.hesap-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: none;
  padding: 0 16px 32px;
  font-size: 13px;
}

.hesap-footer a {
  color: var(--t2);
  text-decoration: none;
  transition: color .2s;
}

.hesap-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hesap-footer span {
  color: var(--t2);
  opacity: .45;
}

/* ── Robot doğrulaması (Cloudflare Turnstile) ─────────────────────────────
   Yalnızca sunucu captcha'yı açtığında görünür (slot `hidden` ile gelir).
   Widget'ın kendi iframe'i Cloudflare'den gelir; burada yalnız kapsayıcı,
   açıklama metni ve yerleşim biçimlendirilir. Tema `theme:"dark"` ile
   verildiğinden kutu koyu cam dille uyumlu durur. */
.turnstile-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
}

.turnstile-slot[hidden] { display: none; }

/* Widget iframe'i dar ekranda taşmasın: kapsayıcıyı ortalar, kutu içeriğe
   göre daralır. Turnstile normalde 300px genişlik ister. */
.turnstile-kutu {
  display: flex;
  justify-content: center;
  max-width: 100%;
  min-height: 65px;
}

.turnstile-etiket {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  text-align: center;
  margin: 0;
}

.turnstile-uyari {
  font-size: 12px;
  line-height: 1.45;
  color: var(--t1);
  background: var(--adim);
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 8px 11px;
  margin: 0;
  width: 100%;
}

.turnstile-uyari[hidden] { display: none; }

/* ── Klavye odağı (erişilebilirlik) ───────────────────────────────────── */
.hesap-sekme:focus-visible,
.hesap-back:focus-visible,
.hesap-gonder:focus-visible,
.hesap-baglanti:focus-visible,
.hesap-footer a:focus-visible {
  outline: 3px solid var(--subc);
  outline-offset: 2px;
}

/* ── Blur desteklenmiyorsa: opak zeminle okunur kal ───────────────────── */
@supports not (backdrop-filter: blur(1px)) {
  .hesap-header,
  .hesap-kart,
  .hesap-sekmeler {
    background: rgba(26, 27, 36, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── Hareket azaltma ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hesap-kart { animation: none; }
  .hesap-sekme,
  .hesap-back,
  .hesap-gonder,
  .hesap-input,
  .hesap-baglanti,
  .hesap-adimlar li,
  .hesap-footer a { transition: none; }

  /* Dönen yükleme göstergeleri olmasa da Turnstile kendi iframe'inde
     animasyon kullanabilir; kapsayıcıda ek hareket yok. Etiket/uyarı
     renk geçişi de yok. */
  .turnstile-etiket,
  .turnstile-uyari { transition: none; }
}

/* ── Şeffaflık azaltma (style.css satır 97 ile uyumlu) ────────────────── */
@media (prefers-reduced-transparency: reduce) {
  .hesap-header,
  .hesap-kart,
  .hesap-sekmeler {
    background: rgba(30, 32, 42, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Logo: ana sitenin üst çubuğuyla aynı görsel (index.html .brand). */
.hesap-logo, .belge-logo, .indirme-logo { display: inline-flex; align-items: center; min-height: 44px; }
.hesap-logo img, .belge-logo img, .indirme-logo img { display: block; height: 22px; width: auto; }
