/* ----------------------------------------------------------------------
 * AUTH CSS - Giriş, Kayıt ve Şifre Sıfırlama Sayfaları
 * ---------------------------------------------------------------------- */

:root {
    --auth-primary: #cc0000;
    --auth-primary-hover: #a30000;
    --auth-bg-left: #f8f9fa;
    --auth-bg-right: #ffffff;
    --auth-text-dark: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-input-bg: #f8fafc;
    --auth-radius: 10px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    width: 100%; height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--auth-bg-right);
    overflow: hidden; /* Scroll tamamen kapalı */
}

/* Layout Wrapper */
.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100vh; /* Ekranı tam kapla */
}

/* --- SOL TARAF (Banner - %40) --- */
.auth-banner {
    width: 40%;
    flex: 0 0 40%;
    position: relative;
    background-color: var(--auth-primary);
    background-image: url('../img/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.register-banner { background-image: url('../img/auth-bg-2.jpg'); }

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(204,0,0,0.8) 100%);
    z-index: -1;
}

.banner-content {
    position: relative;
    max-width: 450px;
    animation: fadeIn 0.8s ease-out;
}

.auth-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.banner-content h1 {
    font-size: 32px; /* Fontu biraz küçülttük */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
}

/* --- SAĞ TARAF (Form - %60) --- */
.auth-form-container {
    width: 60%;
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--auth-bg-right);
    position: relative;
    padding: 20px;
}

/* Form Kutusu - Daha Geniş ve Kompakt */
.auth-box {
    width: 100%;
    max-width: 600px; /* Genişletildi */
    padding: 30px 40px; /* Padding azaltıldı */
    animation: fadeInUp 0.6s ease-out;
}

/* Geri Dön Butonu */
.btn-back-home {
    position: absolute;
    top: 25px; right: 25px;
    color: var(--auth-text-muted);
    font-weight: 600;
    font-size: 13px;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--auth-border);
    transition: all 0.2s;
}
.btn-back-home:hover { 
    color: var(--auth-primary); 
    border-color: var(--auth-primary);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Header - Daha Kompakt */
.auth-header {
    margin-bottom: 20px; /* Boşluk azaltıldı */
}
.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--auth-text-dark);
    margin-bottom: 5px;
}
.auth-header p {
    color: var(--auth-text-muted);
    font-size: 14px;
}

.mobile-logo { display: none; margin-bottom: 15px; text-align: center; }
.mobile-logo img { height: 35px; }

/* Form Elemanları */
.form-group { margin-bottom: 15px; } /* Inputlar arası boşluk azaltıldı */

.input-icon-group { position: relative; }

.input-icon {
    position: absolute;
    top: 50%; left: 15px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

.form-control {
    width: 100%;
    padding: 0 15px 0 45px; /* Dikey padding yerine height ve flex center */
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    font-size: 14px;
    color: var(--auth-text-dark);
    background-color: var(--auth-input-bg);
    height: 48px; /* Yükseklik azaltıldı */
    transition: all 0.2s;
    line-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-control:focus + .input-icon { color: var(--auth-primary); }

/* Butonlar */
.btn-block {
    width: 100%;
    display: flex; justify-content: center; align-items: center;
    padding: 12px;
    font-size: 15px; font-weight: 600;
    color: #fff;
    background-color: var(--auth-primary);
    border: none;
    border-radius: var(--auth-radius);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    height: 48px;
}
.btn-block:hover {
    background-color: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

/* Alt Linkler */
.form-footer-link {
    text-align: right;
    margin-top: 5px;
    font-size: 13px;
}
.form-footer-link a { color: var(--auth-text-muted); text-decoration: none; }
.form-footer-link a:hover { color: var(--auth-primary); }

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-text-dark);
}
.auth-footer a { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* Alerts - Daha Kompakt */
.alert {
    padding: 10px 15px;
    border-radius: var(--auth-radius);
    margin-bottom: 15px;
    font-size: 13px;
    display: flex; align-items: center; gap: 10px;
}
.alert-danger { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Grid & Checkbox */
.row { display: flex; margin: 0 -8px; }
.col-6 { width: 50%; padding: 0 8px; }

.form-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--auth-text-muted);
    margin-top: 10px;
}
.form-check input { width: 16px; height: 16px; accent-color: var(--auth-primary); cursor: pointer; }
.form-check a { color: var(--auth-text-dark); text-decoration: underline; }

/* Animasyonlar */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 992px) {
    .auth-banner { display: none; }
    .auth-form-container { width: 100%; flex: 0 0 100%; padding: 20px; }
    
    .mobile-logo { display: block; }
    .auth-header { text-align: center; }
    .btn-back-home { top: 15px; right: 15px; border: none; }
    
    /* Mobilde scroll gerekebilir, sadece mobilde açıyoruz */
    body, html { overflow: auto; }
    .auth-wrapper { height: auto; min-height: 100vh; }
    .auth-box { padding: 20px; }
}