/* ============================================================
   PINBOARD — auth.css  (/signin /signup /reset-password)
   Home page ile AYNI renk dili (app.css token'lari, mavi --accent, 4 tema uyumlu).
   Ortalanmis KONTAINERLI kart (tavana/tabana yapismaz): sol accent bilgi paneli +
   sag beyaz form. Sistem fontlari (app ile tutarli).
   ============================================================ */

body[data-sayfa="auth"] { background: var(--bg); margin: 0; }

.auth-shell {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; box-sizing: border-box;
  background:
    radial-gradient(680px 480px at 14% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(720px 520px at 88% 92%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    radial-gradient(900px 560px at 50% -12%, var(--accent-soft), transparent 70%),
    var(--bg);
}

/* ---------------- arka plan dekorasyonu (doluluk) ---------------- */
.auth-deko { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ad-orb { position: absolute; border-radius: 50%; filter: blur(72px); }
.ad-orb-1 {
  top: -140px; left: -110px; width: 420px; height: 420px; opacity: .5;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%);
}
.ad-orb-2 {
  bottom: -160px; right: -120px; width: 480px; height: 480px; opacity: .42;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-ink) 55%, transparent), transparent 70%);
}
/* nokta grid — kenarlarda belirgin, ortada (kart) soluk */
.ad-grid {
  position: absolute; inset: -20px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 1.4px, transparent 1.4px);
  background-size: 28px 28px; opacity: .5;
  -webkit-mask-image: radial-gradient(circle at center, transparent 28%, #000 72%);
          mask-image: radial-gradient(circle at center, transparent 28%, #000 72%);
}
/* yuzen mini kartlar */
.ad-card {
  position: absolute; border-radius: 16px; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 18px 40px -20px rgba(20,24,40,.45);
}
.ad-card-1 { --r: 7deg; top: 13%; right: 8%; width: 168px; height: 112px; transform: rotate(7deg); opacity: .9; animation: adFloat 9s ease-in-out infinite; }
.ad-card-2 { --r: -8deg; bottom: 12%; left: 7%; width: 150px; height: 100px; transform: rotate(-8deg); opacity: .85; animation: adFloat 11s ease-in-out infinite .8s; }
.ad-card::before, .ad-card::after {
  content: ""; position: absolute; left: 16px; height: 7px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.ad-card::before { top: 22px; width: 56%; }
.ad-card::after { top: 38px; width: 38%; background: var(--border); }
/* pill / ring / dot */
.ad-pill {
  position: absolute; top: 22%; left: 11%; width: 92px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  opacity: .9; animation: adFloat 10s ease-in-out infinite .4s;
}
.ad-ring {
  position: absolute; bottom: 20%; right: 13%; width: 76px; height: 76px; border-radius: 50%;
  border: 7px solid color-mix(in srgb, var(--accent) 28%, transparent); opacity: .8;
  animation: adFloat 12s ease-in-out infinite .2s;
}
.ad-dot {
  position: absolute; top: 70%; left: 18%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); opacity: .5; animation: adFloat 8s ease-in-out infinite .6s;
}
@keyframes adFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .ad-card, .ad-pill, .ad-ring, .ad-dot { animation: none; } }

/* Kontainerli kart — ortada yuzer, kenarlara degmez */
.auth-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: 1.04fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,24,40,.05), 0 30px 70px -28px rgba(20,24,40,.40);
}

/* ---------------- SOL: accent bilgi paneli (mavi, home dili) ---------------- */
.auth-brand {
  position: relative; overflow: hidden;
  padding: 46px 44px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-ink) 100%);
}
.auth-brand-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 88% 6%, rgba(255,255,255,.22), transparent 50%),
    repeating-radial-gradient(circle at 86% 18%, rgba(255,255,255,.08) 0 1px, transparent 1px 50px);
}
.auth-wordmark {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 11px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
}
.auth-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.auth-mark svg { width: 21px; height: 21px; }

.auth-brand-orta { position: relative; z-index: 2; }
.auth-brand-bas {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 750; line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 14px;
}
.auth-brand-alt { max-width: 34ch; color: rgba(255,255,255,.84); font-size: .98rem; line-height: 1.6; margin: 0 0 24px; }
.auth-brand-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand-liste li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-size: .94rem; }
.ab-tik {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.ab-tik svg { width: 13px; height: 13px; }
.auth-brand-ayak { position: relative; z-index: 2; color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .04em; margin: 0; }

/* ---------------- SAĞ: beyaz form ---------------- */
.auth-panel {
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  padding: 46px 42px;
}
.auth-card { width: 100%; max-width: 348px; display: flex; flex-direction: column; }

.auth-kicker { font-size: .7rem; letter-spacing: .2em; font-weight: 700; color: var(--accent-ink); margin-bottom: 14px; }
.auth-title { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.12; color: var(--text); margin: 0 0 8px; }
.auth-sub { color: var(--text-soft); font-size: .96rem; line-height: 1.5; margin: 0 0 26px; }

.af-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.af-label { font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.af-input { position: relative; display: block; }
.af-input > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-dim); pointer-events: none; transition: color .15s;
}
.af-input:focus-within > svg { color: var(--accent); }
.af-input input {
  width: 100%; box-sizing: border-box; padding: 13px 44px 13px 42px; font-size: 16px;
  border: 1px solid var(--border-2, var(--border)); border-radius: 11px;
  background: var(--bg-soft); color: var(--text); min-height: 48px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.af-input input::placeholder { color: var(--text-dim); }
.af-input input:focus {
  outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* parola goster/gizle */
.af-goz {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--text-dim); cursor: pointer; border-radius: 8px;
  transition: color .15s, background .15s;
}
.af-goz:hover { color: var(--text-soft); background: color-mix(in srgb, var(--text) 6%, transparent); }
.af-goz svg { width: 18px; height: 18px; }
.af-goz .goz-kapa { display: none; }
.af-goz.acik .goz-ac { display: none; }
.af-goz.acik .goz-kapa { display: inline; }

#kilit-kural, .af-kural {
  margin-top: 9px; font-size: .78rem; color: var(--text-dim); line-height: 1.4;
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s;
}
#kilit-kural.ok { color: var(--good); }
#kilit-kural.ok::before { content: "✓"; font-weight: 700; }

.af-hata {
  background: var(--danger-soft); color: var(--danger); border-radius: 10px;
  padding: 9px 13px; font-size: .86rem; line-height: 1.4; margin-bottom: 14px;
}
.af-hata[hidden] { display: none; }

.af-submit {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 18px; min-height: 50px; border: none; border-radius: 11px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 650; letter-spacing: .01em; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 75%, transparent);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.af-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.af-submit:active { transform: translateY(0); }
.af-submit:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.af-ok { width: 18px; height: 18px; transition: transform .18s; }
.af-submit:hover .af-ok { transform: translateX(3px); }

.af-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.af-links a { color: var(--text-soft); text-decoration: none; font-size: .92rem; transition: color .15s; }
.af-links a b { color: var(--text); font-weight: 650; }
.af-links a:hover, .af-links a:hover b { color: var(--accent); }
.af-link-zayif { color: var(--text-dim) !important; font-size: .86rem !important; }
.af-not { margin: 18px 0 0; color: var(--text-dim); font-size: .8rem; line-height: 1.55; }

/* ---------------- kademeli giris animasyonu ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .auth-box { animation: authBox .5s cubic-bezier(.2,.7,.3,1) both; }
  .auth-card > * { animation: authUp .5s cubic-bezier(.2,.7,.3,1) both; }
  .auth-card > *:nth-child(1) { animation-delay: .08s; }
  .auth-card > *:nth-child(2) { animation-delay: .12s; }
  .auth-card > *:nth-child(3) { animation-delay: .16s; }
  .auth-card > *:nth-child(4) { animation-delay: .20s; }
  .auth-card > *:nth-child(5) { animation-delay: .24s; }
  .auth-card > *:nth-child(6) { animation-delay: .28s; }
  .auth-card > *:nth-child(7) { animation-delay: .32s; }
  .auth-card > *:nth-child(8) { animation-delay: .36s; }
}
@keyframes authBox { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes authUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 820px) {
  .auth-box { grid-template-columns: 1fr; max-width: 440px; }
  .auth-brand { padding: 34px 30px; gap: 18px; }
  .auth-brand-bas { font-size: 1.6rem; }
  .auth-brand-liste { display: none; }
  .auth-brand-ayak { display: none; }
  .auth-panel { padding: 34px 30px 38px; }
  .auth-card { max-width: none; }
  .ad-card, .ad-pill, .ad-ring, .ad-dot { display: none; }
}
@media (max-width: 420px) {
  .auth-shell { padding: 0; }
  .auth-box { border-radius: 0; min-height: 100vh; border: none; }
}
