﻿/* ═══════════════════════════════════════════════════════════════════════════
   Auth — Giriş / Kayıt / Şifre (YON shell palette)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-shell {
    --auth-bg: var(--h-bg-page);
    --auth-surface: var(--h-bg-card);
    --auth-raised: var(--h-bg-raised);
    --auth-border: var(--h-border);
    --auth-text: var(--h-text);
    --auth-muted: var(--h-text-muted);
    --auth-primary: var(--h-green);
    --auth-primary-hover: var(--h-green-dark);
    --auth-purple: var(--h-blue);
    --auth-purple-2: var(--h-blue-dark);
    --auth-danger: var(--h-danger);
}

/* Token'lar body'de — main arka planı da doğru renk alsın */
body:has(.auth-shell) {
    --auth-bg: var(--h-bg-page);
    --auth-surface: var(--h-bg-card);
    --auth-raised: var(--h-bg-raised);
    --auth-border: var(--h-border);
    --auth-text: var(--h-text);
    --auth-muted: var(--h-text-muted);
    --auth-primary: var(--h-green);
    --auth-primary-hover: var(--h-green-dark);
    --auth-purple: var(--h-blue);
    --auth-purple-2: var(--h-blue-dark);
}

html[data-theme="light"] body:has(.auth-shell),
html[data-theme="light"] .auth-shell {
    --auth-bg: #eef1f6;
    --auth-surface: #ffffff;
    --auth-raised: #f1f5f9;
    --auth-border: rgba(15, 23, 42, 0.1);
    --auth-text: #0f172a;
    --auth-muted: #64748b;
}

/* Auth sayfa arka planı — header/footer görünür kalır */
body:has(.auth-shell) main.yon-content {
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%, var(--h-blue-soft), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 100%, var(--h-green-soft), transparent 50%),
        var(--auth-bg, var(--h-bg-page));
    padding-top: 0 !important;
    padding-bottom: calc(24px + var(--ymm-bar-h, 0px)) !important;
}

/* Hesap ana sayfa sarmalayıcı — gradient yon-home::before üzerinden */
body:has(.auth-hesap-page) main.yon-content {
    background: var(--h-bg-page) !important;
}

.auth-hesap-page.yon-home {
    flex: 1;
    width: 100%;
    padding-bottom: 32px;
    min-height: calc(100dvh - var(--yon-sticky-offset, 80px) - var(--ymm-bar-h, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-hesap-page .auth-gate-page,
.auth-hesap-page .auth-shell--card {
    flex: 1;
    width: 100%;
}

html[data-theme="light"] body:has(.auth-shell) main.yon-content {
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%, rgba(61, 90, 254, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 100%, rgba(17, 211, 119, 0.05), transparent 50%),
        var(--auth-bg, #eef1f6);
}

@media (min-width: 768px) {
    body:has(.auth-shell) main.yon-content {
        padding-bottom: 32px !important;
    }
}

/* ── Gate — sayfa içi (header üstte kalır) ── */
.auth-gate-page,
.auth-shell--gate {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1040px, 100%);
    margin: 0 auto;
    min-height: calc(100dvh - var(--yon-sticky-offset, 80px) - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 32px;
    box-sizing: border-box;
}

.auth-gate__scrim,
.auth-shell__scrim {
    display: none;
}

.auth-gate__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--yh-shell-radius, 16px);
    overflow: hidden;
    box-shadow: var(--h-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(8px);
}

.auth-gate__panel--lg {
    width: min(1040px, 100%);
}

.auth-gate__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--auth-raised);
    color: var(--auth-muted);
    border: 1px solid var(--auth-border);
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

@media (min-width: 901px) {
    .auth-gate__close {
        display: none;
    }
}

.auth-gate__close:hover {
    color: var(--auth-text);
    border-color: rgba(61, 90, 254, 0.35);
    background: rgba(61, 90, 254, 0.1);
}

.auth-gate__form-side {
    padding: 36px 32px 28px;
    overflow: visible;
    max-height: none;
    color: var(--auth-text);
}

.auth-gate__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-gate__brand .yon-logo {
    max-width: min(200px, 70vw);
    height: auto;
    max-height: 48px;
}

.auth-gate__brand .yon-logo__img {
    max-height: 48px;
    object-position: center;
}

.auth-gate__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    background: var(--auth-raised);
    border: 1px solid var(--auth-border);
    border-radius: 14px;
}

.auth-gate__tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.auth-gate__tab i {
    font-size: 17px;
}

.auth-gate__tab.is-active {
    background: var(--auth-surface);
    color: var(--auth-text);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.35);
}

.auth-gate__tab.is-active[data-tab="login"] {
    color: var(--auth-purple);
}

.auth-gate__tab.is-active[data-tab="register"] {
    color: var(--auth-primary);
}

.auth-gate__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.auth-gate__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--auth-raised);
    border: 1px solid var(--auth-border);
    font-size: 10px;
    font-weight: 700;
    color: var(--auth-muted);
    text-align: center;
    line-height: 1.25;
}

.auth-gate__trust-item i {
    font-size: 18px;
    color: var(--auth-primary);
}

.auth-gate__trust-item:nth-child(2) i {
    color: var(--auth-purple);
}

.auth-gate__title {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--auth-text);
}

.auth-gate__sub {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-gate__alert {
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-gate__alert--error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.auth-gate__alert--success {
    border: 1px solid rgba(17, 211, 119, 0.35);
    background: rgba(17, 211, 119, 0.1);
    color: #86efac;
}

html[data-theme="light"] .auth-gate__alert--error {
    color: #b91c1c;
}

html[data-theme="light"] .auth-gate__alert--success {
    color: #15803d;
}

.auth-gate__alert p + p {
    margin-top: 4px;
}

.auth-social__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-pw-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: -2px 0 10px;
}

.auth-pw-meter__bar {
    height: 4px;
    border-radius: 999px;
    background: var(--auth-border);
    transition: background 0.2s;
}

.auth-pw-meter__bar.is-on:nth-child(1) { background: #ef4444; }
.auth-pw-meter__bar.is-on:nth-child(2) { background: #f59e0b; }
.auth-pw-meter__bar.is-on:nth-child(3) { background: #eab308; }
.auth-pw-meter__bar.is-on:nth-child(4) { background: var(--auth-primary); }

.auth-pw-meter__hint {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--auth-muted);
    line-height: 1.4;
}

.auth-gate__submit--login {
    background: linear-gradient(135deg, var(--auth-purple), var(--auth-purple-2)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px -12px rgba(61, 90, 254, 0.55);
}

.auth-gate__submit--login:hover {
    box-shadow: 0 16px 32px -12px rgba(61, 90, 254, 0.65);
}

.auth-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.auth-perk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 211, 119, 0.1);
    border: 1px solid rgba(17, 211, 119, 0.22);
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
}

html[data-theme="light"] .auth-perk {
    color: #15803d;
    background: rgba(17, 211, 119, 0.08);
}

.auth-perk--purple {
    background: rgba(61, 90, 254, 0.1);
    border-color: rgba(61, 90, 254, 0.22);
    color: #d8b4fe;
}

html[data-theme="light"] .auth-perk--purple {
    color: var(--h-blue-dark);
}

.auth-social {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 2px;
}

.auth-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 8px;
    background: var(--auth-raised);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: var(--auth-text);
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s, background 0.15s;
}

.auth-social__btn i {
    font-size: 18px;
    line-height: 1;
}

.auth-social__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(61, 90, 254, 0.35);
    background: rgba(61, 90, 254, 0.08);
}

.auth-social__btn--google i { color: #ea4335; }
.auth-social__btn--discord i { color: #5865f2; }
.auth-social__btn--steam i { color: #66c0f4; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 16px 0 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--auth-raised);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    height: 48px;
    padding: 0 12px 0 42px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.auth-field:focus-within {
    border-color: rgba(61, 90, 254, 0.45);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.14);
}

.auth-field__ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    font-size: 17px;
    pointer-events: none;
}

.auth-field:focus-within .auth-field__ico {
    color: var(--auth-purple);
}

.auth-field input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent !important;
    color: var(--auth-text) !important;
    font-size: 14px;
    padding: 0;
    min-width: 0;
    box-shadow: none !important;
}

.auth-field input::placeholder {
    color: var(--auth-muted);
}

.auth-field__pw {
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--auth-muted);
    margin-right: -4px;
    border-radius: 8px;
}

.auth-field__pw:hover {
    color: var(--auth-text);
    background: rgba(148, 163, 184, 0.08);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 0;
}

.auth-grid .auth-field {
    margin-bottom: 8px;
}

.auth-grid--phone {
    grid-template-columns: 92px 1fr;
}

.auth-field--cc {
    padding-left: 38px;
}

.auth-field--cc input {
    color: var(--auth-muted) !important;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 12px;
}

.auth-link {
    color: var(--auth-purple);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-shell .yon-check__text {
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-shell .yon-check__text strong {
    color: var(--auth-text);
}

.auth-shell .yon-check__text a {
    color: var(--auth-purple) !important;
}

.auth-terms {
    margin: 8px 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--auth-raised);
    border: 1px solid var(--auth-border);
}

.auth-terms__note {
    margin: 8px 0 0 32px;
    font-size: 11px;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-terms__note a {
    color: var(--auth-purple);
    font-weight: 700;
    text-decoration: none;
}

.auth-terms__note a:hover {
    text-decoration: underline;
}

.auth-gate__submit,
.auth-card__submit {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover)) !important;
    color: #04120a !important;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 12px 28px -12px rgba(17, 211, 119, 0.55);
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-gate__submit:hover,
.auth-card__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -12px rgba(17, 211, 119, 0.65);
}

.auth-gate__submit--purple {
    background: linear-gradient(135deg, var(--auth-purple), var(--auth-purple-2)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px -12px rgba(61, 90, 254, 0.55);
}

.auth-foot {
    margin: 16px 0 0;
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--auth-border);
    font-size: 13px;
    color: var(--auth-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth-foot__link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--auth-purple);
    font-weight: 800;
    font-size: 13px;
}

.auth-foot__link:hover {
    text-decoration: underline;
}

.auth-gate__form .yh-btn,
.auth-card__form .yh-btn {
    margin-top: 6px;
}

.auth-foot__muted {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 13px;
}

.auth-foot__sep {
    color: var(--auth-border);
}

/* ── Hero panel ── */
.auth-gate__hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 20% 15%, rgba(61, 90, 254, 0.35), transparent 55%),
        radial-gradient(ellipse 80% 60% at 85% 85%, rgba(17, 211, 119, 0.28), transparent 50%),
        linear-gradient(165deg, var(--h-bg-raised) 0%, var(--h-bg-page) 100%);
}

.auth-gate__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--h-bg-page) 40%, transparent) 45%, color-mix(in srgb, var(--h-bg-page) 95%, transparent) 100%);
    pointer-events: none;
}

.auth-gate__panel--lg .auth-gate__hero {
    min-height: 520px;
}

.auth-gate__hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 36px 28px;
    color: #fff;
}

.auth-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero__chip i {
    color: var(--auth-primary);
}

.auth-hero__title {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #fff;
}

.auth-gate__hero-overlay p {
    margin: 10px 0 0;
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.55;
    color: #e2e8f0;
}

.auth-hero__bullets {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.auth-hero__bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.auth-hero__bullets li i {
    color: var(--auth-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.auth-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.auth-hero__stat {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.auth-hero__stat strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.auth-hero__stat span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Standalone auth card (şifre, 2FA, doğrulama) ── */
.auth-shell--card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(440px, 100%);
    margin: 0 auto;
    min-height: calc(100dvh - var(--yon-sticky-offset, 80px) - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 32px;
    box-sizing: border-box;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 32px 28px 28px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--yh-shell-radius, 16px);
    box-shadow: var(--h-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(8px);
    color: var(--auth-text);
}

.auth-card__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-card__back:hover {
    color: var(--auth-purple);
}

.auth-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: rgba(61, 90, 254, 0.12);
    border: 1px solid rgba(61, 90, 254, 0.25);
    color: var(--auth-purple);
    font-size: 24px;
}

.auth-card__icon--green {
    background: rgba(17, 211, 119, 0.12);
    border-color: rgba(17, 211, 119, 0.25);
    color: var(--auth-primary);
}

.auth-card__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.auth-card__sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-card__form {
    display: grid;
    gap: 0;
}

.auth-card__error {
    margin-top: -4px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #fca5a5;
}

html[data-theme="light"] .auth-card__error {
    color: #b91c1c;
}

.auth-field--code input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 0.28em;
    font-weight: 800;
}

.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.auth-card__foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-card__foot a {
    color: var(--auth-purple);
    font-weight: 700;
    text-decoration: none;
}

.auth-card__foot a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-gate__panel,
    .auth-gate__panel--lg {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .auth-gate__hero {
        display: none;
    }

    .auth-gate__trust {
        display: grid;
    }

    .auth-gate__trust-item {
        font-size: 9px;
        padding: 8px 4px;
    }

    .auth-perks {
        justify-content: center;
    }

    .auth-gate__form-side {
        padding: 28px 22px 24px;
    }

    .auth-gate__title {
        font-size: 22px;
    }
}

.auth-gate__brand--mobile {
    display: none !important;
}

@media (max-width: 900px) {
    .auth-gate__brand--mobile {
        display: none !important;
    }
}

.auth-shell .yon-check__input:checked,
.auth-shell .yon-check__input:checked:hover,
.auth-shell .yon-check__input:checked:focus {
    background: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
}

.auth-shell .yon-check__input:focus-visible {
    box-shadow: 0 0 0 3px rgba(17, 211, 119, 0.25) !important;
}

.auth-shell .yon-check__input:hover {
    border-color: rgba(61, 90, 254, 0.45) !important;
}

@media (max-width: 480px) {
    .auth-gate-page,
    .auth-shell--gate,
    .auth-shell--card {
        padding: 10px;
    }

    .auth-social {
        grid-template-columns: 1fr;
    }

    .auth-grid,
    .auth-grid--phone {
        grid-template-columns: 1fr;
    }

    .auth-gate__tabs {
        margin-bottom: 16px;
    }

    .auth-gate__tab span {
        display: none;
    }

    .auth-gate__tab {
        padding: 12px;
    }

    .auth-card {
        padding: 26px 20px 22px;
        border-radius: 18px;
    }
}

/* ═══ Legacy yon.css / yon-app.css override (yüksek öncelik) ═══ */
.auth-shell.auth-gate-page {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
}

.auth-shell .auth-gate__panel {
    background: var(--auth-surface) !important;
    box-shadow: var(--h-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.25)) !important;
    border-radius: var(--yh-shell-radius, 16px) !important;
}

.auth-shell .auth-gate__form-side {
    background: var(--auth-surface) !important;
    color: var(--auth-text) !important;
}

.auth-shell .auth-gate__title {
    color: var(--auth-text) !important;
}

.auth-shell .auth-gate__sub {
    color: var(--auth-muted) !important;
}

.auth-shell .auth-field {
    background: var(--auth-raised) !important;
    border-color: var(--auth-border) !important;
}

.auth-shell .auth-field:focus-within {
    border-color: rgba(61, 90, 254, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.14) !important;
}

.auth-shell .auth-field input {
    color: var(--auth-text) !important;
}

.auth-shell .auth-field input::placeholder {
    color: var(--auth-muted) !important;
}

.auth-shell .auth-social__btn {
    background: var(--auth-raised) !important;
    border-color: var(--auth-border) !important;
    color: var(--auth-text) !important;
}

.auth-shell .auth-social__btn:hover {
    border-color: rgba(61, 90, 254, 0.35) !important;
    background: rgba(61, 90, 254, 0.08) !important;
}

.auth-shell .auth-divider {
    color: var(--auth-muted) !important;
}

.auth-shell .auth-divider::before,
.auth-shell .auth-divider::after {
    background: var(--auth-border) !important;
}

.auth-shell .auth-link,
.auth-shell .auth-foot__link {
    color: var(--auth-purple) !important;
}

.auth-shell .auth-foot {
    color: var(--auth-muted) !important;
    border-top-color: var(--auth-border) !important;
}

.auth-shell .auth-terms {
    background: var(--auth-raised) !important;
    border-color: var(--auth-border) !important;
}

.auth-shell .auth-terms__note {
    color: var(--auth-muted) !important;
}

.auth-shell .auth-terms__note a {
    color: var(--auth-purple) !important;
}

.auth-shell .auth-gate__submit {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover)) !important;
    color: #04120a !important;
    box-shadow: 0 12px 28px -12px rgba(17, 211, 119, 0.55) !important;
}

.auth-shell .auth-gate__submit--login {
    background: linear-gradient(135deg, var(--auth-purple), var(--auth-purple-2)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px -12px rgba(61, 90, 254, 0.55) !important;
}

.auth-shell .auth-gate__close {
    background: var(--auth-raised) !important;
    color: var(--auth-muted) !important;
    border: 1px solid var(--auth-border) !important;
}

.auth-shell .auth-gate__close:hover {
    background: rgba(61, 90, 254, 0.1) !important;
    color: var(--auth-text) !important;
}

.auth-shell .auth-gate__hero {
    background:
        radial-gradient(ellipse 90% 70% at 20% 15%, rgba(61, 90, 254, 0.35), transparent 55%),
        radial-gradient(ellipse 80% 60% at 85% 85%, rgba(17, 211, 119, 0.28), transparent 50%),
        linear-gradient(165deg, var(--h-bg-raised) 0%, var(--h-bg-page) 100%) !important;
}

html[data-theme="light"] .auth-shell .auth-gate__hero {
    background:
        radial-gradient(ellipse 90% 70% at 20% 15%, rgba(61, 90, 254, 0.12), transparent 55%),
        radial-gradient(ellipse 80% 60% at 85% 85%, rgba(13, 184, 102, 0.1), transparent 50%),
        linear-gradient(165deg, #eef1f6 0%, #f8fafc 100%) !important;
}

html[data-theme="light"] .auth-shell .auth-gate__hero::before {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.5) 45%, rgba(241, 245, 249, 0.95) 100%) !important;
}

html[data-theme="light"] .auth-shell .auth-gate__hero-overlay,
html[data-theme="light"] .auth-shell .auth-hero__title,
html[data-theme="light"] .auth-shell .auth-gate__hero-overlay p,
html[data-theme="light"] .auth-shell .auth-hero__bullets li {
    color: #0f172a !important;
}

html[data-theme="light"] .auth-shell .auth-hero__chip {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

html[data-theme="light"] .auth-shell .auth-hero__stat {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .auth-shell .auth-hero__stat strong {
    color: #0f172a !important;
}

html[data-theme="light"] .auth-shell .auth-hero__stat span {
    color: #64748b !important;
}

.auth-shell .auth-gate__panel .yon-check,
.auth-shell .auth-gate__panel .yon-check__text {
    color: var(--auth-muted) !important;
}

.auth-shell .auth-gate__panel .yon-check__text strong {
    color: var(--auth-text) !important;
}

.auth-shell .auth-gate__panel .yon-check__input:not(:checked) {
    background-color: var(--auth-raised) !important;
    border-color: var(--auth-border) !important;
}

html[data-theme="light"] .auth-shell .auth-gate__panel .yon-check__input:not(:checked) {
    background-color: #fff !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

.auth-shell .auth-gate__panel .yon-check__input:checked {
    background: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
}

.auth-shell .auth-gate__alert--error {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.auth-shell .auth-gate__alert--success {
    border-color: rgba(17, 211, 119, 0.35) !important;
    background: rgba(17, 211, 119, 0.1) !important;
}

/* ── Header auth trigger (Giriş Yap / veya üye ol) ── */
.yon-shell.yon-shell--yon .yon-auth-trigger--stack {
    height: auto;
    min-height: 44px;
    padding: 6px 14px 6px 6px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--h-border) 80%, transparent);
    background: color-mix(in srgb, var(--h-bg-raised) 88%, transparent);
    color: var(--h-text);
    max-width: none;
    white-space: normal;
}

.yon-shell.yon-shell--yon .yon-auth-trigger--stack:hover {
    border-color: color-mix(in srgb, var(--h-blue) 35%, var(--h-border));
    background: var(--h-blue-soft);
}

.yon-shell.yon-shell--yon .yon-auth-trigger__text--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1.15;
    text-align: left;
}

.yon-shell.yon-shell--yon .yon-auth-trigger__text--stack strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--h-text-bright, #fff);
}

.yon-shell.yon-shell--yon .yon-auth-trigger__text--stack small {
    font-size: 11px;
    font-weight: 500;
    color: var(--h-text-muted);
}

.yon-shell.yon-shell--yon .yon-header-icon-group .yon-auth-trigger--stack {
    margin-left: 2px;
}

/* ── Auth modal overlay ── */
.yon-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.yon-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yon-auth-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.yon-auth-modal .auth-gate__panel {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
}

.yon-auth-modal .auth-gate__form-side {
    overflow-y: auto;
    max-height: calc(100dvh - 40px);
}

.yon-auth-modal .auth-gate__close {
    display: grid !important;
}

html.yon-auth-modal-open,
body.yon-auth-modal-open {
    overflow: hidden;
}

.auth-social--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.auth-social--4 .auth-social__btn {
    height: 48px;
    padding: 0;
}

.auth-social__btn--facebook i {
    color: #1877f2;
}

@media (max-width: 640px) {
    .yon-auth-modal {
        padding: 0;
        align-items: stretch;
    }

    .yon-auth-modal .auth-gate__panel {
        width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .yon-auth-modal .auth-gate__hero {
        display: none;
    }

    .auth-social--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
