/* =========================================================
   Bozkurt Ortaokulu - Landing & Login Page Styles
   Modern, Professional, Split-Screen Design
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #E30613;
    --primary-dark: #b30000;
    --text-main: #2d3748;
    --text-secondary: #4a5568;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.25);
    --input-bg: #f7fafc;
    --input-border: #e2e8f0;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
    top: 0;
    left: 0;
}

/* Main Layout */
.landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Left: Intro Section */
.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: var(--text-main);
    background: transparent; /* Overlay to make particles faint */
    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(--primary-color);
    padding-left: 1rem;
}

.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(--primary-color);
    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;
}

/* Right: Login Section */
.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; /* Increased padding */
    width: 100%;
    max-width: 450px; /* Slightly wider */
    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;
    /* Removed drop-shadow for cleaner look in light mode */
}

.login-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Form Elements */
.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; /* Fix padding issue */
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.2;
    position: relative;
    top: -2px; /* Optik hizalama için yukarı taşıma */
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin: 0;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    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(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Animations */
@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); }
}

/* Responsive Design */
@media (max-width: 968px) {
    .landing-container {
        grid-template-columns: 1fr; /* Single column for mobile */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100dvh;
    }

    .intro-section {
        display: none !important; /* Hide intro section on mobile */
    }

    .login-section {
        padding: 1rem;
        width: 100%;
        min-height: 100dvh; /* Ensure full height for centering */
        box-sizing: border-box;
    }

    .login-card {
        margin: 0;
        width: 100%;
        max-width: 400px; /* Limit width on mobile */
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
}
