/* /sifre-sifirla ve /dogrula sayfalarının ortak stili.
   giris.html'in tasarım belirteçleriyle (renk, tipografi, 46px dokunma
   tabanı) aynıdır; oradaki dc-runtime'a özgü kurallar buraya kopyalanmadı. */
* { box-sizing: border-box; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0; background: #ffffff; color: #000000;
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
}
a { color: #778643; text-decoration: none; }
a:hover { color: #000000; }
input, button, select { font: inherit; color: inherit; }
input, button { min-height: 46px; }
nav a, .tap { min-height: 46px; display: inline-flex; align-items: center; }

.wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(38px, 8vh, 90px) clamp(24px, 6vw, 60px);
  background: radial-gradient(ellipse at 50% 30%, rgba(119,134,67,0.3) 0%, rgba(119,134,67,0.07) 55%, #ffffff 100%);
}
.brandrow { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(30px, 5vh, 45px); }
.backbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid #c8c8c8; border-radius: 50%;
  color: #4e4e4e; font-size: 15px; flex: 0 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: #000000; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #778643; display: inline-block; }

.big {font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112, 'wght' 800; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-transform: uppercase }
.black {font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112, 'wght' 800; font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; text-transform: uppercase }

h1 { margin: 0 0 15px; max-width: 22ch; font-size: clamp(28px, 5.4vw, 56px); }
.sub { margin: 0 0 clamp(30px, 5vh, 45px); max-width: 44ch; font-size: 15px; line-height: 1.55; color: #4e4e4e; }

.card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 19px; }
.lbl { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #4e4e4e; margin-bottom: 6px; }
/* Kutulu input: /giris sayfasindaki stille AYNI. Onceden bu sayfalar
   alt-cizgili, /giris ise yuvarlak kutuluydu; ayni akisin iki ekrani iki ayri
   tasarim dili konusuyordu. (11. tur) */
input {
  background: rgba(119,134,67,0.05); border: 1px solid #d8d8d2; border-radius: 13px;
  padding: 14px 15px; font-size: 15.5px; text-align: left; width: 100%;
}
input:focus {
  outline: none; border-color: #778643; background: rgba(119,134,67,0.09);
  box-shadow: 0 0 0 4px rgba(119,134,67,0.16), 0 8px 26px -12px rgba(119,134,67,0.7);
}
.hint { display: block; font-size: 11px; color: #4e4e4e; margin-top: 6px; text-align: center; }

.primary {
  background: #778643; color: #ffffff; border: 1px solid transparent;
  border-radius: 22.5px; padding: 14px 30px; font-size: 13px; cursor: pointer;
}
.primary:disabled { opacity: .6; cursor: default; }
.ghost {
  background: none; border: 1px solid #778643; color: #778643;
  border-radius: 22.5px; padding: 12px 24px; font-size: 12.5px; cursor: pointer;
}
.ghost:disabled { opacity: .55; cursor: default; }

#mm-msg {
  display: none; margin: 0; padding: 12px 14px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.55; text-align: left;
}
#mm-msg.err  { background: rgba(156,66,39,0.10);  color: #9c4227; border: 1px solid rgba(156,66,39,0.35); }
#mm-msg.ok   { background: rgba(119,134,67,0.12); color: #4d5a25; border: 1px solid rgba(119,134,67,0.40); }
#mm-msg.info { background: rgba(78,78,78,0.07);   color: #4e4e4e; border: 1px solid #c8c8c8; }

.foot {
  margin-top: clamp(38px, 6vh, 60px); padding-top: clamp(23px, 4vh, 30px);
  border-top: 1px solid #c8c8c8; width: 100%; max-width: 460px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot nav a { font-size: 13px; color: #4e4e4e; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 17px; font-size: 11px; letter-spacing: 0.04em; color: #4e4e4e; }
.legal a { color: #4e4e4e; }

/* koyu tema */
html[data-theme="dark"] body { background: #0e100d; color: #f1f2ee; }
html[data-theme="dark"] .wrap { background: radial-gradient(ellipse at 50% 30%, rgba(119,134,67,0.26) 0%, rgba(119,134,67,0.06) 55%, #0e100d 100%); }
html[data-theme="dark"] .brand { color: #f1f2ee; }
html[data-theme="dark"] .sub, html[data-theme="dark"] .lbl,
html[data-theme="dark"] .hint, html[data-theme="dark"] .backbtn,
html[data-theme="dark"] .foot nav a, html[data-theme="dark"] .legal,
html[data-theme="dark"] .legal a { color: #a9aea3; }
html[data-theme="dark"] input, html[data-theme="dark"] .backbtn,
html[data-theme="dark"] .foot { border-color: #24271f; }
html[data-theme="dark"] a { color: #9cb15a; }
html[data-theme="dark"] .ghost { border-color: #9cb15a; color: #9cb15a; }
html[data-theme="dark"] #mm-msg.err  { background: rgba(214,109,76,0.14); color: #e0a48d; border-color: rgba(214,109,76,0.40); }
html[data-theme="dark"] #mm-msg.ok   { background: rgba(156,177,90,0.14); color: #b8c97e; border-color: rgba(156,177,90,0.40); }
html[data-theme="dark"] #mm-msg.info { background: rgba(241,242,238,0.06); color: #a9aea3; border-color: #2b2f28; }

/* --- /eposta-degistir ve /hesap-kapat icin ek parcalar --- */
.tik {
  width: 42px; height: 42px; border-radius: 50%; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #778643; color: #778643; background: rgba(119,134,67,0.10);
}
.adres {font-family: 'Archivo', sans-serif; font-variation-settings: 'wdth' 112, 'wght' 800; font-weight: 800;
  font-size: clamp(17px, 2.6vw, 21px); letter-spacing: -0.01em; word-break: break-all; text-transform: uppercase }
.kutu { border: 1px solid #c8c8c8; border-radius: 15px; padding: 17px 18px; text-align: left; }
.kutu .kbas {
  display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 7px;
}
.kutu .kmetin { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4e4e4e; }
.kutu.tehlike { border-color: rgba(156,66,39,0.45); background: rgba(156,66,39,0.06); }
.kutu.tehlike .kbas { color: #9c4227; }

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.liste li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #4e4e4e; }
.liste li .mk { flex: 0 0 14px; font-weight: 600; color: #9c4227; }
.liste li:last-child .mk { color: #778643; }
.liste strong { color: #000000; font-weight: 600; }

.ikili { display: flex; gap: 10px; flex-wrap: wrap; }
.ikili > * { flex: 1 1 150px; }
.tehlikebtn {
  background: #9c4227; color: #ffffff; border: 1px solid transparent;
  border-radius: 22.5px; padding: 14px 26px; font-size: 13px; cursor: pointer;
}
.tehlikebtn:hover:not(:disabled) { background: #85361f; }
.tehlikebtn:disabled { opacity: .45; cursor: default; }
#hk-onay { letter-spacing: 0.08em; text-transform: uppercase; }

html[data-theme="dark"] .tik { border-color: #9cb15a; color: #9cb15a; background: rgba(156,177,90,0.12); }
html[data-theme="dark"] .kutu { border-color: #2b2f28; }
html[data-theme="dark"] .kutu .kmetin, html[data-theme="dark"] .liste li { color: #b3b8ab; }
html[data-theme="dark"] .liste strong { color: #f1f2ee; }
html[data-theme="dark"] .kutu.tehlike { border-color: rgba(224,145,122,0.42); background: rgba(224,145,122,0.08); }
html[data-theme="dark"] .kutu.tehlike .kbas { color: #e0917a; }
html[data-theme="dark"] .liste li .mk { color: #e0917a; }
html[data-theme="dark"] .liste li:last-child .mk { color: #9cb15a; }
html[data-theme="dark"] .tehlikebtn { background: #b04d2c; }
html[data-theme="dark"] .tehlikebtn:hover:not(:disabled) { background: #c9583280; }

/* --- Sifre kural olceri (/sifre-sifirla) ---------------------------------
   mm-auth.js -> sifreOlcer() bu isaretleri doldurur. Kural listesi kutu
   BOSKEN DE gorunur: kullanici ne beklendigini yazmadan once gorsun, hata
   mesajiyla ogrenmesin. Ayni siniflar /giris sayfasinda satir ici stilde
   tekrar ediyor (o sayfa mm-auth-pages.css yuklemiyor). */
.sfkutu { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; text-align: left; }
.sfk { font-size: 11px; line-height: 1.5; color: #9c4227; letter-spacing: .01em; }
.sfk.on { color: #4d5a25; }
.sfk.bos { color: #4e4e4e; }
html[data-theme="dark"] .sfk { color: #e0a48d; }
html[data-theme="dark"] .sfk.on { color: #b8c97e; }
html[data-theme="dark"] .sfk.bos { color: #a9aea3; }

/* --- Görsel iyileştirme (11. tur) ----------------------------------------
   Yalnız görünüm: hiçbir seçici yeni bir kural/akış getirmez, mevcut sınıf
   adları aynı kalır. Amaç üç şey: odak nerede belli olsun, hata/başarı
   kutusu göze çarpsın, dokunma alanları gevşesin. Palet değişmedi
   (#0e100d zemin, #9cb15a / #778643 vurgu). */

/* Odak: yalnız alt çizgi rengi değişiyordu, klavyeyle gezerken zor
   seçiliyordu. Artık alan hafifçe doluyor ve etiketi de renkleniyor. */
input { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
input::placeholder { color: #9a9a9a; opacity: 1; }
label:focus-within .lbl { color: #778643; }
/* Etiket sola: input metni, ipucu ve kural satirlari zaten solda hizali;
   yalniz etiket ortada duruyordu (.wrap ortaliyor). */
.lbl { transition: color .18s ease; text-align: left; }

/* Klavye kullanıcısı için görünür halka (fare tıklamasında çıkmaz). */
a:focus-visible, button:focus-visible {
  outline: 2px solid #778643; outline-offset: 3px; border-radius: 8px;
}

/* Düğmeler: basılma geri bildirimi yoktu. */
.primary, .ghost, .tehlikebtn {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.primary:hover:not(:disabled) { background: #66742f; }
.primary:active:not(:disabled), .ghost:active:not(:disabled) { transform: translateY(1px); }
.ghost:hover:not(:disabled) { background: rgba(119,134,67,0.09); }

/* <a class="ghost"> düğme gibi görünsün (mode-oauth'taki sağlayıcı bağlantısı). */
.baglink { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.baglink:hover { color: #778643; }

/* Sola hizalı ipucu (mevcut şifre alanının altındaki açıklama). */
.hint.alt { text-align: left; margin-top: 8px; }

/* Durum kutusu: sessizce beliriyordu, gözden kaçıyordu. */
#mm-msg.err, #mm-msg.ok, #mm-msg.info { animation: mmGir .22s ease-out both; }
#mm-msg { border-left-width: 3px; }
@keyframes mmGir { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* Kural ölçeri: işaretler yer değiştirdikçe zıplıyordu. */
.sfk { transition: color .18s ease; }
.sfkutu { min-height: 17px; }

/* Hareketi azalt tercihine saygı. */
@media (prefers-reduced-motion: reduce) {
  input, .primary, .ghost, .tehlikebtn, .lbl, .sfk { transition: none; }
  #mm-msg.err, #mm-msg.ok, #mm-msg.info { animation: none; }
}

/* Koyu tema karşılıkları */
html[data-theme="dark"] input { border-color: #2b2f28; background: rgba(156,177,90,0.05); }
html[data-theme="dark"] input::placeholder { color: #7d8277; }
html[data-theme="dark"] input:focus {
  border-color: #9cb15a; background: rgba(156,177,90,0.11);
  box-shadow: 0 0 0 4px rgba(156,177,90,0.18), 0 8px 26px -12px rgba(156,177,90,0.6);
}
html[data-theme="dark"] label:focus-within .lbl { color: #9cb15a; }
html[data-theme="dark"] a:focus-visible, html[data-theme="dark"] button:focus-visible { outline-color: #9cb15a; }
html[data-theme="dark"] .primary { background: #9cb15a; color: #0e100d; }
html[data-theme="dark"] .primary:hover:not(:disabled) { background: #adc169; }
html[data-theme="dark"] .ghost:hover:not(:disabled) { background: rgba(156,177,90,0.12); }
html[data-theme="dark"] .baglink:hover { color: #adc169; }
