/* Giriş / şifremi unuttum / şifre sıfırlama ekranları — ödeme portalı ile aynı siyah/sarı kimlik */
:root {
    --au-black: #111111;
    --au-black-soft: #1c1c1c;
    --au-brand: #FFC52F;
    --au-brand-hover: #F2B400;
    --au-brand-soft: #FFF6D6;
    --au-bg: #F3F4F6;
    --au-surface: #FFFFFF;
    --au-surface-muted: #F9FAFB;
    --au-border: #E5E7EB;
    --au-border-strong: #D1D5DB;
    --au-text: #111827;
    --au-text-muted: #6B7280;
    --au-danger: #B91C1C;
    --au-danger-soft: #FEE2E2;
    --au-success: #15803D;
    --au-success-soft: #DCFCE7;
    --au-radius: 12px;
    --au-radius-sm: 8px;
    --au-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px rgba(17, 24, 39, .08);
    --au-font: Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body.auth {
    min-height: 100vh;
    background: var(--au-bg);
    color: var(--au-text);
    font-family: var(--au-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 44%) 1fr;
    min-height: 100vh;
}

/* ---------- Sol marka paneli ---------- */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 197, 47, .10), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .04), transparent 40%),
        var(--au-black);
    color: #fff;
    overflow: hidden;
}

    .auth-brand::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 4px;
        background: var(--au-brand);
    }

.auth-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.auth-brand-body { max-width: 440px; }

.auth-brand-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

    .auth-brand-title::after {
        content: "";
        display: block;
        width: 48px;
        height: 3px;
        margin-top: 20px;
        background: var(--au-brand);
        border-radius: 2px;
    }

.auth-brand-text {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
}

.auth-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .auth-features li {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
        color: rgba(255, 255, 255, .9);
    }

    .auth-features i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        height: 36px;
        border-radius: var(--au-radius-sm);
        background: rgba(255, 197, 47, .12);
        color: var(--au-brand);
        font-size: 15px;
    }

.auth-brand-main { max-width: 440px; }

/* Android uygulama indirme rozeti */
.auth-app {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 10px 18px 10px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

    .auth-app:hover {
        border-color: var(--au-brand);
        background: rgba(255, 197, 47, .08);
        color: #fff;
        text-decoration: none;
    }

    .auth-app:focus-visible {
        outline: 2px solid var(--au-brand);
        outline-offset: 2px;
    }

    .auth-app i {
        color: #fff;
        font-size: 26px;
    }

.auth-app-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .auth-app-text small {
        color: rgba(255, 255, 255, .6);
        font-size: 11px;
        letter-spacing: .06em;
    }

    .auth-app-text strong {
        font-size: 16px;
        font-weight: 600;
    }

.auth-brand-foot {
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}

/* ---------- Sağ form alanı ---------- */
.auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 32px;
}

.auth-lang {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--au-border);
    border-radius: 999px;
    background: var(--au-surface);
}

    .auth-lang button {
        min-width: 40px;
        padding: 4px 10px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--au-text-muted);
        font: 600 12px var(--au-font);
        cursor: pointer;
    }

        .auth-lang button.is-active {
            background: var(--au-black);
            color: #fff;
        }

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border: 1px solid var(--au-border);
    border-radius: var(--au-radius);
    background: var(--au-surface);
    box-shadow: var(--au-shadow);
}

.auth-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.auth-sub {
    margin: 0 0 28px;
    color: var(--au-text-muted);
}

.auth-field { margin-bottom: 18px; }

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--au-text);
}

.auth-label-row .auth-label { margin-bottom: 0; }

.auth-input-wrap {
    position: relative;
}

    .auth-input-wrap > i {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: var(--au-text-muted);
        font-size: 14px;
        pointer-events: none;
    }

.auth-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--au-border-strong);
    border-radius: var(--au-radius-sm);
    background: var(--au-surface);
    color: var(--au-text);
    font: 15px var(--au-font);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

select.auth-input {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-input::placeholder { color: #9CA3AF; }

.auth-input:focus {
    outline: none;
    border-color: var(--au-black);
    box-shadow: 0 0 0 3px rgba(255, 197, 47, .45);
}

.auth-input.has-toggle { padding-right: 46px; }

.auth-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--au-text-muted);
    cursor: pointer;
}

    .auth-toggle:hover { color: var(--au-text); }

    .auth-toggle:focus-visible {
        outline: 2px solid var(--au-black);
        outline-offset: -4px;
        border-radius: var(--au-radius-sm);
    }

.auth-link {
    color: var(--au-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--au-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

    .auth-link:hover { color: #000; text-decoration-color: var(--au-brand-hover); }

.auth-forgot {
    margin-top: 8px;
    text-align: right;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--au-radius-sm);
    background: var(--au-brand);
    color: var(--au-black);
    font: 700 15px var(--au-font);
    cursor: pointer;
    transition: background-color .15s, transform .05s;
}

    .auth-btn:hover { background: var(--au-brand-hover); }
    .auth-btn:active { transform: translateY(1px); }

    .auth-btn:focus-visible {
        outline: 2px solid var(--au-black);
        outline-offset: 2px;
    }

    .auth-btn[disabled] {
        opacity: .7;
        cursor: default;
    }

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(17, 17, 17, .25);
    border-top-color: var(--au-black);
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

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

.auth-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--au-radius-sm);
    font-size: 14px;
}

    .auth-alert.is-visible { display: flex; }
    .auth-alert i { margin-top: 3px; }

    .auth-alert.is-error {
        background: var(--au-danger-soft);
        color: var(--au-danger);
    }

    .auth-alert.is-success {
        background: var(--au-success-soft);
        color: var(--au-success);
    }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--au-text-muted);
    font: 500 14px var(--au-font);
    text-decoration: none;
    cursor: pointer;
}

    .auth-back:hover { color: var(--au-text); text-decoration: none; }

.auth-center { text-align: center; margin-top: 20px; }

/* ---------- İki adımlı doğrulama ---------- */
.auth-step[hidden] { display: none; }

.auth-qr {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--au-border);
    border-radius: var(--au-radius-sm);
    background: var(--au-surface-muted);
    text-align: center;
}

    .auth-qr p {
        margin: 0 0 14px;
        color: var(--au-text-muted);
        font-size: 13px;
        text-align: left;
    }

    .auth-qr img {
        display: block;
        width: 176px;
        height: 176px;
        margin: 0 auto 14px;
        padding: 8px;
        border-radius: var(--au-radius-sm);
        background: #fff;
    }

.auth-manual {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border: 1px dashed var(--au-border-strong);
    border-radius: var(--au-radius-sm);
    background: var(--au-surface);
}

    .auth-manual code {
        flex: 1;
        overflow-wrap: anywhere;
        color: var(--au-text);
        font: 600 13px Consolas, "Courier New", monospace;
        letter-spacing: .04em;
        text-align: left;
    }

    .auth-manual button {
        flex: 0 0 auto;
        padding: 6px 10px;
        border: 1px solid var(--au-border-strong);
        border-radius: 6px;
        background: var(--au-surface);
        color: var(--au-text);
        font: 500 12px var(--au-font);
        cursor: pointer;
    }

.auth-code {
    padding-left: 14px;
    font: 600 22px Consolas, "Courier New", monospace;
    letter-spacing: .5em;
    text-align: center;
}

/* ---------- Kart altı ---------- */
.auth-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
    color: var(--au-text-muted);
    font-size: 13px;
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .auth-brand {
        padding: 18px 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .auth-app {
        margin-top: 0;
        padding: 6px 12px 6px 10px;
        gap: 8px;
    }

        .auth-app i { font-size: 20px; }
        .auth-app-text small { font-size: 9px; }
        .auth-app-text strong { font-size: 13px; }

    .auth-logo img { width: 160px; }

    .auth-brand-body, .auth-brand-foot { display: none; }

    .auth-main {
        justify-content: flex-start;
        padding: 24px 16px 32px;
    }

    .auth-lang {
        position: static;
        align-self: flex-end;
        margin-bottom: 16px;
    }

    .auth-card { padding: 28px 20px; }
}

