/* TemaDepo — Auth sayfaları — ExCaLuBuR */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.td-auth-body {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #141826;
  min-height: 100vh;
  background: #0d0e1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ---- Arka plan efekti ---- */
body.td-auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(85,88,223,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(122,126,240,.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Üst logo ---- */
.td-auth-top {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  text-align: center;
}

.td-auth-top__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.td-auth-top__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.td-auth-top__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

/* ---- Kart ---- */
.td-auth-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.td-auth-card {
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow:
    0 0 0 1px rgba(85,88,223,.12),
    0 24px 64px rgba(0,0,0,.28);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
}

.td-auth-card__head {
  margin-bottom: 24px;
  text-align: center;
}

.td-auth-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5558df, #7a7ef0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 14px;
}

.td-auth-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #141826;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.td-auth-card__sub {
  font-size: .88rem;
  color: #6d7388;
}

/* ---- Flash ---- */
.td-auth-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.td-auth-flash--success { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.td-auth-flash--error   { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.td-auth-flash--info    { background:#eff6ff; border:1px solid #bfdbfe; color:#1d4ed8; }

/* ---- Form ---- */
.td-auth-field { margin-bottom: 14px; }

.td-auth-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #4a5066;
  margin-bottom: 5px;
}

.td-auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e4e6ef;
  border-radius: 10px;
  background: #fafafa;
  font-size: .9rem;
  font-family: inherit;
  color: #141826;
  transition: border-color .15s, box-shadow .15s;
}

.td-auth-field input:focus {
  outline: none;
  border-color: #5558df;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(85,88,223,.1);
}

/* ---- Buton ---- */
.td-auth-actions { margin-top: 20px; }

.td-auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #5558df, #7a7ef0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(85,88,223,.35);
}

.td-auth-btn:hover { opacity: .9; }
.td-auth-btn:active { transform: scale(.98); }

/* ---- Alt linkler ---- */
.td-auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: .83rem;
  color: #6d7388;
}

.td-auth-links a {
  color: #5558df;
  text-decoration: none;
  font-weight: 700;
}

.td-auth-links a:hover { text-decoration: underline; }

/* ---- Alt dön linki ---- */
.td-auth-footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  text-align: center;
}

.td-auth-footer a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.td-auth-footer a:hover { color: rgba(255,255,255,.8); }

/* ---- Dev link ---- */
.td-auth-dev-link {
  display: block;
  margin-bottom: 12px;
  font-size: .75rem;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.5;
}

/* kart overflow */
.td-auth-card {
  overflow: hidden;
  word-break: break-word;
}

/* ---- Müşteri paneli shell ---- */
.td-panel-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
}

.td-panel-side {
  background: #0d0e1a;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.td-panel-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 600;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.td-panel-side a:hover,
.td-panel-side a.is-active {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-left-color: #5558df;
}

.td-panel-main {
  padding: 32px;
  background: #f4f5f9;
}

.td-panel-main h1 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #141826;
  letter-spacing: -.02em;
}

@media (max-width: 700px) {
  .td-panel-shell { grid-template-columns: 1fr; }
  .td-auth-card { padding: 24px 20px; }
}

/* ---- Dev block (yerel geliştirme) ---- */
.td-auth-dev {
  margin-bottom: 14px;
  font-size: .78rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 10px 12px;
  color: #5b21b6;
  line-height: 1.6;
}
.td-auth-dev a {
  color: #7c3aed;
  word-break: break-all;
  font-size: .72rem;
}
