/* ==========================================================================
   CppSRC.dev — Kayit / Giris kimlik dogrulama sayfasi
   Sayfa kapsamli. Tum kurallar .cs-auth altinda; global CSS'e dokunmaz.
   Harici font / CDN / gorsel YOK. Ikonlar projedeki FontAwesome'dan.
   ========================================================================== */

.cs-auth {
    --cs-bg-0: #08090A;
    --cs-bg-1: #0D0E10;
    --cs-bg-2: #111214;
    --cs-red: #E11D3F;
    --cs-red-hi: #F02046;
    --cs-fg: #FFFFFF;
    --cs-fg-2: rgba(255, 255, 255, .65);
    --cs-fg-3: rgba(255, 255, 255, .40);
    --cs-line: rgba(255, 255, 255, .06);
    --cs-line-2: rgba(255, 255, 255, .10);
    --cs-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    min-height: 0;
    padding: 12px 10px 18px;
    background: var(--cs-bg-0);
    color: var(--cs-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.cs-auth *, .cs-auth *::before, .cs-auth *::after { box-sizing: border-box; }

.cs-shell {
    width: 100%;
    max-width: 1330px;
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 14px;
    align-items: stretch;
}

/* ---------------------------------------------------------------- SOL PANEL */

.cs-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    background: var(--cs-bg-1);
    padding: 18px 20px 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* zemin: ince grid + kirmizi radyal parlama (statik, animasyon yok) */
.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 35%, transparent 78%);
    pointer-events: none;
}
.cs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 62% 44% at 16% 6%, rgba(225, 29, 63, .20), transparent 62%),
        radial-gradient(ellipse 90% 55% at 50% 108%, rgba(225, 29, 63, .26), transparent 68%);
    pointer-events: none;
}
.cs-hero > * { position: relative; z-index: 1; }

/* marka */
.cs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.cs-brand img { display: block; width: 38px; height: 38px; object-fit: contain; border-radius: 9px; }
.cs-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cs-brand-name em { font-style: normal; color: var(--cs-red); }

/* baslik */
.cs-hero-head { margin-top: auto; }   /* dikeyde ortala: ust bosluk esitlenir */
.cs-hero-title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: uppercase;
    font-style: italic;
}
.cs-hero-title span { display: block; }
.cs-hero-title .l1 {
    background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, .55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cs-hero-title .l2 {
    color: var(--cs-red);
    text-shadow: 0 0 34px rgba(225, 29, 63, .38);
}
.cs-hero-lead {
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--cs-fg-2);
    max-width: 34ch;
}

/* ozellik kartlari */
.cs-features { margin: 14px 0 auto; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 350px; }   /* alt bosluk esitlenir */
.cs-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 7px 10px;
    border: 1px solid var(--cs-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
    transition: border-color .18s ease, background .18s ease;
}
.cs-feature:hover { border-color: rgba(225, 29, 63, .34); }
.cs-feature-ic {
    flex: none;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(225, 29, 63, .30);
    background: rgba(225, 29, 63, .11);
    color: var(--cs-red);
    font-size: 13.5px;
}
.cs-feature-t { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; }
.cs-feature-d { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--cs-fg-2); }

/* alt artwork — tamamen CSS, harici gorsel yok */
.cs-art {
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    margin: 12px -22px 0;
    overflow: hidden;
}
.cs-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(225, 29, 63, .14) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(0deg, rgba(225, 29, 63, .10) 0 1px, transparent 1px 40px);
    mask-image: linear-gradient(180deg, transparent, #000 55%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
}
.cs-art-glyph {
    position: absolute;
    left: 50%; bottom: -14px;
    transform: translateX(-50%);
    font-family: var(--cs-mono);
    font-size: clamp(62px, 9vw, 112px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    background: linear-gradient(180deg, rgba(225, 29, 63, .58), rgba(225, 29, 63, .05));
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}
.cs-art-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

.cs-hero-foot {
    padding: 9px 0 9px;
    font-size: 12.5px;
    color: var(--cs-fg-3);
    border-top: 1px solid var(--cs-line);
    margin-top: 10px;
}
.cs-hero-foot em { font-style: normal; color: var(--cs-red); }

/* --------------------------------------------------------------- SAG PANEL */

.cs-card {
    position: relative;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    background: var(--cs-bg-1);
    padding: 16px 19px 18px;
    min-width: 0;
}

.cs-back {
    position: absolute;
    top: 20px; right: 22px;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px;
    color: var(--cs-fg-2);
    text-decoration: none;
    transition: color .16s ease;
}
.cs-back:hover { color: var(--cs-fg); }

.cs-head { display: flex; align-items: flex-start; gap: 14px; padding-right: 130px; }
.cs-head-ic {
    flex: none;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(225, 29, 63, .32);
    background: rgba(225, 29, 63, .11);
    color: var(--cs-red);
    font-size: 18px;
}
.cs-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cs-title em { font-style: normal; color: var(--cs-red); }
.cs-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--cs-fg-2); }

/* uyari kutusu */
.cs-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(225, 29, 63, .34);
    border-radius: 11px;
    background: rgba(225, 29, 63, .09);
    font-size: 13.5px;
    line-height: 1.5;
}
.cs-alert i { color: var(--cs-red); margin-top: 2px; }

/* ------------------------------------------------- ucretli uyelik karti */

.cs-pay {
    margin: 10px 0 11px;
    padding: 10px 12px 11px;
    border: 1px solid var(--cs-line-2);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 70% 100% at 0% 0%, rgba(225, 29, 63, .09), transparent 62%),
        var(--cs-bg-2);
}
.cs-pay-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.cs-pay-ic {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(225, 29, 63, .14);
    border: 1px solid rgba(225, 29, 63, .30);
    color: var(--cs-red);
    font-size: 13px;
}
.cs-pay-title { font-size: 14.5px; font-weight: 700; color: var(--cs-red); }
.cs-pay-lead { margin: 0 0 9px; font-size: 12.5px; line-height: 1.45; color: var(--cs-fg-2); }

.cs-pay-row + .cs-pay-row { margin-top: 9px; }
.cs-pay-label {
    display: block; margin-bottom: 6px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .10em; text-transform: uppercase;
    color: var(--cs-fg-3);
}
.cs-pay-amount {
    font-family: var(--cs-mono);
    font-size: 17px; font-weight: 700;
    letter-spacing: .01em;
    color: var(--cs-fg);
}
.cs-pay-amount small { font-size: 14px; font-weight: 600; color: var(--cs-fg-2); margin-left: 6px; }

.cs-pay-addr-row { display: flex; align-items: stretch; gap: 9px; }
.cs-pay-addr {
    flex: 1 1 auto; min-width: 0;
    font-family: var(--cs-mono);
    font-size: 12.5px; line-height: 1.5;
    padding: 7px 10px;
    border: 1px solid var(--cs-line-2);
    border-radius: 9px;
    background: var(--cs-bg-0);
    color: var(--cs-fg);
    overflow-wrap: anywhere;
}
.cs-copy {
    flex: none;
    width: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--cs-line-2);
    border-radius: 9px;
    background: var(--cs-bg-0);
    color: var(--cs-fg-2);
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.cs-copy:hover { color: var(--cs-red); border-color: rgba(225, 29, 63, .45); background: rgba(225, 29, 63, .08); }
.cs-copy:focus-visible { outline: 2px solid var(--cs-red); outline-offset: 2px; }
.cs-copy.is-done { color: #2CBA71; border-color: rgba(44, 186, 113, .45); }
.cs-copy-msg {
    margin: 8px 0 0; font-size: 12px; color: #2CBA71;
    opacity: 0; transition: opacity .18s ease;
}
.cs-copy-msg.is-on { opacity: 1; }

.cs-pay-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--cs-fg-3); }

/* ------------------------------------------------------------------ FORM */

.cs-field { margin-bottom: 6px; }
.cs-field > label {
    display: block; margin-bottom: 4px;
    font-size: 13px; font-weight: 600; color: var(--cs-fg-2);
}
.cs-inp {
    position: relative;
    display: flex; align-items: center;
    border: 1px solid var(--cs-line-2);
    border-radius: 10px;
    background: var(--cs-bg-2);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cs-inp:focus-within {
    border-color: var(--cs-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 63, .13);
    background: var(--cs-bg-0);
}
.cs-inp > i:first-child {
    flex: none; width: 42px;
    text-align: center;
    font-size: 14px;
    color: var(--cs-fg-3);
    transition: color .18s ease;
}
.cs-inp:focus-within > i:first-child { color: var(--cs-red); }
.cs-inp input {
    flex: 1 1 auto; min-width: 0;
    height: 39px;
    padding: 0 12px 0 0;
    border: 0; outline: 0; background: transparent;
    color: var(--cs-fg);
    font-size: 14.5px;
    font-family: inherit;
}
.cs-inp input::placeholder { color: var(--cs-fg-3); }
.cs-inp input:-webkit-autofill {
    -webkit-text-fill-color: var(--cs-fg);
    -webkit-box-shadow: 0 0 0 1000px var(--cs-bg-2) inset;
    transition: background-color 9999s ease-in-out 0s;
}
.cs-eye {
    flex: none; width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 0; background: transparent;
    color: var(--cs-fg-3);
    cursor: pointer;
    border-radius: 8px;
    transition: color .16s ease;
}
.cs-eye:hover { color: var(--cs-fg-2); }
.cs-eye:focus-visible { outline: 2px solid var(--cs-red); outline-offset: -2px; }

/* onay kutusu */
.cs-check {
    display: flex; align-items: flex-start; gap: 11px;
    margin: 10px 0 11px;
    font-size: 13.5px; line-height: 1.5;
    color: var(--cs-fg-2);
    cursor: pointer;
}
.cs-check input[type="checkbox"] {
    flex: none;
    width: 19px; height: 19px;
    margin: 1px 0 0;
    accent-color: var(--cs-red);
    cursor: pointer;
}
.cs-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--cs-red); outline-offset: 2px; }

.cs-link { color: var(--cs-red); text-decoration: none; }
.cs-link:hover { color: var(--cs-red-hi); text-decoration: underline; }

/* CTA */
.cs-btn {
    width: 100%;
    min-height: 43px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 11px;
    background: linear-gradient(180deg, var(--cs-red-hi), var(--cs-red));
    color: #fff;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(225, 29, 63, .30), inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: filter .16s ease, transform .1s ease, box-shadow .16s ease;
}
.cs-btn:hover { filter: brightness(1.08); box-shadow: 0 8px 28px rgba(225, 29, 63, .40), inset 0 1px 0 rgba(255, 255, 255, .16); }
.cs-btn:active { transform: scale(.985); }
.cs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cs-btn[disabled], .cs-btn.is-loading { opacity: .62; cursor: not-allowed; filter: none; transform: none; }

/* ayirici + alt */
.cs-div { display: flex; align-items: center; gap: 14px; margin: 11px 0; color: var(--cs-fg-3); font-size: 12.5px; }
.cs-div::before, .cs-div::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cs-line-2); }
.cs-foot { text-align: center; font-size: 13.5px; color: var(--cs-fg-2); }
.cs-foot .cs-link { font-weight: 600; }

/* --------------------------------------------------------------- RESPONSIVE */

@media (max-width: 1240px) {
    .cs-shell { grid-template-columns: 40% 1fr; }
    .cs-hero { padding: 28px 26px 0; }
    .cs-art { margin-left: -26px; margin-right: -26px; }
}

@media (max-width: 900px) {
    .cs-auth { padding: 18px 16px; align-items: flex-start; }
    .cs-shell { grid-template-columns: 1fr; gap: 16px; }
    .cs-hero { min-height: 0; padding: 22px 22px 0; }
    .cs-hero-head { margin-top: 26px; }
    .cs-features { max-width: none; }
    .cs-art { min-height: 96px; margin: 18px -22px 0; }
    .cs-hero-foot { padding: 14px 0 18px; }
}

@media (max-width: 620px) {
    .cs-auth { padding: 14px 12px; }
    .cs-card { padding: 22px 18px 24px; border-radius: 15px; }
    .cs-back { top: 20px; right: 18px; font-size: 12.5px; }
    .cs-head { padding-right: 108px; }
    .cs-head-ic { width: 40px; height: 40px; font-size: 16px; }
    .cs-title { font-size: 20px; }
    .cs-hero-title { font-size: clamp(32px, 10vw, 44px); }
    .cs-pay { padding: 14px 14px 15px; }
    .cs-pay-addr-row { flex-wrap: wrap; }
    .cs-copy { width: 100%; height: 44px; }
    .cs-inp input { height: 46px; font-size: 16px; } /* iOS zoom engeli */
}

/* ------------------------------------------- devralinan bloklarin uyumu ---
   .ax-form global kurallari bu sayfada layout bozmasin diye notrlenir.
   Sinif KORUNUYOR cunku form-feedback.js yukleme durumu icin forma bagli. */
.cs-auth .ax-form { display: block; gap: 0; margin: 0; max-width: none; }

/* ozel kayit alanlari (partials/custom_fields_input) */
.cs-auth .cs-custom { margin-bottom: 4px; }
.cs-auth .cs-custom label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--cs-fg-2); }
.cs-auth .cs-custom input[type="text"],
.cs-auth .cs-custom input[type="number"],
.cs-auth .cs-custom input[type="url"],
.cs-auth .cs-custom input[type="email"],
.cs-auth .cs-custom select,
.cs-auth .cs-custom textarea {
    width: 100%;
    min-height: 43px;
    padding: 11px 13px;
    margin-bottom: 15px;
    border: 1px solid var(--cs-line-2);
    border-radius: 10px;
    background: var(--cs-bg-2);
    color: var(--cs-fg);
    font: inherit;
    font-size: 14.5px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cs-auth .cs-custom textarea { min-height: 92px; resize: vertical; }
.cs-auth .cs-custom :is(input, select, textarea):focus {
    outline: 0;
    border-color: var(--cs-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 63, .13);
}

/* captcha yuvasi */
.cs-auth .cs-captcha { display: flex; justify-content: center; margin: 4px 0 16px; }

/* OAuth blogu kendi ayiricisini uretiyor; bu sayfada gizleyip
   bizim .cs-div ayiricimizi tek ayirici olarak birakiyoruz. */
.cs-auth .rb-oauth-divider { display: none; }
.cs-auth .rb-oauth { margin-top: 18px; }
.cs-auth .rb-oauth-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.cs-auth .rb-oauth-btn {
    flex: 1 1 auto;
    min-height: 43px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--cs-line-2);
    border-radius: 10px;
    background: var(--cs-bg-2);
    color: var(--cs-fg-2);
    text-decoration: none;
    font-size: 14px;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.cs-auth .rb-oauth-btn:hover {
    color: var(--cs-fg);
    border-color: var(--cs-line-2);
    background: rgba(255, 255, 255, .04);
}

/* honeypot: global .ax-hp kurali zaten gizliyor, burada ikinci kalkan */
.cs-auth .ax-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important; height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* erisilebilirlik */
@media (prefers-reduced-motion: reduce) {
    .cs-auth *, .cs-auth *::before, .cs-auth *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ------------------------------------------- Cloudflare Turnstile widget ---
   CaptchaService 'turnstile' saglayicisinda .cf-turnstile kabini uretir.
   Kutu formun icinde, Create Account dugmesinin hemen ustunde durur. */
.cs-auth .cs-captcha {
    display: flex;
    justify-content: center;
    margin: 2px 0 15px;
    min-height: 65px;              /* widget yuklenirken CLS olusmasin */
}
.cs-auth .cf-turnstile,
.cs-auth .cs-captcha > div { max-width: 100%; }
.cs-auth .cs-captcha iframe { max-width: 100% !important; }
.cs-auth .cs-captcha-msg { margin: 6px 0 0; font-size: 12.5px; color: var(--cs-red); }

@media (max-width: 380px) {
    /* dar ekranda Turnstile 300px sabit genislikte gelir; kucultup ortala */
    .cs-auth .cs-captcha { transform: scale(.92); transform-origin: center; }
}

/* --- dikey sikistirma: tutar satiri tek satira alinir --- */
.cs-auth .cs-pay-row--inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.cs-auth .cs-pay-row--inline .cs-pay-label { margin-bottom: 0; }

/* kisa ekranlarda (yuksekligi dusuk dizustu) daha da sik */
@media (min-width: 901px) and (max-height: 900px) {
    .cs-auth { padding: 10px 16px 16px; }
    .cs-hero-head { margin-top: 10px; }
    .cs-features { margin-top: 10px; gap: 5px; }
    .cs-feature { padding: 6px 10px; }
    .cs-art { min-height: 40px; margin-top: 8px; }
    .cs-pay { margin: 10px 0 11px; }
    .cs-field { margin-bottom: 7px; }
    .cs-inp input { height: 38px; }
}

/* ------------------------------------------------------- giris sayfasi ek ---
   (auth-register.css hem /register hem /login tarafindan kullanilir) */
.cs-auth .cs-field-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 4px;
}
.cs-auth .cs-field-row > label { margin-bottom: 0; }
.cs-auth .cs-field-row .cs-link { font-size: 12.5px; }

.cs-auth .cs-btn--ghost {
    background: var(--cs-bg-2);
    border: 1px solid var(--cs-line-2);
    color: var(--cs-fg-2);
    box-shadow: none;
    margin-top: 2px;
}
.cs-auth .cs-btn--ghost:hover {
    filter: none;
    color: var(--cs-fg);
    border-color: rgba(225, 29, 63, .45);
    background: rgba(225, 29, 63, .08);
    box-shadow: none;
}
.cs-auth .cs-passkey-status {
    margin: 8px 0 0; text-align: center;
    font-size: 12.5px; color: var(--cs-fg-2);
}
