/* Swap to Swap - ortak kimlik dogrulama (auth) stilleri.
   login, register, forget-password, verify-reset-code sayfalari ayni .auth-* siniflarini kullanabilir. */

.auth-page { margin: 0; background: var(--stc-bg); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--stc-text); -webkit-font-smoothing: antialiased; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page a { color: var(--stc-link); text-decoration: none; font-weight: 600; }
.auth-page a:hover { text-decoration: underline; }
.auth-page a:focus-visible, .auth-page button:focus-visible, .auth-page input:focus-visible, .auth-page select:focus-visible { outline: 3px solid var(--color-primary-strong); outline-offset: 2px; }
.auth-brand a:focus-visible { outline-color: var(--stc-on-primary); }

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

/* Sol panel */
.auth-brand { flex: 1 1 56%; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 52px 56px; color: var(--stc-on-primary); background: linear-gradient(160deg, var(--stc-navy) 0%, var(--stc-graphite) 55%, var(--stc-navy-2) 100%); }
.auth-brand-logo { position: relative; display: flex; align-items: center; gap: 12px; color: var(--stc-on-primary) !important; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none !important; }
.auth-logo-mark rect { fill: var(--stc-cobalt); }
.auth-mbrand { display: none; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--stc-heading) !important; font-size: 19px; font-weight: 800; text-decoration: none !important; }

/* Arka plan: izgara + aurora + parcaciklar */
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--stc-on-dark-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--stc-on-dark-rgb), .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, var(--stc-navy) 20%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 45%, var(--stc-navy) 20%, transparent 72%); animation: auth-gridmove 18s linear infinite; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.auth-blob.b1 { width: 420px; height: 420px; left: -120px; top: -100px; background: var(--stc-cobalt); animation: auth-drift1 16s ease-in-out infinite alternate; }
.auth-blob.b2 { width: 360px; height: 360px; right: -100px; bottom: 40px; background: var(--stc-cobalt-glow); opacity: .38; animation: auth-drift2 20s ease-in-out infinite alternate; }
.auth-dots span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--stc-on-dark-rgb), .55); animation: auth-floaty 9s ease-in-out infinite; }
.auth-dots span:nth-child(1) { left: 8%; top: 22%; animation-delay: -1s; }
.auth-dots span:nth-child(2) { left: 17%; top: 68%; width: 4px; height: 4px; animation-delay: -3s; }
.auth-dots span:nth-child(3) { left: 26%; top: 38%; animation-delay: -5s; }
.auth-dots span:nth-child(4) { left: 34%; top: 82%; width: 8px; height: 8px; opacity: .5; animation-delay: -2s; }
.auth-dots span:nth-child(5) { left: 45%; top: 12%; width: 4px; height: 4px; animation-delay: -6s; }
.auth-dots span:nth-child(6) { left: 56%; top: 74%; animation-delay: -4s; }
.auth-dots span:nth-child(7) { left: 66%; top: 28%; width: 8px; height: 8px; opacity: .45; animation-delay: -7s; }
.auth-dots span:nth-child(8) { left: 74%; top: 58%; width: 4px; height: 4px; animation-delay: -1.5s; }
.auth-dots span:nth-child(9) { left: 83%; top: 16%; animation-delay: -8s; }
.auth-dots span:nth-child(10) { left: 90%; top: 46%; width: 4px; height: 4px; animation-delay: -3.5s; }
.auth-dots span:nth-child(11) { left: 12%; top: 48%; width: 4px; height: 4px; animation-delay: -5.5s; }
.auth-dots span:nth-child(12) { left: 60%; top: 90%; width: 6px; height: 6px; animation-delay: -2.5s; }

/* Swap yorungesi */
.auth-orbit { position: relative; width: 340px; height: 340px; margin: auto; transform: scale(1.2); }
.auth-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(var(--stc-on-dark-rgb), .22); }
.auth-ring.r1 { inset: 0; animation: auth-spin 46s linear infinite; }
.auth-ring.r2 { inset: 44px; border-color: rgba(var(--stc-on-dark-rgb), .16); animation: auth-spin 30s linear infinite reverse; }
.auth-arm { position: absolute; border-radius: 50%; }
.auth-arm.a1 { inset: 0; animation: auth-spin 12s linear infinite; }
.auth-arm.a2 { inset: 44px; animation: auth-spin 9s linear infinite reverse; }
.auth-arm i { position: absolute; top: -6px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; }
.auth-arm.a1 i { background: var(--stc-cobalt); box-shadow: 0 0 22px 6px var(--stc-cobalt); }
.auth-arm.a2 i { background: var(--stc-link); box-shadow: 0 0 22px 6px rgba(var(--stc-shadow-rgb), .8); }
.auth-disc { position: absolute; top: 50%; width: 132px; height: 132px; margin-top: -66px; border-radius: 50%; backdrop-filter: blur(6px); }
.auth-disc.d1 { left: 50px; background: radial-gradient(circle at 30% 28%, rgba(var(--stc-on-dark-rgb), .55), var(--stc-cobalt) 60%); box-shadow: 0 18px 50px -10px var(--stc-cobalt); animation: auth-bob 5s ease-in-out infinite; }
.auth-disc.d2 { right: 50px; background: radial-gradient(circle at 30% 28%, rgba(var(--stc-on-dark-rgb), .55), var(--stc-cobalt-glow) 62%); box-shadow: 0 18px 50px -10px var(--stc-cobalt-glow); animation: auth-bob 5s ease-in-out -2.5s infinite; }
.auth-core { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--stc-on-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(var(--stc-on-dark-rgb), .12), 0 10px 30px rgba(var(--stc-shadow-rgb), .35); animation: auth-pulse 3.2s ease-in-out infinite; }
.auth-core svg { animation: auth-flip 4.8s ease-in-out infinite; }

/* Sag panel */
.auth-main { flex: 1 1 44%; position: relative; display: flex; align-items: center; justify-content: center; padding: 72px 24px 40px; }
.auth-lang { position: absolute; top: 24px; right: 24px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--stc-surface-2); }
.auth-lang a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--stc-muted); text-decoration: none; }
.auth-lang a:hover { text-decoration: none; color: var(--stc-text); }
.auth-lang a[aria-current="true"] { background: var(--stc-surface); color: var(--stc-text); box-shadow: 0 1px 3px rgba(var(--stc-shadow-rgb), .12); }

.auth-card { width: 100%; max-width: 440px; padding: 40px 36px; background: var(--stc-surface); border-radius: 20px; box-shadow: 0 1px 2px rgba(var(--stc-shadow-rgb), .06), 0 28px 64px -24px rgba(var(--stc-shadow-rgb), .28); }
.auth-card.is-wide { max-width: 600px; }
.auth-title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--stc-heading); }
.auth-lead { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--stc-muted); }

.auth-alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.auth-alert.is-error { background: var(--stc-danger-bg); color: var(--stc-danger); border: 1px solid var(--stc-danger-border); border-left: 4px solid var(--stc-danger); }
.auth-alert.is-success { background: var(--stc-success-bg); color: var(--stc-success); border: 1px solid var(--stc-success-border); border-left: 4px solid var(--stc-success); }
.auth-alert.is-error::before { content: "\2715\00a0" / ""; font-weight: 800; }
.auth-alert.is-success::before { content: "\2713\00a0" / ""; font-weight: 800; }
.auth-alert:focus { outline: none; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth-field { position: relative; }
.auth-field input { width: 100%; height: 58px; border: 1.5px solid var(--stc-border); border-radius: 12px; padding: 24px 16px 6px; font: inherit; font-size: 15px; font-weight: 500; color: var(--stc-text); background: var(--stc-surface); transition: border-color .2s, box-shadow .2s; }
.auth-field input.has-eye { padding-right: 56px; }
.auth-field input:hover { border-color: var(--stc-border-strong); }
.auth-field input:focus { outline: none; border-color: var(--color-primary-strong); box-shadow: 0 0 0 4px rgba(var(--stc-primary-rgb), .22); }
.auth-field input[aria-invalid="true"] { border-color: var(--stc-danger); }
.auth-field label { position: absolute; left: 17px; top: 19px; font-size: 15px; font-weight: 500; color: var(--stc-muted); pointer-events: none; transition: all .18s ease; }
.auth-field input:focus + label, .auth-field input:not(:placeholder-shown) + label, .auth-field input:-webkit-autofill + label { top: 9px; font-size: 11.5px; font-weight: 700; color: var(--stc-link); letter-spacing: .02em; }
.auth-eye { position: absolute; right: 8px; top: 8px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--stc-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.auth-eye:hover { background: var(--stc-surface-2); color: var(--stc-text); }
.auth-eye .eye-off { display: none; }
.auth-eye[aria-pressed="true"] .eye-on { display: none; }
.auth-eye[aria-pressed="true"] .eye-off { display: block; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--stc-text); cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--stc-cobalt); cursor: pointer; }
.auth-row a { font-size: 14px; }

.auth-btn { position: relative; overflow: hidden; width: 100%; height: 56px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--stc-on-primary); cursor: pointer; background: var(--color-primary-strong); box-shadow: 0 12px 28px -10px rgba(var(--stc-primary-rgb), .75); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-btn:hover { background: var(--color-primary-pressed); transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(var(--stc-primary-rgb), .75); }
.auth-btn:active { background: var(--color-primary-pressed); transform: translateY(0); }
.auth-btn:focus-visible { outline: 3px solid var(--color-primary-strong); outline-offset: 3px; }
.auth-btn:disabled { cursor: progress; opacity: .92; transform: none; }
.auth-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(var(--stc-on-dark-rgb), .38), transparent); transform: skewX(-18deg); pointer-events: none; }
.auth-btn:hover::after { animation: auth-shimmer .9s ease; }
.auth-btn .auth-spin, .auth-btn .auth-btn-loading { display: none; }
.auth-btn.is-loading .auth-spin { display: inline-block; }
.auth-btn.is-loading .auth-btn-loading { display: inline; }
.auth-btn.is-loading .auth-btn-label { display: none; }
.auth-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(var(--stc-on-dark-rgb), .45); border-top-color: var(--stc-on-primary); animation: auth-spin .7s linear infinite; }

.auth-switch { margin: 26px 0 0; text-align: center; font-size: 14.5px; color: var(--stc-muted); }
.auth-legal { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--stc-border); text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--stc-muted); }
.auth-legal a { font-weight: 600; }

/* Giris animasyonu */
.auth-rise { opacity: 0; animation: auth-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.auth-d1 { animation-delay: .05s; } .auth-d2 { animation-delay: .15s; } .auth-d3 { animation-delay: .25s; }
.auth-d4 { animation-delay: .35s; } .auth-d5 { animation-delay: .45s; } .auth-d6 { animation-delay: .55s; }

@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes auth-bob { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes auth-pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(var(--stc-on-dark-rgb), .12), 0 10px 30px rgba(var(--stc-shadow-rgb), .35); } 50% { box-shadow: 0 0 0 16px rgba(var(--stc-on-dark-rgb), .05), 0 10px 30px rgba(var(--stc-shadow-rgb), .35); } }
@keyframes auth-flip { 0%, 40% { transform: rotate(0deg); } 60%, 100% { transform: rotate(180deg); } }
@keyframes auth-floaty { 0%, 100% { transform: translateY(0); opacity: .25; } 50% { transform: translateY(-26px); opacity: .85; } }
@keyframes auth-drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes auth-drift2 { to { transform: translate(-110px, -70px) scale(1.2); } }
@keyframes auth-gridmove { to { background-position: 48px 48px, 48px 48px; } }
@keyframes auth-shimmer { to { left: 130%; } }

@media (max-width: 879px) {
  .auth-brand { display: none; }
  .auth-mbrand { display: flex; }
  .auth-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; }
  .auth-rise { opacity: 1; }
}

/* ---- Register (kayit) ek siniflari ---- */
.auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field input:disabled { background: var(--stc-bg); color: var(--stc-text); -webkit-text-fill-color: var(--stc-text); opacity: 1; cursor: not-allowed; }
.auth-field select { width: 100%; height: 58px; border: 1.5px solid var(--stc-border); border-radius: 12px; padding: 24px 40px 6px 16px; font: inherit; font-size: 15px; font-weight: 500; color: var(--stc-text); background: var(--stc-surface); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.auth-field select:hover { border-color: var(--stc-border-strong); }
.auth-field select option { color: var(--stc-text); background-color: var(--stc-surface); }

/* INPUT OKUNABILIRLIK (2026-10-25): tarayici otomatik doldurma + imlec + renk semasi.
   Koyu OS temasinda Chrome autofill zemini acik mavi (#E8F0FE) olur, sayfa yazisi acik (#F4F6F9) kalirsa
   acik-uzeri-acik (~1.1:1) okunmaz. Zemin ic golgeyle, yazi -webkit-text-fill-color ile sabitlenir.
   Kontrast: acik #202923/#FFF 15.0; koyu #F4F6F9/#252A32 13.3. */
.auth-page { color-scheme: light dark; }
.auth-field input, .auth-field select { -webkit-text-fill-color: var(--stc-text); caret-color: var(--color-primary-strong); }
.auth-field input:is(:-webkit-autofill, :autofill),
.auth-field input:is(:-webkit-autofill, :autofill):is(:hover, :focus, :active),
.auth-field select:is(:-webkit-autofill, :autofill) {
  -webkit-text-fill-color: var(--stc-text) !important;
  caret-color: var(--color-primary-strong);
  background-clip: padding-box !important;
  -webkit-box-shadow: 0 0 0 1000px var(--stc-surface) inset !important;
  box-shadow: 0 0 0 1000px var(--stc-surface) inset !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
}
.auth-field input:is(:-webkit-autofill, :autofill):focus {
  -webkit-box-shadow: 0 0 0 1000px var(--stc-surface) inset, 0 0 0 4px rgba(var(--stc-primary-rgb), .22) !important;
  box-shadow: 0 0 0 1000px var(--stc-surface) inset, 0 0 0 4px rgba(var(--stc-primary-rgb), .22) !important;
}
.auth-field select:focus { outline: none; border-color: var(--color-primary-strong); box-shadow: 0 0 0 4px rgba(var(--stc-primary-rgb), .22); }
.auth-field select[aria-invalid="true"] { border-color: var(--stc-danger); }
.auth-field select + label { top: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.auth-field select:focus + label { color: var(--stc-link); }
.auth-chev { position: absolute; right: 16px; top: 24px; pointer-events: none; color: var(--stc-muted); }

.auth-pwinfo { margin-top: -6px; }
.auth-meter { display: flex; gap: 6px; margin: 10px 2px 0; }
.auth-meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--stc-border); transition: background .25s; }
.auth-meter i.l1 { background: var(--stc-danger); }
.auth-meter i.l2 { background: var(--stc-warning); }
.auth-meter i.l3 { background: var(--stc-success); }
.auth-meter i.l4 { background: var(--stc-success); }
.auth-hint { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--stc-muted); }
.auth-hint strong { color: var(--stc-text); }
.auth-hint.is-error { margin-top: 6px; font-weight: 700; color: var(--stc-danger); }
.auth-hint[hidden], .auth-hint [hidden] { display: none; }

.auth-terms { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--stc-bg); font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--stc-text); }
.auth-terms input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--stc-cobalt); cursor: pointer; }
.auth-terms input[aria-invalid="true"] { outline: 2px solid var(--stc-danger); outline-offset: 2px; }
.auth-terms label { cursor: pointer; }

@media (max-width: 559px) {
  .auth-row2 { grid-template-columns: 1fr; }
}

/* ---- Sayfa iskeleti (404) ---- */
.auth-page-center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card-center { text-align: center; }
.auth-card-center .auth-mbrand { display: inline-flex; margin-bottom: 16px; }
.auth-404 { margin: 0 0 8px; font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--stc-link); }
.auth-card-center .auth-lead { margin-bottom: 24px; }
.auth-btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-btn-link:hover { text-decoration: none; color: var(--stc-on-primary); }

/* ---- Davet gerekli karti (register, inviteBlocked) ---- */
.auth-invite-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: rgba(var(--stc-primary-rgb), .12); color: var(--stc-link); }
.auth-invite .auth-lead { margin-bottom: 22px; }
.auth-invite-sub { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--stc-heading); }
.auth-steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: auth-step; display: grid; gap: 10px; }
.auth-steps li { counter-increment: auth-step; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--stc-border); border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: var(--stc-text); }
.auth-steps li::before { content: counter(auth-step); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary-strong); color: var(--stc-on-primary); font-size: 13px; font-weight: 800; }
.auth-invite-tip { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stc-border); border-left: 4px solid var(--color-primary-strong); font-size: 13.5px; line-height: 1.55; color: var(--stc-muted); }
