/* auth.css - Login, Register, Misafir Sorgulama, Burs Başvuru Sihirbazı Stilleri */

/* === TEMEL AUTH LAYOUT === */
body.auth-page {
     background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
     min-height: 100vh; 
}
/* Ortalamayı sağlayan ana kural: Header ve footer arasındaki alana uygulanır */
.main-content { 
    min-height: calc(100vh - 120px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-top: 0 !important; 
    padding-bottom: 0 !important;
}

.auth-container { 
    width: 100%; 
    max-width: 650px; /* Genişletildi */
    margin: auto; 
    padding: 0 1rem; 
}
.auth-card { 
    background: var(--surface); 
    border-radius: 16px; /* Daha belirgin rounded corners */
    padding: 3rem 2.5rem; /* İç dolgu artırıldı */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Daha derin gölge */
    position: relative; 
    overflow: hidden; 
    border: 1px solid var(--border);
}
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { 
    width: 64px; height: 64px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 1rem; 
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1); 
}
.auth-logo i { color: var(--text-on-primary); font-size: 2.2rem; }
.auth-title { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-muted); font-size: 1rem; }
.auth-submit { width: 100%; padding-top: 1rem; padding-bottom: 1rem; font-size: 1.1rem; margin-top: 1.5rem; }
.auth-footer { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.auth-footer a:hover { color: var(--primary-dark); text-decoration: underline; }

/* --- FORMLAR İÇİN MİKRO ESTETİK GELİŞTİRMELER --- */
.form-group { margin-bottom: 1.5rem; }
.form-label { 
    font-weight: 600; 
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-control, .form-select, textarea.form-control {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--surface-light);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: var(--surface);
}

/* --- SİHİRBAZ ADIMLARI (Çok Estetik) --- */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
    padding: 0 10px;
    margin-top: 10px;
}
/* Progress Bar Doluluk Hattı */
.wizard-progress::before {
    content: '';
    position: absolute;
    height: 3px;
    background: var(--border);
    width: calc(100% - 20px); 
    top: 20px; 
    z-index: 1;
    left: 10px;
}
.progress-bar { /* PHP'den gelen inline CSS burada --progress-width set eder */
    position: absolute;
    height: 3px;
    background: var(--border);
    width: calc(100% - 20px);
    top: 20px;
    z-index: 1;
    left: 10px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: var(--progress-width, 0%); /* PHP'den gelen değişken */
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.3s ease;
    left: 0;
}

.progress-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-basis: 12.5%; 
    max-width: 12.5%;
}

.step-circle {
    width: 45px; /* Boyut artırıldı */
    height: 45px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 5px solid var(--surface); /* Beyaz halka eklendi */
    box-shadow: 0 0 0 0px var(--primary);
}
.step-circle.completed {
    background: var(--success);
    color: white;
}
.step-circle.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light); 
    transform: scale(1.05); /* Aktif adımda hafif büyüme */
}
.step-label-main {
    margin-top: 8px;
    font-size: 0.8rem; /* Font boyutu artırıldı */
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
    min-width: 60px;
}
.progress-step-item.active .step-label-main,
.progress-step-item.completed .step-label-main {
    color: var(--primary-dark);
}
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }

/* --- MODAL (KVKK Sözleşmesi) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); /* Koyu arka plan */
    padding-top: 20px; /* Dikey konum ayarı */
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 95%; 
    max-width: 900px; /* Daha geniş modal */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.modal-header {
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 20px;
}
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}
.kvkk-group a { cursor: pointer; }


/* --- RESPONSIVE OPTİMİZASYON --- */
@media (max-width: 768px) {
    .auth-container { max-width: 100%; padding: 0; }
    .auth-card { border-radius: 0; padding: 2rem 1.5rem; }
    .wizard-progress { 
        padding: 0 5px; 
        margin-bottom: 1.5rem; 
        flex-wrap: wrap; 
        justify-content: space-around;
        gap: 15px;
    }
    .wizard-progress::before, .progress-bar {
         display: none; /* Mobil cihazlarda çubuğu kaldır, sadece adımları göster */
    }
    .progress-step-item {
        flex-basis: 22%; /* 4'erli sıra */
        max-width: 22%;
    }
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .step-label-main {
        font-size: 0.7rem;
        width: 100%;
        margin-top: 5px;
    }
    .purpose-options {
        grid-template-columns: 1fr;
    }
}
