/* ====================================================================== */
/* === AUTH.CSS (GİRİŞ/KAYIT SAYFASI) ================================= */
/* ====================================================================== */

body {
    display: flex; /* Body'yi flex konteyner yap */
    min-height: 100vh; /* Tam ekran yüksekliğini kapla */
    margin: 0;
    overflow: hidden; /* Scrollbar olmasın */
    background-color: var(--bg-body); /* Temel arka plan rengi */
}

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden; /* İçerik taşmasını engelle */
}

/* Arka Plan Resmi */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/login_bg_light.jpg	'); /* Buraya kendi resminizin yolunu girin */
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Arka planı hafifçe bulanıklaştır */
    -webkit-filter: blur(5px); /* Webkit tarayıcılar için */
    z-index: 0; /* İçeriklerin arkasında kalmasını sağla */
    transition: filter 0.3s ease;
}

/* Koyu Tema Arka Planı */
body[data-theme="dark"] .auth-wrapper::before {
    background-image: url('../images/login_bg_light.jpg'); /* Koyu tema için farklı bir resim */
}

/* Aydınlık Tema Arka Planı */
body[data-theme="light"] .auth-wrapper::before {
    background-image: url('../images/login_bg_light.jpg'); /* Aydınlık tema için farklı bir resim */
}

/* Auth İçeriği */
.auth-container, .auth-info {
    position: relative; /* z-index'in çalışması için */
    z-index: 1; /* Arka plan resminin üzerinde kalmasını sağla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Sol Taraftaki Bilgi Alanı */
.auth-info {
    flex: 1; /* Kalan alanı kapla */
    background: rgba(var(--bg-card-rgb), 0.7); /* Hafif şeffaf arka plan */
    padding: 40px;
    color: var(--text-main);
    text-align: center;
    backdrop-filter: blur(10px); /* Kutuya da hafif blur efekti */
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
}

.auth-info-logo {
    font-family: 'Righteous', cursive;
    font-size: 2.3rem !important;
    letter-spacing: 1px;
    
    background: -webkit-linear-gradient(0deg, var(--text-main), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.auth-info-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

.auth-info-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Sağ Taraftaki Giriş Kartı */
.auth-container {
    flex-shrink: 0; /* Daralmayı engelle */
    width: 450px; /* Giriş kartının sabit genişliği */
    background: rgba(var(--bg-card-rgb), 0.9); /* Biraz daha opak arka plan */
    backdrop-filter: blur(20px); /* Kutuya daha belirgin blur */
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--box-shadow-lg);
    display: flex; /* İçeriği ortalamak için */
    align-items: center; /* Dikeyde ortala */
    justify-content: center; /* Yatayda ortala */
}

.auth-card {
    width: 100%;
    max-width: 380px; /* Kartın maksimum genişliği */
    padding: 30px;
    background: var(--bg-card-primary); /* Kartın kendi arka planı */
    box-shadow: none; /* Üstteki blurlu arkaplan olduğu için gerek yok */
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.form-label {
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text-color);
    padding: 10px 15px;
}

.form-control:focus {
    background-color: var(--input-bg-focus);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-blue-rgb), 0.25);
    color: var(--input-text-color);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert mesajları */
.alert {
    font-size: 0.9rem;
    padding: 10px 15px;
    margin-bottom: 20px;
}
.alert-success { background-color: rgba(30, 140, 60, 0.15); color: #28a745; border-color: rgba(30, 140, 60, 0.3); }
.alert-danger { background-color: rgba(220, 53, 69, 0.15); color: #dc3545; border-color: rgba(220, 53, 69, 0.3); }

/* ====================================================================== */
/* === Responsive Düzenlemeler ======================================== */
/* ====================================================================== */
@media (max-width: 992px) { /* Tablet ve altı */
    .auth-wrapper {
        flex-direction: column; /* Sütun düzenine geç */
        overflow-y: auto; /* Dikey kaydırmayı etkinleştir */
    }

    .auth-wrapper::before {
        filter: blur(3px); /* Mobil için daha az blur */
        -webkit-filter: blur(3px);
    }

    .auth-info {
        flex: none; /* Esnemesini kapat */
        width: 100%;
        padding: 30px 20px;
        background: rgba(var(--bg-card-rgb), 0.8); /* Daha opak yap */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .auth-info-logo {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .auth-info-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .auth-info-text {
        font-size: 0.95rem;
        max-width: none;
    }

    .auth-container {
        width: 100%;
        flex-grow: 1; /* Kalan alanı kapla */
        padding: 20px;
        background: rgba(var(--bg-card-rgb), 0.95); /* Mobil için neredeyse tam opaklık */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    .auth-card {
        padding: 25px;
    }
}

@media (max-width: 576px) { /* Ekstra küçük cihazlar */
    .auth-info {
        padding: 20px 15px;
    }
    .auth-info-title {
        font-size: 1.5rem;
    }
    .auth-info-text {
        font-size: 0.9rem;
    }
    .auth-card {
        padding: 20px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
}
/* =========================================================
 * === FORM SAYFALARI İÇİN ÖZEL KONTEYNER (DASHBOARD İÇİ) ===
 * ========================================================= */
.dashboard-form-wrapper {
    max-width: 900px;      /* Form çok yayılmasın, okunabilir kalsın */
    margin: 40px auto;     /* Üstten/Alttan boşluk, Yatayda ortala */
    padding: 0 15px;       /* Mobilde kenarlara yapışmasın */
}

/* Mobilde üst boşluğu azalt */
@media (max-width: 991.98px) {
    .dashboard-form-wrapper {
        margin-top: 20px;
    }
}