/* --- AUTH.CSS (NİHAİ VE DÜZELTİLMİŞ) --- */

/* --- GENEL FORM STİLLERİ (Ortak) --- */

/* Wrapper */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

/* Standart Kart Yapısı */
.auth-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.auth-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* --- INPUT VE İKON HİZALAMA (DÜZELTİLDİ) --- */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%); /* Dikeyde tam ortalar */
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none; /* Tıklamayı inputa geçirir */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem; /* Sabit genişlik hizalamayı korur */
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* İkonlu inputlarda soldan boşluk bırak */
.form-input.with-icon {
    padding-left: 3rem; 
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* İkon rengi input focus olunca değişsin */
.form-input:focus + .input-icon, /* Eğer ikon inputtan sonraysa */
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.form-input.error {
    border-color: var(--primary-color);
    background-color: #fef2f2;
}

.error-text {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

/* Chrome Autofill (Sarı Arka Plan) Düzeltmesi */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ana Aksiyon Butonu */
.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-inverse);
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alt Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* --- SPLIT SCREEN LAYOUT --- */
.auth-split-wrapper {
    display: flex;
    min-height: 80vh;
    max-width: 1100px;
    margin: 3rem auto;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* SOL TARAF: Görsel */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), #991b1b);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    text-align: center;
}

.auth-visual-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.auth-visual-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-visual-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* SAĞ TARAF: Form */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: var(--bg-card);
}

.auth-split-wrapper .auth-card {
    box-shadow: none;
    border: none;
    padding: 0; 
    max-width: 400px;
    background: transparent;
}

/* --- EKSTRA FORM ELEMANLARI --- */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Sosyal Medya Giriş */
.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-login-divider span {
    padding: 0 15px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
}

.btn-social:hover {
    background-color: #fff;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-google i { color: #db4437; font-size: 1.1rem; }
.btn-facebook i { color: #4267B2; font-size: 1.1rem; }

/* --- MOBİL RESPONSIVE --- */
@media (max-width: 900px) {
    .auth-visual-side {
        display: none;
    }

    .auth-split-wrapper {
        max-width: 500px;
        margin: 2rem auto;
        box-shadow: none; 
        border: none;
        background-color: transparent;
    }
    
    .auth-form-side {
        padding: 0;
        background-color: transparent;
    }
    
    .auth-split-wrapper .auth-card {
        padding: 2rem;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding-top: 1rem;
        align-items: flex-start;
    }

    .auth-split-wrapper {
        margin: 1rem auto;
    }

    .auth-split-wrapper .auth-card {
        padding: 1.5rem;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }

    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Bildirim Kutuları */
.alert {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-info { background-color: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-success { background-color: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger { background-color: #fef2f2; color: #991b1b; border-color: #fecaca; }

.auth-footer i { margin-right: 0.4rem; }