/* Giriş ekranları — login · two_factor · register · forgot_password · reset_password
   İşaretleme: core/auth_shell.php · Döngü: admin/assets/auth-showcase.js

   Aynı tasarım marketplace.takdig.com/giris'te de vardır (takdig-web:
   frontend/src/responsive.css ▸ "Giriş ekranı"). Aşağıdaki .td-login / .td-sc
   blokları oradan KOPYALANMIŞTIR; birini değiştirirken diğerini de güncelleyin.
   Bootstrap'e özgü eklemeler dosyanın sonundadır.

   Sağ panel 992px altında GİZLENİR (form sütunu ~440px ister, yan yana
   sığmaz); auth-showcase.js de aynı eşikte oynatıcıyı hiç indirmez. */

body.td-login-body { margin: 0; background: #fff; }

.td-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
  font-family: 'Mazzard', 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #0F1629;
}
.td-login-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 20px 20px;
}
.td-login-top { display: flex; align-items: center; min-height: 32px; }
.td-login-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: #58627A; text-decoration: none;
}
.td-login-back:hover { color: #364EFF; }
.td-login-center {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0 32px;
}
.td-login-box { width: 100%; max-width: 400px; }
.td-login-box.is-wide { max-width: 460px; }
.td-login-box > .td-login-back { margin-bottom: 18px; }
.td-login-logo { display: block; height: 44px; width: auto; margin: 0 auto 28px; }
.td-login-h1 {
  margin: 0 0 8px; text-align: center;
  font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #0F1629;
}
.td-login-sub {
  margin: 0 0 28px; text-align: center;
  font-size: 14.5px; line-height: 1.6; color: #58627A;
}
.td-login-h1.is-left, .td-login-sub.is-left { text-align: left; }
.td-login-h1.is-left { font-size: 22px; }
.td-login-sub.is-left { margin-bottom: 20px; }
.td-login-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  margin: 0 0 24px;
}
.td-login-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: #364EFF;
}
.td-login-link:hover { text-decoration: underline; }
.td-login-link.is-muted { font-weight: 500; color: #58627A; }
.td-login-link.is-muted:hover { color: #364EFF; }
.td-login-terms {
  margin: 22px 0 0;
  font-size: 13px; line-height: 1.65; color: #58627A;
}
.td-login-terms a { color: #364EFF; text-decoration: none; }
.td-login-terms a:hover { text-decoration: underline; }
.td-login-alt { margin: 22px 0 0; text-align: center; font-size: 14px; color: #58627A; }
.td-login-foot { margin: 0; text-align: center; font-size: 12px; color: #9399AC; }
.td-login-stepicon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #EEF1FF; color: #364EFF; font-size: 24px;
}
.td-login-stepno {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 12px;
  background: #EEF1FF; color: #364EFF; font-size: 12px; font-weight: 700;
}
.td-login-steptitle { font-size: 13.5px; font-weight: 600; color: #0F1629; }
.td-login-otp { display: flex; justify-content: center; margin-bottom: 22px; }
.td-login-note {
  margin: 16px 0 0; text-align: center;
  font-size: 12.5px; line-height: 1.6; color: #9399AC;
}
.td-login-note-box {
  padding: 10px 12px; border: 1px solid #E4E8F4; border-radius: 8px;
  background: #FAFBFF; color: #58627A;
}
.td-login-qr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 8px; padding: 12px;
  border: 1px solid #E4E8F4; border-radius: 10px; background: #FAFBFF;
}
.td-login-warn {
  display: flex; gap: 8px; margin-top: 14px; padding: 9px 12px;
  border: 1px solid #FDE68A; border-radius: 8px; background: #FFFBEB;
  font-size: 12px; line-height: 1.55; color: #92400E;
}
@media (min-width: 576px) {
  .td-login-main { padding: 24px 40px 24px; }
  .td-login-h1 { font-size: 28px; }
}
/* Alçak ekranlar (1280×800, 1366×768 …): form kaydırmadan sığsın. */
@media (max-height: 860px) {
  .td-login-center { padding: 8px 0 16px; }
  .td-login-logo { height: 36px; margin-bottom: 18px; }
  .td-login-sub { margin-bottom: 20px; }
  .td-login-terms, .td-login-alt { margin-top: 14px; }
}

/* Sağ panel + tanıtım döngüsü */
.td-login-aside { display: none; }
@media (min-width: 992px) {
  .td-login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .td-login-aside {
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    padding: clamp(24px, 3.2vw, 56px);
    background: linear-gradient(165deg, #4A60FF 0%, #364EFF 50%, #2C41E6 100%);
    overflow: hidden;
  }
}
.td-sc {
  display: flex; flex-direction: column;
  width: 100%; max-width: 640px;
  height: 100%; max-height: 820px;
  padding: clamp(24px, 2.8vw, 44px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 32px;
  background: rgba(255, 255, 255, .1);
}
.td-sc-stage { position: relative; flex: 1; min-height: 0; }
.td-sc-anim { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.td-sc-anim.is-on { opacity: 1; }
.td-sc-copy { display: grid; margin-top: clamp(16px, 2.5vh, 32px); }
.td-sc-text {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.td-sc-text.is-on {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s;
}
.td-sc-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; font-weight: 700;
  letter-spacing: -.015em; color: #fff;
}
.td-sc-desc {
  margin: 0; max-width: 46ch;
  font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .86);
}
.td-sc-dots { display: flex; justify-content: center; gap: 2px; margin-top: clamp(18px, 3vh, 36px); }
/* Tıklama alanı 24px; görünen nokta ::before. */
.td-sc-dot {
  display: flex; align-items: center; justify-content: center;
  height: 24px; min-width: 24px; padding: 0 4px;
  border: 0; border-radius: 12px; background: none; cursor: pointer;
}
.td-sc-dot::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 5px;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, background-color .3s ease;
}
.td-sc-dot:hover::before { background: rgba(255, 255, 255, .75); }
.td-sc-dot.is-on::before { width: 32px; background: #fff; }
.td-sc-dot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .td-sc-anim, .td-sc-text, .td-sc-text.is-on, .td-sc-dot::before { transition: none; }
}


/* ── Bootstrap uyarlamaları ──────────────────────────────────────────────── */
.td-login .form-label { margin-bottom: 6px; font-size: 14px; font-weight: 500; color: #29314F; }
.td-login .form-control,
.td-login .form-select {
  min-height: 48px; padding: 10px 14px;
  border: 1px solid #DDE3F2; border-radius: 8px;
  font-size: 15px; color: #0F1629;
}
.td-login .form-control::placeholder { color: #A3A9BA; }
.td-login .form-control:focus,
.td-login .form-select:focus {
  border-color: #364EFF;
  box-shadow: 0 0 0 3px rgba(54, 78, 255, .14) !important;
}
.td-login .form-control-lg { min-height: 54px; font-size: 20px; }
.td-login .input-group > .form-control,
.td-login .input-group > .form-select,
.td-login .input-group > .input-group-text { border-radius: 0; }
.td-login .input-group > :first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.td-login .input-group > :last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.td-login .input-group-text { border-color: #DDE3F2; background: #F6F8FE; color: #58627A; }
.td-login .form-text { font-size: 12.5px; color: #58627A; }
.td-login .form-check { display: flex; align-items: flex-start; gap: 8px; min-height: 0; padding-left: 0; }
.td-login .form-check .form-check-input { flex: none; float: none; width: 18px; height: 18px; margin: 2px 0 0; border-color: #C9D2EC; border-radius: 4px; cursor: pointer; }
.td-login .form-check .form-check-label { cursor: pointer; font-size: 14px; color: #29314F; }
.td-login .form-check-input:focus { box-shadow: 0 0 0 3px rgba(54, 78, 255, .18); border-color: #364EFF; }
.td-login .alert { border-radius: 8px; font-size: 13.5px; }
.td-login a.td-login-link { text-decoration: none; }
.td-login a.td-login-link:hover { text-decoration: underline; }

.td-login .btn-takdig {
  min-height: 48px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
}
.td-login .btn-takdig:hover { background: #2B40E8; border-color: #2B40E8; }
.td-login-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px;
}

/* Bilgi / durum ekranları (e-posta gönderildi, şifre güncellendi …) */
.td-login-state { text-align: center; }
.td-login-state .td-login-stepicon { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; }
.td-login-state .td-login-stepicon.is-ok { background: rgba(69, 219, 150, .16); color: #1F9D63; }
.td-login-state .td-login-stepicon.is-muted { background: #EEF0F6; color: #29314F; }
.td-login-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: #9399AC; }
.td-login-box .btn-link { font-size: 13.5px; }

/* Şifre göster/gizle + kural listesi (register · reset_password · login) */
.td-pw-wrap { position: relative; }
.td-pw-wrap .form-control { padding-right: 44px; }
.td-pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  padding: 6px 8px; border: 0; background: transparent; line-height: 1;
  color: rgba(41, 49, 79, .55); cursor: pointer;
}
.td-pw-toggle:hover { color: #364EFF; }
.td-pw-rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .9rem; margin: .6rem 0 0; padding: 0; }
.td-pw-rules li { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: rgba(41, 49, 79, .6); transition: color .15s; }
.td-pw-rules li i { font-size: .85rem; }
.td-pw-rules li.ok { color: #1F9D63; }
@media (max-width: 359px) { .td-pw-rules { grid-template-columns: 1fr; } }
/* Bootstrap gövde yazısı 16px'tir; satır içi bağlantılar (Şifremi unuttum?) ona büyümesin. */
.td-login-row { font-size: 14px; }
.td-login .form-check .form-check-input:not(:checked) { background-color: #fff; }
