/* Noverba ana sayfa: yalnız giriş ekranı. Renkler yalnızca değişkenlerle; koyu varsayılan, açık tema data-tema="acik". */
:root {
  --bg: #06080f;
  --kart: rgba(15, 23, 42, .65);
  --kart-kenar: rgba(148, 163, 184, .14);
  --metin: #e2e8f0;
  --metin-2: #94a3b8;
  --vurgu: #3b82f6;
  --gradyan: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --iyi: #34d399;
  --uyari: #fbbf24;
  --izgara: rgba(148, 163, 184, .08);
  --golge: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-tema="acik"] {
  --bg: #f6f7fb;
  --kart: rgba(255, 255, 255, .85);
  --kart-kenar: rgba(15, 23, 42, .1);
  --metin: #0f172a;
  --metin-2: #475569;
  --izgara: rgba(15, 23, 42, .06);
  --golge: 0 20px 50px rgba(15, 23, 42, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--metin);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
}
a { color: inherit; }
h1, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.soluk { color: var(--metin-2); }

/* ---------- Üst bar: marka · dil · tema ---------- */
.ust {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--kart-kenar);
}
.marka { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.marka-kutu {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradyan); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}
.marka-kutu.buyuk { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
.marka-ad { font-weight: 800; letter-spacing: .18em; font-size: 14px; }
.ust-sag { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tema {
  width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--kart-kenar); background: var(--kart);
  display: grid; place-items: center;
}
.tema-ikon { width: 16px; height: 16px; border-radius: 50%; background: var(--metin); box-shadow: inset -5px -4px 0 0 var(--bg); }
:root[data-tema="acik"] .tema-ikon { box-shadow: none; background: radial-gradient(circle, var(--uyari) 55%, transparent 56%); outline: 2px dotted var(--uyari); outline-offset: 2px; width: 12px; height: 12px; }
.dil-sec { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--kart); border: 1px solid var(--kart-kenar); }
.dil-sec button { min-width: 38px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--metin-2); transition: background .2s, color .2s; }
.dil-sec button:hover { color: var(--metin); }
.dil-sec button[aria-pressed="true"] { color: #fff; background: var(--gradyan); box-shadow: 0 3px 10px rgba(99, 102, 241, .4); }

/* ---------- Sahne: ortada tek giriş kartı ---------- */
.sahne {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(20px, 6vh, 64px) 16px;
}
.sahne-arka { position: absolute; inset: 0; pointer-events: none; }
.izgara { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--izgara); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.kure { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.k1 { width: 420px; height: 420px; left: -120px; top: -140px; background: #3b82f6; }
.k2 { width: 360px; height: 360px; right: -80px; top: 40px; background: #8b5cf6; }
.k3 { width: 260px; height: 260px; left: 40%; bottom: -160px; background: #06b6d4; opacity: .35; }
:root[data-tema="acik"] .kure { opacity: .22; }
/* Oturum sorulurken (en çok birkaç saniye) kart görünmez */
.sahne.denetleniyor .giris-kart { visibility: hidden; }

.giris-kart {
  position: relative; width: min(100%, 380px);
  display: grid; justify-items: center; gap: 18px;
  padding: clamp(22px, 4vh, 32px) clamp(18px, 4vw, 28px);
  background: var(--kart); border: 1px solid var(--kart-kenar); border-radius: 22px;
  box-shadow: var(--golge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.giris-kart > .dugme { width: 100%; }

.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--kart-kenar); background: var(--kart); color: var(--metin); transition: transform .15s;
}
.dugme:hover { transform: translateY(-1px); }
.dugme:disabled { opacity: .6; cursor: default; transform: none; }
.dugme.birincil { background: var(--gradyan); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(99, 102, 241, .35); }

.giris-form { width: 100%; display: grid; gap: 12px; }
html:not(.js) .giris-form { display: none; }
.giris-form h1 { font-size: 22px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.giris-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--metin-2); }
.giris-form label.satir { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; font-weight: 500; }
.giris-form input:not([type=checkbox]) { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--kart-kenar); background: var(--bg); color: var(--metin); font: inherit; font-size: 15px; }
.giris-form input:focus { outline: 2px solid var(--vurgu); outline-offset: 1px; }
.giris-form .hata { color: #ef4444; font-size: 13.5px; font-weight: 600; }
.giris-form .dugme { margin-top: 4px; }

.oturum-acik { width: 100%; display: grid; justify-items: center; gap: 2px; text-align: center; }
.oa-ad { font-weight: 800; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.oa-eylem { display: flex; gap: 10px; margin-top: 16px; }

@media (max-width: 420px) { .marka-ad { display: none; } .dil-sec button { min-width: 32px; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .dugme { transition: none; } }
