/* ============================================================
   KILIFX Premium — Kimlik (Giriş / Kayıt / Şifremi Unuttum)
   Modern, mobile-first, self-contained (styles.css gerektirmez)
   ============================================================ */
:root {
  --accent: #e11d2a;
  --accent-dark: #c4161f;
  --ink: #141414;
  --ink-soft: #1a1a1a;
  --green: #1b8a4b;
  --cream: #f6f3ef;
  --line: #e7e2db;
  --muted: #8a847c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.accent { color: var(--accent); }

/* ---- shell: split on desktop, single on mobile ---- */
.k-shell { display: grid; grid-template-columns: 1.04fr 1fr; min-height: 100dvh; }

/* left brand panel */
.k-brand { position: relative; overflow: hidden; background: var(--ink); }
.k-brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.k-brand-shade { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(11,11,12,.72) 0%, rgba(11,11,12,.28) 42%, rgba(11,11,12,.78) 100%); }
.k-brand-inner { position: relative; height: 100%; padding: clamp(34px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.k-logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; }
.k-logo-mark { font-size: 25px; font-weight: 800; letter-spacing: 1px; }
.k-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 2.6px; }
.k-brand-quote { max-width: 440px; }
.k-brand-quote h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.14; letter-spacing: -0.6px; text-wrap: balance; }
.k-brand-quote p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.8); }
.k-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.k-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }

/* right form panel */
.k-panel { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 48px) clamp(18px, 5vw, 40px); }
.k-card { width: 100%; max-width: 424px; }

/* mobile brand header (hidden on desktop) */
.k-mobtop { display: none; }

/* headings */
.k-head { margin-bottom: 24px; }
.k-title { margin: 0 0 8px; font-size: clamp(24px, 6vw, 28px); font-weight: 800; letter-spacing: -0.5px; }
.k-desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: #6f6a63; }

/* segmented switch (login/register) */
.k-seg { display: flex; background: #eae5de; border-radius: 13px; padding: 4px; margin-bottom: 24px; }
.k-seg a { flex: 1; text-align: center; text-decoration: none; font-size: 14.5px; font-weight: 700; color: #8a847c; padding: 11px 0; border-radius: 10px; transition: background .18s, color .18s, box-shadow .18s; }
.k-seg a.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }

/* fields */
.k-form { display: flex; flex-direction: column; gap: 16px; }
.k-field { display: flex; flex-direction: column; gap: 7px; }
.k-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.k-input-wrap { position: relative; display: flex; align-items: center; }
.k-input-wrap > .k-ico { position: absolute; left: 15px; color: #b0aaa2; pointer-events: none; display: flex; }
.k-input {
  width: 100%; border: 1.5px solid #ddd7cf; border-radius: 13px; background: #fff;
  padding: 15px 16px 15px 44px; font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.k-input::placeholder { color: #b3ada5; font-weight: 500; }
.k-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.07); }
.k-toggle { position: absolute; right: 10px; background: none; border: none; cursor: pointer; color: #9a948d; display: flex; padding: 8px; border-radius: 8px; }
.k-toggle:hover { color: var(--ink); }
.k-hint { font-size: 12px; color: #9a948d; }

/* strength meter */
.k-strength { display: flex; gap: 5px; margin-top: 3px; }
.k-strength span { flex: 1; height: 4px; border-radius: 3px; background: #e2ddd5; transition: background .2s; }

.k-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.k-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: #55504a; user-select: none; }
.k-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cfc8bf; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.k-check-box svg { opacity: 0; color: #fff; transition: opacity .15s; }
.k-check input:checked + .k-check-box { background: var(--ink); border-color: var(--ink); }
.k-check input:checked + .k-check-box svg { opacity: 1; }
.k-check input:focus-visible + .k-check-box { box-shadow: 0 0 0 3px rgba(20,20,20,.15); }
.k-link { font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.k-link:hover { color: var(--accent); }

.k-submit {
  border: none; border-radius: 13px; background: var(--ink); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 700; padding: 16px 0; cursor: pointer; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .16s, transform .1s; min-height: 54px;
}
.k-submit:hover { background: var(--accent); }
.k-submit:active { transform: scale(.99); }
.k-submit.ok { background: var(--green); }

.k-or { display: flex; align-items: center; gap: 14px; margin: 2px 0; color: #a8a29a; font-size: 12.5px; font-weight: 600; }
.k-or::before, .k-or::after { content: ""; flex: 1; height: 1px; background: #ddd7cf; }
.k-social { display: flex; gap: 12px; }
.k-social-btn {
  flex: 1; border: 1.5px solid #ddd7cf; background: #fff; border-radius: 13px; padding: 13px 0; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: border-color .15s, background .15s;
}
.k-social-btn:hover { border-color: #b9b1a7; background: #fafafa; }

.k-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: #6f6a63; }
.k-foot .k-link { font-weight: 700; }

.k-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #6f6a63; padding: 6px 0; margin-bottom: 16px; text-decoration: none; }
.k-back:hover { color: var(--ink); }

/* success note */
.k-note { display: none; align-items: flex-start; gap: 11px; background: #eaf6ee; border: 1px solid #c9e8d4; border-radius: 13px; padding: 15px 16px; margin-top: 2px; }
.k-note.is-on { display: flex; animation: kFade .3s ease; }
@keyframes kFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.k-note svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.k-note-text { font-size: 13.5px; line-height: 1.5; color: #1f6b3f; font-weight: 600; }

/* resend inline mail preview icon block for forgot */
.k-mailbox { width: 62px; height: 62px; border-radius: 16px; background: #fdeaec; color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .k-shell { grid-template-columns: 1fr; }
  .k-brand { display: none; }
  /* .k-panel flex satır olduğu için mobil başlık ile form YAN YANA diziliyordu → sütun */
  .k-panel { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; background: var(--cream); }
  .k-card { max-width: 480px; margin: 0 auto; }

  /* mobile brand header */
  .k-mobtop { display: block; background: var(--ink); padding: 22px 20px 20px; text-align: center; }
  .k-mobtop .k-logo { color: #fff; justify-content: center; }
  .k-mobtop-tag { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 7px; font-weight: 500; }
  .k-panel-pad { padding: 26px 18px 40px; }
}
@media (min-width: 861px) {
  .k-panel-pad { display: contents; }
}
@media (max-width: 400px) {
  .k-social { flex-direction: column; }
  .k-title { font-size: 23px; }
}

/* ============ TEMA DENETİMİ DÜZELTMELERİ ============ */
/* Görselsiz marka paneli (şifremi unuttum) */
.k-brand--duz { background: linear-gradient(155deg, #2b2523 0%, #141414 58%, #0b0b0c 100%); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
