/* ==========================================================================
   BOZKURT ORTAOKULU - ANASAYFA STİLLERİ (anasayfa.css)
    @version 1.0
    @lastModified 24-12-2025
    v1.0 - Modern, Professional, Split-Screen Design
   
   NOT: Renk ve tema değişkenleri ortaktemalar.css dosyasında tanımlıdır.
   
   Bölüm Sıralaması:
   1. Temel ve Genel Stiller
   2. Particles Arkaplan
   3. Ana Layout (Split-Screen)
   4. Sol Bölüm: Giriş Sunumu
   5. Sağ Bölüm: Login Formu
   6. Form Elementleri
   7. Butonlar ve Etkileşimler
   8. Animasyonlar
   9. Responsive Tasarım
   ========================================================================== */

/* =========================================================
   1. TEMEL VE GENEL STİLLER
   ========================================================= */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    color: var(--text-main);
}

/* =========================================================
   2. PARTICLES ARKAPLAN
   ========================================================= */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
    top: 0;
    left: 0;
}

/* =========================================================
   3. ANA LAYOUT (SPLIT-SCREEN)
   ========================================================= */

.landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* =========================================================
   4. SOL BÖLÜM: GİRİŞ SUNUMU
   ========================================================= */

.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: var(--text-main);
    background: transparent;
    backdrop-filter: blur(2px);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-main);
}

.brand-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--landing-primary);
    padding-left: 1rem;
}

/* Feature List (Özellik Listesi) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0;
    animation: slideIn 0.5s forwards;
    color: var(--text-main);
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--landing-primary);
    border-radius: 0;
    margin-right: 1rem;
    font-size: 2rem;
    box-shadow: none;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.feature-text span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* =========================================================
   5. SAĞ BÖLÜM: LOGIN FORMU
   ========================================================= */

.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 4rem 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.login-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================================
   6. FORM ELEMENTLERİ
   ========================================================= */

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--landing-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Checkbox Grup */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.checkbox-group label {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    line-height: 1.2;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--landing-primary);
    margin: 0 8px 0 0;
    cursor: pointer;
    transform: scale(1.2);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Chrome Autofill Arka Plan Rengi */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffe6e6 inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =========================================================
   7. BUTONLAR VE ETKİLEŞİMLER
   ========================================================= */

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--landing-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-login:hover {
    background: var(--landing-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

/* Hata Mesajı */
.error-message {
    color: var(--error);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
    display: none; /* Varsayılan olarak gizli */
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.error-detail {
    font-size: 0.8em;
    font-family: monospace;
    color: var(--error-light);
    display: block;
    margin: 5px 0;
}

.error-hint {
    font-size: 0.8em;
    color: var(--text-light);
}

/* =========================================================
   8. ANIMASYONLAR
   ========================================================= */

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   9. RESPONSIVE TASARIM
   ========================================================= */

/* Tablet ve Küçük Ekranlar (968px ve altı) */
@media (max-width: 968px) {
    .landing-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100dvh;
    }

    .intro-section {
        display: none !important;
    }

    .login-section {
        padding: 1rem;
        width: 100%;
        min-height: 100dvh;
        box-sizing: border-box;
    }

    .login-card {
        margin: 0;
        width: 100%;
        max-width: 400px;
    }
}

/* Mobil Cihazlar (480px ve altı) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
}
