/**
 * Giriş sayfası — kurumsal, açık/koyu tema uyumlu (tokens.css ile birlikte yükleyin)
 */
html.auth-page {
    font-size: 16px;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: var(--app-font-body);
    background: var(--app-bg);
    color: var(--app-text);
    display: flex;
    align-items: stretch;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #111827 100%);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(31, 101, 244, 0.25), transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14, 165, 233, 0.15), transparent 50%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.9rem 1.35rem;
    margin-bottom: 2rem;
}

[data-bs-theme="light"] .auth-brand-logo-wrap {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.18);
}

[data-bs-theme="dark"] .auth-brand-logo-wrap {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.auth-brand-logo-wrap .auth-brand-logo {
    margin-bottom: 0;
    width: 170px;
    max-width: 170px;
    height: auto;
    max-height: none;
}

.auth-brand-logo {
    width: 170px;
    max-width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

.auth-brand-panel h1 {
    font-family: var(--app-font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-brand-eyebrow {
    font-family: var(--app-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(132, 170, 249, 0.95);
    margin: 0 0 0.5rem;
}

.auth-brand-lead {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.auth-brand-firma-notu {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.65);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.9375rem;
}

.auth-features .bi {
    color: #84aaf9;
    font-size: 1.1rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--app-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
}

.auth-card-wide {
    max-width: 480px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card-header .auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--app-primary-subtle);
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-card-header h2 {
    font-family: var(--app-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--app-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-card-header p {
    color: var(--app-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

.auth-form-panel .form-label {
    font-family: var(--app-font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--app-text-secondary);
    margin-bottom: 0.35rem;
}

.auth-form-panel .form-control {
    font-family: var(--app-font-body);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    min-height: 2.375rem;
    font-size: var(--app-text-sm);
    border-color: var(--app-border);
    background: var(--app-surface);
}

.auth-form-panel .form-control:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--app-primary-rgb), 0.15);
}

.auth-form-panel .input-group-text {
    background: var(--app-border-subtle);
    border-color: var(--app-border);
    color: var(--app-text-muted);
    border-radius: 10px 0 0 10px;
}

.auth-form-panel .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.btn-auth-primary {
    font-family: var(--app-font-display);
    background: var(--app-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.btn-auth-primary:hover {
    background: var(--app-primary-hover);
    color: #fff;
}

.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.35rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: var(--card-shadow);
}

.auth-theme-toggle button {
    border: 0;
    background: transparent;
    color: var(--app-text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.auth-theme-toggle button.active {
    background: var(--app-primary-subtle);
    color: var(--app-primary);
}

.abonelik-engel-kart {
    border-left: 4px solid var(--app-danger) !important;
    background: rgba(239, 68, 68, 0.06) !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .abonelik-engel-kart {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Cari panel giriş — sol panel dikey ortalı + logo taşıyıcı */
.auth-brand-panel-cari {
    justify-content: flex-start;
    padding: 0;
}

.auth-brand-panel-cari .auth-brand-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 4rem;
    position: relative;
    z-index: 1;
    min-height: 0;
}

.auth-brand-panel-cari .auth-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.18);
}

.auth-brand-panel-cari .auth-brand-logo {
    margin-bottom: 0;
    max-width: 200px;
    max-height: 72px;
}

.auth-brand-thanks {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.78);
    font-style: italic;
}

.auth-brand-copyright {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 1.25rem 4rem 2rem;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .auth-card-header h2 {
        font-size: 1.25rem;
    }

    .auth-form-panel .form-control {
        font-size: 0.875rem;
        padding: 0.4rem 0.65rem;
        min-height: 2.125rem;
    }
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
    }
}

.firma-logo-dark,
.sidebar-brand-favicon-dark {
    display: none;
}

[data-bs-theme="dark"] .firma-logo-light,
[data-bs-theme="dark"] .sidebar-brand-favicon-light {
    display: none !important;
}

[data-bs-theme="dark"] .firma-logo-dark,
[data-bs-theme="dark"] .sidebar-brand-favicon-dark {
    display: inline-block !important;
}
