/* Kobaküs — Login v2 (27.09.2026)
   kobakus.com marka çizgisi: sakin, beyaz kart, ince çizgiler, tek vurgu (yeşil/teal), lacivert marka paneli.
   Bootstrap'a dayanmaz; yalnız login-v2 şablonları (body.kbl) kullanır.
   Yazı tipi: fonts/hanken/hanken.css — şablon <link> ile yükler; yoksa sistem sans-serif'e düşer. */

:root {
  --ink: #08222C; --ink-2: #4A5F64; --ink-3: #7E9094;
  --navy: #0A2A36; --navy-2: #06202A;
  --green: #2ED15E; --green-d: #16B95A; --teal: #0E8C8E; --teal-d: #0B6A74;
  --amber: #F5A623; --orange: #F4521E;
  --bg: #FFFFFF; --bg-soft: #F4F8F7; --bg-mute: #EAF1F0;
  --line: #E2EAE9; --line-2: #D2DEDC; --on-dark: #E9F3F1;
  --grad: linear-gradient(118deg, #2ED15E 0%, #11A878 44%, #0E8C8E 100%);
  --grad-dark: linear-gradient(140deg, #0C3340 0%, #0A2A36 60%, #06202A 100%);
  --grad-soft: linear-gradient(118deg, rgba(46,209,94,.14), rgba(14,140,142,.14));
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --sh-sm: 0 1px 2px rgba(8,34,44,.06), 0 2px 8px rgba(8,34,44,.05);
  --sh: 0 4px 14px rgba(8,34,44,.07), 0 18px 40px -18px rgba(8,34,44,.18);
  --ring: 0 0 0 4px rgba(46,209,94,.18);
  --font: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.kbl {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.kbl img { max-width: 100%; }
.kbl a { color: var(--teal-d); text-decoration: none; }
.kbl a:hover, .kbl a:focus { color: var(--teal); text-decoration: underline; }
.kbl :focus { outline: none; }
.kbl :focus-visible { box-shadow: var(--ring); border-radius: 6px; }

/* ---------- iskelet: mobilde tek sütun, geniş ekranda iki panel ---------- */
.kbl-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- sol / üst: marka paneli ---------- */
.kbl-brand {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background-image: var(--grad-dark);
  color: var(--on-dark);
  padding: 22px 20px 44px;
}
/* yumuşak ışık lekesi */
.kbl-brand::before {
  content: "";
  position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,209,94,.16), rgba(14,140,142,0));
  pointer-events: none;
}
.kbl-brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.kbl-logo { display: block; width: 150px; height: auto; }
.kbl-pitch h1 {
  margin: 14px 0 0;
  font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em;
  color: #FFFFFF;
}
.kbl-pitch p, .kbl-pitch ul, .kbl-brand-foot { display: none; }
/* ince dekoratif yeşil-teal şerit */
.kbl-ribbon {
  position: absolute; left: -6%; right: -6%; bottom: 34px; /* kart 24px biner; şerit kartın hemen üstünde kalsın */
  height: 4px; border-radius: 999px;
  background: var(--grad);
  opacity: .9;
  transform: rotate(-2deg);
}

/* ---------- sağ / alt: form paneli ---------- */
.kbl-pane {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 16px 32px;
  margin-top: -24px; /* kart, mobilde marka bandının üstüne hafif biner */
}
.kbl-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 28px 22px 22px;
}

/* başlık */
.kbl-head { margin-bottom: 20px; }
.kbl-hello {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: var(--teal-d);
}
.kbl-hello svg { width: 18px; height: 18px; flex: 0 0 18px; }
.kbl-title { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.kbl-sub { margin: 0; font-size: 14px; color: var(--ink-2); }
.kbl-sub strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* bildirimler: sunucudan gelen {$notify} (.alert) + şablon içi $hata (.kbl-alert) */
.kbl-alert, .kbl .alert {
  position: relative;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}
.kbl-alert-err, .kbl .alert-danger { background: #FDF1EE; border-color: rgba(244,82,30,.35); color: #9A2E12; }
.kbl .alert-success { background: #ECFBF1; border-color: rgba(22,185,90,.35); color: #146B3A; }
.kbl .alert-warning { background: #FFF7E8; border-color: rgba(245,166,35,.45); color: #7A4F06; }
.kbl .alert-info { background: #EAF6F6; border-color: rgba(14,140,142,.35); color: var(--teal-d); }
.kbl .alert .close {
  float: right;
  margin: -4px -4px 0 10px;
  width: 26px; height: 26px;
  border: 0; border-radius: 6px;
  background: transparent;
  color: inherit; opacity: .55;
  font: inherit; font-size: 20px; line-height: 1;
  cursor: pointer;
}
.kbl .alert .close:hover { opacity: 1; }
.kbl .alert .fa { display: none; } /* Font Awesome yüklenmez; simge yerini boş bırakmasın */

/* form alanları */
.kbl-form { margin: 0; }
.kbl-field { margin-bottom: 16px; }
.kbl-field label, .kbl-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kbl-field input[type="text"],
.kbl-field input[type="password"],
.kbl-field input[type="tel"],
.kbl-field input[type="email"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin: 0;
  font-family: inherit; font-size: 16px; line-height: 44px; /* 16px: iOS odakta yakınlaştırmaz */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kbl-field input::placeholder { color: var(--ink-3); opacity: 1; }
.kbl-field input:hover { border-color: #BCCBC9; }
.kbl-field input:focus { border-color: var(--green-d); box-shadow: var(--ring); }
.kbl-field input[readonly] { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); }
.kbl-field input[readonly]:focus { border-color: var(--line-2); box-shadow: none; }
.kbl-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset; -webkit-text-fill-color: var(--ink); }

/* şifre alanı + göster/gizle */
.kbl-pw { position: relative; }
.kbl-pw input { padding-right: 46px; }
.kbl-eye {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
}
.kbl-eye:hover { color: var(--teal-d); background: var(--bg-soft); }
.kbl-eye[aria-pressed="true"] { color: var(--teal-d); }
.kbl-eye svg { width: 18px; height: 18px; }

/* tek kullanımlık kod alanı */
.kbl-otp input[type="text"] {
  height: 52px; line-height: 52px;
  font-size: 22px; font-weight: 600; letter-spacing: .32em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.sayac { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.sayac span { font-weight: 600; color: var(--teal-d); font-variant-numeric: tabular-nums; }

/* birincil düğme: --grad üzerine lacivert yazı (beyaz yazı açık yeşilde kontrastı kaybediyor) */
.kbl-btn {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: var(--navy-2);
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 46px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: box-shadow .15s ease, transform .12s ease, filter .15s ease;
  -webkit-appearance: none; appearance: none;
}
.kbl-btn:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(14,140,142,.22); }
.kbl-btn:active { transform: translateY(1px); }
.kbl-btn:focus-visible { box-shadow: var(--ring), var(--sh-sm); }
.kbl-btn-disabled { background: var(--bg-mute); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }

/* yardımcı satırlar */
.kbl-links { margin: 16px 0 0; text-align: center; font-size: 14px; }
.kbl-links a { font-weight: 500; }
.kbl-foot {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}
.kbl-foot a { color: var(--ink-3); }

/* ---------- geniş ekran: iki panel ---------- */
@media (min-width: 900px) {
  .kbl-shell { flex-direction: row; }
  .kbl-brand {
    flex: 0 0 44%;
    max-width: 640px;
    min-height: 100vh;
    padding: 48px 56px 56px;
  }
  .kbl-logo { width: 190px; }
  .kbl-pitch { margin: auto 0; padding: 48px 0; max-width: 420px; }
  .kbl-pitch h1 { margin: 0 0 12px; font-size: 32px; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; }
  .kbl-pitch p { display: block; margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: rgba(233,243,241,.78); }
  .kbl-pitch ul { display: block; list-style: none; margin: 0; padding: 0; }
  .kbl-pitch li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 15px; font-weight: 500;
    color: rgba(233,243,241,.92);
  }
  .kbl-pitch li::before {
    content: "";
    position: absolute; left: 4px; top: 14px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 4px rgba(46,209,94,.14);
  }
  .kbl-ribbon { left: auto; right: -40px; bottom: 96px; width: 62%; height: 5px; transform: rotate(-6deg); opacity: .85; }
  .kbl-brand-foot { display: block; margin: 0; font-size: 12px; letter-spacing: .04em; color: rgba(233,243,241,.55); }
  .kbl-pane { align-items: center; padding: 40px 32px; margin-top: 0; }
  .kbl-card { max-width: 460px; padding: 40px 40px 26px; }
  .kbl-title { font-size: 26px; }
}
@media (min-width: 1280px) {
  .kbl-brand { padding: 56px 72px 64px; }
  .kbl-pitch h1 { font-size: 36px; }
}

/* ---------- küçük telefonlar ---------- */
@media (max-width: 380px) {
  .kbl-card { padding: 24px 18px 18px; }
  .kbl-title { font-size: 22px; }
}

/* hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  .kbl *, .kbl *::before, .kbl *::after { transition: none !important; }
}

/* 27.09.2026 — 10. yıl rozeti v2 (modern: kurdelesiz cam kare, konik gradyan ince çerçeve, hafif ışıma) + mali müşavir bağlantıları */
.kbl-medal { position: absolute; right: 16px; top: 14px; width: 60px; height: 60px; padding: 1.5px; border-radius: 30%; background: conic-gradient(from 210deg, #2ED15E, #0E8C8E 45%, rgba(233,243,241,.35) 70%, #2ED15E); box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 40px rgba(46,209,94,.12); transform: rotate(6deg); z-index: 2; }
.kbl-medal .in { width: 100%; height: 100%; border-radius: 30%; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%), #0A2A36; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #E9F3F1; transform: rotate(-6deg); }
.kbl-medal .n { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(118deg, #7CF0A0, #2ED15E 40%, #34C6B8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kbl-medal .t { font-size: 7px; font-weight: 700; letter-spacing: .22em; margin-top: 3px; color: rgba(233,243,241,.85); }
.kbl-medal::after { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2ED15E; box-shadow: 0 0 0 3px rgba(46,209,94,.22), 0 0 14px rgba(46,209,94,.8); }
.kbl-pitch-link { color: #E9F3F1; text-decoration: underline; text-decoration-color: rgba(46,209,94,.7); text-underline-offset: 3px; }
.kbl-pitch-link:hover { color: #fff; text-decoration-color: #2ED15E; }
.kbl-links-sub { margin-top: 10px; font-size: 13px; color: #7E9094; }
.kbl-links-sub a { color: #0E8C8E; font-weight: 600; }
@media (min-width: 900px) {
  .kbl-medal { right: 44px; top: 44px; width: 92px; height: 92px; padding: 2px; }
  .kbl-medal .n { font-size: 38px; }
  .kbl-medal .t { font-size: 9px; margin-top: 4px; }
  .kbl-medal::after { top: -8px; width: 8px; height: 8px; margin-left: -4px; }
}

/* 27.09.2026 — Kayıt / demo hesabı formu (kayit.tpl). Login kartıyla aynı dil; yalnız ek bileşenler, mevcut kurallar değişmedi. */
.kbl-card-wide { max-width: 520px; }
.kbl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.kbl-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.kbl-hint.is-ok { color: var(--teal-d); }
.kbl-hint.is-err { color: #9A2E12; }
.kbl-field.is-hidden { display: none; }
.kbl-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.kbl-check input { margin: 3px 0 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--green-d); }
.kbl-check a { text-decoration: underline; text-underline-offset: 2px; }
.kbl-hp { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; }
.kbl-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: k; }
.kbl-steps li { position: relative; padding: 9px 0 9px 36px; font-size: 14px; line-height: 1.45; color: var(--ink-2); border-top: 1px solid var(--line); }
.kbl-steps li:first-child { border-top: 0; }
.kbl-steps li::before { counter-increment: k; content: counter(k); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-soft); color: var(--teal-d); font-size: 12px; font-weight: 700; text-align: center; line-height: 24px; }
.kbl-kv { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); }
.kbl-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.kbl-kv div:first-child { border-top: 0; }
.kbl-kv .k { color: var(--ink-3); flex: 0 0 auto; }
.kbl-kv .v { font-weight: 600; color: var(--ink); text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; }
.kbl-btn-ghost { background: var(--bg); color: var(--teal-d); border: 1px solid var(--line-2); box-shadow: none; }
.kbl-btn-ghost:hover { filter: none; background: var(--bg-soft); box-shadow: none; }
a.kbl-btn { display: block; text-decoration: none; }
a.kbl-btn:hover, a.kbl-btn:focus { color: var(--navy-2); text-decoration: none; }
.kbl-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 480px) { .kbl-grid2 { grid-template-columns: 1fr; gap: 0; } }
@media (min-width: 900px) { .kbl-card-wide { max-width: 560px; } }

/* 27.09.2026 (2. tur) — canlı alan doğrulama durumları + SMS kodu ekranı (kayit.tpl). Geçersiz alanda odak halkası KIRMIZI. */
.kbl-field.is-invalid input { border-color: #F4521E; }
.kbl-field.is-invalid input:hover { border-color: #F4521E; }
.kbl-field.is-invalid input:focus { border-color: #F4521E; box-shadow: 0 0 0 4px rgba(244,82,30,.18); }
.kbl-field.is-valid input { border-color: var(--green-d); }
.kbl-field.is-valid input:focus { border-color: var(--green-d); box-shadow: var(--ring); }
.kbl-hint.is-ok::before { content: "\2713\00a0"; font-weight: 700; }
.kbl-hint.is-warn { color: #7A4F06; }
.kbl-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--teal-d); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.kbl-link:hover { color: var(--teal); }
.kbl-check.is-invalid { color: #9A2E12; }
.kbl-check.is-invalid input { outline: 2px solid #F4521E; outline-offset: 1px; border-radius: 3px; }
.kbl-btn[disabled], .kbl-btn.is-disabled { background: var(--bg-mute); color: var(--ink-3); cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.kbl-alert-ok { background: #ECFBF1; border-color: rgba(22,185,90,.35); color: #146B3A; }
.kbl-alert-info { background: #EAF6F6; border-color: rgba(14,140,142,.35); color: var(--teal-d); }
.kbl-otp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 14px 0 0; }
.kbl-btn-sm { display: inline-block; width: auto; height: 38px; line-height: 38px; padding: 0 16px; margin: 0; font-size: 14px; }
.kbl-btn-sm[disabled] { background: var(--bg); color: var(--ink-3); border-color: var(--line); }
.kbl-otp-kalan { font-size: 12px; color: var(--ink-3); }
