/* ==========================================================================
   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: 1.5rem;
    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: 2.5rem 2.5rem;
    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 {
    display: block;
    width: clamp(130px, 22vw, 190px);
    height: auto;
    margin: 0 auto 0.75rem;
}

.login-title {
    color: var(--text-main);
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    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;
}

/* "Şifremi Unuttum" bağlantısı (Beni Hatırla satırının sağında) */
.forgot-link {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--landing-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--landing-primary-dark);
    text-decoration: underline;
}

/* =========================================================
   ŞİFREMİ UNUTTUM MODALI
   ========================================================= */

.forgot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.forgot-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.forgot-modal {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.forgot-overlay.visible .forgot-modal {
    transform: translateY(0) scale(1);
}

.forgot-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--neutral-100, #f1f5f9);
    color: var(--neutral-600, #475569);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.forgot-close:hover {
    background: var(--neutral-200, #e2e8f0);
    color: var(--neutral-800, #1e293b);
}

.forgot-title {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.forgot-subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

#forgot-form .field {
    margin-bottom: 0.35rem;
}

#forgot-form .btn {
    margin-top: 1rem;
}

/* Login sayfası form yardımcıları (eski global.css'ten — yalnızca bu sayfa) */
.login-page .field {
    margin-bottom: 1.25rem;
}

.login-page .field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.login-page .field-error {
    font-size: 0.78rem;
    color: var(--error, #dc2626);
    margin-top: 0.3rem;
    display: none;
}

.login-page .field-error.visible {
    display: block;
}

.login-page .input {
    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;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.login-page .input:focus {
    border-color: var(--landing-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.login-page .input.error {
    border-color: var(--error, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.login-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    user-select: none;
}

.login-page .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-page .btn-primary {
    background: var(--landing-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.25);
}

.login-page .btn-primary:hover:not(:disabled) {
    background: var(--landing-primary-dark);
    box-shadow: 0 4px 16px rgba(227, 6, 19, 0.35);
}

.login-page .btn-full {
    width: 100%;
}

.login-page .btn .spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.login-page .btn.loading .spinner {
    display: block;
}

.login-page .btn.loading .btn-text {
    opacity: 0;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 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;
        align-items: center;
        min-height: 100dvh;
        padding: 1rem 0;
        box-sizing: border-box;
    }

    .intro-section {
        display: none !important;
    }

    .login-section {
        margin: auto 0;
        padding: 0.5rem;
        width: 100%;
        min-height: 0;
        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-section {
        padding: 0.75rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .login-logo {
        width: clamp(130px, 40vw, 170px);
        margin-bottom: 0.5rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-header {
        margin-bottom: 0.75rem;
    }

    .input-group {
        margin-bottom: 0.8rem;
    }

    .btn-login {
        padding: 12px;
        margin-top: 0.5rem;
    }
}

/* Küçük telefonlar (380px ve altı) */
@media (max-width: 380px) {
    .login-card {
        padding: 1.25rem 1rem;
    }

    .login-logo {
        width: clamp(110px, 34vw, 140px);
    }

    .login-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   REHBERLİK SİSTEMİ'NE ÖZEL BİLEŞENLER
   (Deneme Takip anasayfasında bulunmayan form elemanları — bu sayfada etkisiz)
   ========================================================================== */

/* Başlık satırları */
.login-title-line {
    display: inline-block;
    white-space: nowrap;
}

.login-title-line-compact {
    font-size: 0.8em;
    letter-spacing: -0.02em;
}

/* Giriş / Kayıt sekmeleri */
.form-tabs {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

.form-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: #6b7280;
    background: rgba(255, 255, 255, 0.62);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.form-tab.aktif {
    color: var(--landing-primary);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.form-tab:hover:not(.aktif) {
    color: #374151;
    background: rgba(255,255,255,.78);
}

/* Hata kutusu (giriş ve kayıt) */
.login-error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
    display: none;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.login-error.visible {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

/* Form alanları: tüm input tiplerini tutarlı hale getir */
.input-group .input {
    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);
}

/* Özellik listesi iç metin düzeni (Rehberlik HTML yapısı) */
.feature-item > div {
    display: flex;
    flex-direction: column;
}

.feature-item > div strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.feature-item > div span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Alt not */
.login-footer-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Rehberlik — mobil sekme düzeni */
@media (max-width: 480px) {
    .form-tabs {
        gap: 0.5rem;
        margin-bottom: 0.9rem;
    }

    .form-tab {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .field {
        margin-bottom: 0.9rem;
    }

    .login-footer-note {
        margin-top: 1rem;
    }
}

@media (max-width: 380px) {
    .form-tab {
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }

    .btn-login {
        font-size: 1rem;
    }
}
