/* Üye girişi / kayıt / şifre sayfaları — solda form, sağda fotoğraf */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --soft: #94a3b8;
  --field: #f8fafc;
  --field-line: #eef2f6;
  --field-hover: #e2e8f0;
  --ff: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.auth {
  margin: 0; min-height: 100vh; background: #fff; color: var(--ink-2);
  font: 400 15px/1.55 var(--ff); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.auth a { color: inherit; }
body.auth img { max-width: 100%; }

.auth-split { display: flex; min-height: 100vh; min-height: 100dvh; }

/* ---------- Sol panel ---------- */
.auth-panel {
  flex: 0 0 44%; max-width: 660px; min-width: 500px; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; gap: 24px;
  padding: 36px clamp(28px, 4.4vw, 64px) 28px;
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(var(--accent-rgb), .07), transparent 70%),
    linear-gradient(150deg, #fff 0%, #fff 35%, rgba(var(--primary-rgb), .09) 100%);
  position: relative; z-index: 1;
}
.auth--register .auth-panel { flex-basis: 47%; max-width: 740px; min-width: 560px; }

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.auth-brand img { height: 46px; width: auto; display: block; }
.auth-mark {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-size: 1.15rem;
  box-shadow: 0 10px 22px -10px rgba(var(--primary-rgb), .7);
}
.auth-brand-text { display: flex; flex-direction: column; min-width: 0; }
.auth-brand-text strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.auth-brand-text small { font-size: .76rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.auth-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.auth-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: var(--muted) !important; text-decoration: none; transition: background .2s, color .2s;
}
.auth-back:hover { background: rgba(15, 23, 42, .05); color: var(--ink) !important; }
[dir="rtl"] .auth-back i { transform: scaleX(-1); }
.auth-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(15, 23, 42, .06); }
.auth-lang a {
  padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  color: var(--muted) !important; text-decoration: none; transition: background .2s, color .2s;
}
.auth-lang a:hover { color: var(--ink) !important; }
.auth-lang a.active { background: #fff; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.auth-body { flex: 1; display: flex; align-items: center; }
.auth-box { width: 100%; max-width: 440px; padding: 12px 0; }
.auth--register .auth-box { max-width: 560px; }

.auth-title { margin: 0 0 10px; color: var(--ink); font-size: clamp(2rem, 2.9vw, 2.55rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.auth-lead { margin: 0 0 30px; color: var(--muted); font-size: 1rem; font-weight: 500; }

.auth-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  color: var(--soft); font-size: .8rem;
}
.auth-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.auth-foot a { color: var(--muted) !important; text-decoration: none; font-weight: 600; }
.auth-foot a:hover { color: var(--ink) !important; }

/* ---------- Sağ fotoğraf ---------- */
.auth-media {
  flex: 1 1 auto; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--primary-dark);
}
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.auth--register .auth-media img { object-position: 62% 50%; }
.auth-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, .18) 38%, rgba(15, 23, 42, .86) 100%),
    linear-gradient(90deg, rgba(var(--primary-rgb), .38) 0%, rgba(var(--primary-rgb), 0) 55%);
}
.auth-media-card {
  position: absolute; z-index: 1; inset-inline: clamp(28px, 4vw, 64px); bottom: clamp(28px, 6vh, 64px);
  max-width: 600px; color: #fff;
}
.auth-media-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.auth-media-badge i { color: var(--accent); }
.auth-media-card h2 { margin: 18px 0 12px; font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.auth-media-card p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); font-size: 1rem; max-width: 520px; }
.auth-media-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-media-card li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(15, 23, 42, .35); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .84rem; font-weight: 600;
}
.auth-media-card li i { font-size: .72rem; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }

/* ---------- Form alanları ---------- */
.af-group { margin-bottom: 18px; min-width: 0; }
.af-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.af-label small { color: var(--soft); font-size: .74rem; font-weight: 600; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.af-field { position: relative; }
.af-icon {
  position: absolute; inset-inline-start: 17px; top: 50%; transform: translateY(-50%);
  color: var(--soft); font-size: .95rem; pointer-events: none; transition: color .2s;
}
.af-input {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; padding-inline-start: 46px;
  background: var(--field); border: 2px solid var(--field-line); border-radius: 14px;
  color: var(--ink); font: 500 .95rem var(--ff); transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.af-input.no-icon { padding-inline-start: 18px; }
.af-input::placeholder { color: var(--soft); font-weight: 400; opacity: 1; }
.af-input:hover { border-color: var(--field-hover); }
.af-input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1); }
.af-field:focus-within .af-icon { color: var(--primary); }
.af-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
select.af-input {
  cursor: pointer; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
[dir="rtl"] select.af-input { background-position: left 18px center; }
.af-input.has-toggle { padding-inline-end: 54px; }
.af-toggle {
  position: absolute; inset-inline-end: 7px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--soft);
  cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: color .2s, background .2s;
}
.af-toggle:hover { color: var(--ink); background: rgba(15, 23, 42, .05); }
.af-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.af-group.has-error .af-input { border-color: #fca5a5; background: #fff8f8; }
.af-group.has-error .af-icon { color: #ef4444; }
.af-error, .af-note {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: .8rem; font-weight: 600; line-height: 1.4;
}
.af-error { color: #dc2626; }
.af-note { color: #b45309; }
.af-note[hidden], .af-error[hidden] { display: none; }
.af-help { margin-top: 7px; color: var(--muted); font-size: .78rem; }

/* Şifre gücü */
.af-strength { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; }
.af-strength-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.af-strength-bars span { height: 5px; border-radius: 999px; background: #e2e8f0; transition: background .25s; }
.af-strength-label { min-width: 84px; text-align: end; font-size: .76rem; font-weight: 700; color: var(--soft); }
.af-strength[data-level="1"] .af-strength-bars span:nth-child(-n+1) { background: #ef4444; }
.af-strength[data-level="2"] .af-strength-bars span:nth-child(-n+2) { background: #f59e0b; }
.af-strength[data-level="3"] .af-strength-bars span:nth-child(-n+3) { background: #22c55e; }
.af-strength[data-level="4"] .af-strength-bars span { background: #16a34a; }
.af-strength[data-level="1"] .af-strength-label { color: #dc2626; }
.af-strength[data-level="2"] .af-strength-label { color: #b45309; }
.af-strength[data-level="3"] .af-strength-label, .af-strength[data-level="4"] .af-strength-label { color: #15803d; }

/* Güvenlik kodu */
.af-captcha {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 6px 8px; padding-inline-start: 14px;
  background: var(--field); border: 2px solid var(--field-line); border-radius: 16px;
}
.af-captcha img { flex: 1; min-width: 0; height: 46px; display: block; -webkit-user-select: none; user-select: none; pointer-events: none; }
.af-captcha button {
  flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent;
  color: var(--soft); cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: color .2s, background .2s;
}
.af-captcha button:hover { color: var(--primary); background: rgba(var(--primary-rgb), .07); }
.af-captcha button.spin i { animation: af-spin .5s ease; }

/* Onay kutuları */
.af-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.af-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.af-box {
  flex: 0 0 22px; height: 22px; margin-top: -1px; border-radius: 7px; background: #eef2f7; border: 2px solid #dfe6ee;
  display: grid; place-items: center; transition: background .2s, border-color .2s, box-shadow .2s;
}
.af-box::after {
  content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .15s ease;
}
.af-check:hover .af-box { border-color: #cbd5e1; }
.af-check input:checked + .af-box { background: var(--primary); border-color: var(--primary); }
.af-check input:checked + .af-box::after { transform: rotate(45deg) scale(1); }
.af-check input:focus-visible + .af-box { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16); }
.af-check a { color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.af-check a:hover { color: var(--primary) !important; text-decoration: underline; text-underline-offset: 3px; }
.af-checks { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 24px; }
.af-checks.has-error .af-box { border-color: #fca5a5; }

.af-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 24px; }
.af-link { color: var(--ink) !important; font-size: .9rem; font-weight: 700; text-decoration: none; }
.af-link:hover { color: var(--primary) !important; }

/* Butonlar */
.af-btn {
  width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: #fff !important; font: 700 1rem var(--ff); letter-spacing: -.01em;
  box-shadow: 0 16px 30px -14px rgba(var(--primary-rgb), .75); transition: background .2s, transform .15s, box-shadow .2s;
}
.af-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 20px 34px -14px rgba(var(--primary-rgb), .8); }
.af-btn:active { transform: translateY(0); }
.af-btn:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .35); outline-offset: 2px; }
.af-btn i { transition: transform .2s; }
.af-btn:hover .fa-arrow-right { transform: translateX(3px); }
[dir="rtl"] .af-btn .fa-arrow-right { transform: scaleX(-1); }
.af-btn.is-loading { pointer-events: none; opacity: .88; }
.af-btn.is-loading i { animation: af-spin .8s linear infinite; }
.af-btn.is-loading i::before { content: "\f110"; }
.af-btn-ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--field-hover); box-shadow: none; }
.af-btn-ghost:hover { background: var(--field); color: var(--ink) !important; box-shadow: none; }

.af-switch { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(15, 23, 42, .08); text-align: center; color: var(--muted); font-size: .95rem; }
.af-switch a { color: var(--ink) !important; font-weight: 800; text-decoration: none; }
.af-switch a:hover { color: var(--primary) !important; }

/* Uyarılar */
.af-alert {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 14px 16px;
  border: 1px solid; border-radius: 14px; font-size: .9rem; font-weight: 500; line-height: 1.5;
}
.af-alert i { margin-top: 3px; }
.af-alert strong { display: block; font-weight: 700; }
.af-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.af-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.af-alert-info { background: var(--primary-50); border-color: rgba(var(--primary-rgb), .16); color: var(--primary); }

/* Sonuç ekranı (kayıt tamam, e-posta gönderildi) */
.af-done-icon {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 26px;
  background: #dcfce7; color: #16a34a; font-size: 1.9rem; box-shadow: 0 0 0 10px rgba(220, 252, 231, .45);
}
.af-done-icon.is-warn { background: #fef3c7; color: #b45309; box-shadow: 0 0 0 10px rgba(254, 243, 199, .45); }
.af-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.af-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-size: .93rem; }
.af-steps li::before {
  counter-increment: step; content: counter(step); flex: 0 0 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(var(--primary-rgb), .08); color: var(--primary); font-weight: 800; font-size: .85rem;
}
.af-steps strong { color: var(--ink); }
.af-actions { display: flex; flex-direction: column; gap: 12px; }

/* Bot tuzağı */
.af-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

@keyframes af-spin { to { transform: rotate(360deg); } }

/* ---------- Duyarlı ---------- */
/* Üyelik türü seçimi ve ek bilgiler */
.af-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.af-type { position: relative; cursor: pointer; }
.af-type input { position: absolute; opacity: 0; pointer-events: none; }
.af-type > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 2px solid var(--field-line); border-radius: 14px; background: var(--field); transition: border-color .15s, background .15s; }
.af-type i { color: var(--muted); margin-bottom: 4px; }
.af-type strong { color: var(--ink); font-size: .9rem; }
.af-type small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.af-type input:checked + span { border-color: var(--primary); background: rgba(var(--primary-rgb), .06); }
.af-type input:checked + span i { color: var(--primary); }
.af-type input:focus-visible + span { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16); }
.af-more { margin: 0 0 20px; border: 1px dashed var(--field-hover); border-radius: 14px; padding: 0 16px; }
.af-more[open] { padding-bottom: 4px; border-style: solid; background: rgba(var(--primary-rgb), .02); }
.af-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 700; color: var(--ink); font-size: .9rem; flex-wrap: wrap; }
.af-more summary::-webkit-details-marker { display: none; }
.af-more summary i { width: 22px; height: 22px; border-radius: 7px; background: rgba(var(--primary-rgb), .1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; transition: transform .2s; }
.af-more[open] summary i { transform: rotate(45deg); }
.af-more summary small { color: var(--soft); font-weight: 600; font-size: .76rem; }
.af-consents { margin-bottom: 14px; }

@media (max-width: 1180px) {
  .auth-panel { min-width: 460px; padding-inline: clamp(24px, 3.4vw, 44px); }
  .auth--register .auth-panel { flex-basis: 52%; min-width: 520px; }
}
@media (max-width: 991px) {
  .auth-media { display: none; }
  .auth-panel, .auth--register .auth-panel { flex: 1 1 auto; max-width: none; min-width: 0; padding: 24px clamp(16px, 5vw, 40px) 22px; }
  .auth-box, .auth--register .auth-box { margin-inline: auto; }
  .auth-body { padding: 18px 0 8px; }
}
@media (max-width: 560px) {
  .af-row { grid-template-columns: 1fr; }
  .auth-title { font-size: 1.95rem; }
  .auth-lead { margin-bottom: 24px; font-size: .95rem; }
  .auth-back span { display: none; }
  .auth-back { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .auth-brand img { height: 40px; }
  .auth-mark { width: 42px; height: 42px; }
  .auth-brand-text small { display: none; }
  .auth-foot { justify-content: center; text-align: center; }
  .auth-foot nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
