/* finans-kapi — giriş ekranı (20 Kasım 2026).
   KAYNAK: process.rardp.com (HAT) frontend/src/index.css — palet, .giris-*
   ve .anahtar kuralları BİREBİR alındı (Bunyamin: "process.rardp.com
   mantığıyla yap"). HAT tarafı değişirse burası elle güncellenir.
   TEK FARK: varsayılan tema AYDINLIK. HAT koyu açılır; Bunyamin'in örnek
   gösterdiği ekran aydınlıktı. Koyu = [data-tema="koyu"] (tema.js). */

:root {
  --bg-primary:   #f2ecdf;
  --bg-sidebar:   #ddd2bb;
  --border:       #b7a582;
  --border-light: #a08c68;
  --text-primary: #3a2f24;
  --text-muted:   #64553f;
  --text-subtle:  #6b5c46;
  --accent:       #a1714a;
  --accent-hover: #845a38;
  --accent-dim:   rgba(161, 113, 74, 0.12);
  --danger:       #6b2e26;
}
:root[data-tema="koyu"] {
  --bg-primary:   #231d15;
  --bg-sidebar:   #1c1711;
  --border:       #5d4f3c;
  --border-light: #78654c;
  --text-primary: #ece3d2;
  --text-muted:   #c9baa2;
  --text-subtle:  #bdae94;
  --accent:       #b8835a;
  --accent-hover: #cb9568;
  --accent-dim:   rgba(184, 131, 90, 0.18);
  --danger:       #e09182;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-primary); }
body { color: var(--text-primary);
       font-family: "Source Sans 3", "Source Sans Pro", -apple-system, system-ui, sans-serif; }
input, button { font: inherit; }

/* %85 ölçek — HAT'ın aynısı (Bunyamin finans'ı %85 yakınlaştırmayla kullanıyor
   ve o görünümü istiyor). vh zoom'dan etkilenir → min-height /0.85 telafisi. */
.giris-ekran {
  zoom: 0.85; min-height: calc(100vh / 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 0; position: relative; background: var(--bg-primary);
}
.giris-tema { position: absolute; top: 18px; right: 22px;
              display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.giris-kutu { width: 520px; max-width: calc(100vw - 48px); margin: auto;
              text-align: center; transform: translateY(-48px); }
.giris-logo { display: block; width: 297px; height: auto; margin: 0 auto 44px; }
:root[data-tema="koyu"] .giris-logo { filter: brightness(0) invert(0.842) sepia(0.284); }

.giris-buyuk {
  width: 100%; min-height: 51px; padding: 14px 18px; margin-bottom: 16px;
  font-size: 15px; border-radius: 10px; color: var(--text-primary);
  background: var(--bg-sidebar); border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.giris-buyuk:focus { outline: none; border-color: var(--accent);
                     box-shadow: 0 0 0 3px rgba(161, 113, 74, 0.13); }
.giris-buyuk::placeholder { color: var(--text-muted); }

.giris-sifre-sargi { position: relative; }
.giris-sifre-sargi .giris-buyuk { padding-right: 48px; }
.giris-goz { position: absolute; right: 8px; top: 50%;
             transform: translateY(calc(-50% - 8px));
             background: none; border: none; padding: 8px; cursor: pointer;
             color: var(--text-muted); display: grid; place-items: center; }
.giris-goz:hover { color: var(--accent); }

.giris-dugme {
  width: 100%; padding: 15px 18px; font-size: 16px; font-weight: 400;
  line-height: 1.6; letter-spacing: .4px; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fffcf6; border: none;
  box-shadow: 0 3px 14px rgba(161, 113, 74, 0.22); transition: background .15s ease;
}
:root[data-tema="koyu"] .giris-dugme { color: #1c1510; }
.giris-dugme:hover:not(:disabled) { background: var(--accent-hover); }
.giris-dugme:disabled { opacity: .7; cursor: wait; }

/* "Şifremi unuttum" — JS'siz <details>; HAT'taki metin bağlantısı görünümü */
.giris-unuttum-sargi { margin: 12px auto 0; }
.giris-unuttum { display: inline-block; list-style: none; cursor: pointer;
                 margin: 0 auto 16px; padding: 4px 8px; font-size: 13px;
                 color: var(--text-muted); text-decoration: underline;
                 text-underline-offset: 3px; }
.giris-unuttum::-webkit-details-marker { display: none; }
.giris-unuttum:hover { color: var(--accent); }
.giris-unuttum-sargi .not { text-align: left; margin-bottom: 14px; }

.giris-kvkk { margin-top: 26px; font-size: 11px; color: var(--text-subtle); }

.not { background: var(--accent-dim); border-left: 3px solid var(--accent);
       padding: 8px 11px; border-radius: 0 6px 6px 0; font-size: 12.5px;
       line-height: 1.5; text-align: left; }
.not.hata { background: rgba(107, 46, 38, .12); border-left-color: var(--danger);
            margin-bottom: 14px; }

/* iOS tarzı anahtar — HAT'ın aynısı */
.anahtar { width: 40px; height: 22px; border-radius: 11px; flex: none;
           background: var(--border); border: none; position: relative;
           padding: 0; cursor: pointer; transition: background .15s ease; }
.anahtar .anahtar-top { position: absolute; top: 2px; left: 2px;
           width: 18px; height: 18px; border-radius: 50%;
           background: #fffdf8; box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
           transition: left .15s ease; }
.anahtar.acik { background: var(--accent); }
.anahtar.acik .anahtar-top { left: 20px; }
