/*
 * DigiSocial v1.0.0
 * Giriş/Kayıt (Auth) Stilleri (auth-style.css)
 * "Sosyalevin" Referanslı (Split-Screen Tasarım)
 */

/* Bu dosya, ana style.css'ten sonra yüklenecek */

body.auth-page {
    /* Sayfayı ortala */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 900px; /* Sosyalevin gibi geniş bir kutu */
    min-height: 600px;
    display: flex;
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* * BÖLÜM 1: FORM ALANI (Sol Taraf)
 */
.auth-form-wrapper {
    flex-basis: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 30px;
}
.auth-form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 5px;
}
.auth-form-header p {
    font-size: 1rem;
    color: var(--text-color-muted);
}
.auth-form-header .auth-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-decoration: none;
}

.auth-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color-muted);
}

/* İkonlu Input Kutusu */
.auth-form .input-icon {
    position: absolute;
    left: 15px;
    top: 52%; /* Label olduğu için hafif ayar */
    color: var(--text-color-muted);
    font-size: 1rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    padding-left: 45px; /* İkon için boşluk */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color-extra-light);
    color: var(--text-color-light);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 48.5px; /* Hizalama için */
}
.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* 2'li Sütun (Ad / Soyad için) */
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex-basis: 50%;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-submit:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}
.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hata Mesajı */
.alert-auth {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}


/* * BÖLÜM 2: GÖRSEL ALAN (Sağ Taraf)
 */
.auth-visual {
    flex-basis: 50%;
    background-color: var(--primary-color); /* Varsayılan */
    
    /* TODO: Buraya admin panelinden ayarlanabilir bir görsel gelecek */
    /* Şimdilik referanstaki gibi bir AI görseli */
    background-image: url('https://i.imgur.com/k6lP5qZ.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px;
}
/* Görselin üzerine hafif bir karartma */
.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}

.auth-visual-content {
    position: relative; /* Karartmanın üstünde kalması için */
    color: white;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.auth-visual-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.auth-visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* * RESPONSIVE (Mobil Görünüm)
 */
@media (max-width: 850px) {
    .auth-container {
        flex-direction: column; /* Dikeyde hizala */
        max-width: 500px;
        min-height: auto;
    }
    
    /* Mobil görünümde görseli gizle (Sosyalevin gibi) */
    .auth-visual {
        display: none;
    }

    .auth-form-wrapper {
        flex-basis: 100%;
        padding: 40px 30px;
    }
}