/* Modern Reset and Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f3f4f6;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }
.opacity-75 { opacity: 0.75; }

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-btn { display: none; cursor: pointer; font-size: 1.5rem; }

/* LMS Hero / Login Layout */
.hero-lms {
    padding: 4rem 0;
    flex: 1; /* Pushes footer down */
    display: flex;
    align-items: center;
    background: #f8fafc;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
}

.lms-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lms-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111827;
}

.lms-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.badge-new {
    display: inline-block;
    background-color: #dbeafe;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lms-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.lms-stat-item {
    display: flex;
    flex-direction: column;
}

.lms-stat-item strong {
    font-size: 1.5rem;
    color: #111827;
}

.lms-stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Login Card */
.login-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); /* Heavy shadow */
    border: 1px solid #e5e7eb;
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary-color);
    font-weight: 500;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    background: var(--bg-white);
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    position: relative;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    padding: 0.6rem;
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Features Grid (Reused but simplified) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--bg-white);
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .lms-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .lms-content {
        text-align: center;
        order: 2; /* Move text below login on mobile/tablet if desired, or keep as 1 */
        margin: 0 auto;
    }

    .lms-stats {
        justify-content: center;
    }
    
    .login-card {
        max-width: 450px;
        margin: 0 auto;
        order: 1; /* Login first on mobile often converts better or is more immediate */
    }

    .hero-lms {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .lms-content h1 { font-size: 2rem; }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        text-align: center !important;
    }
    
    .footer-bottom-links a {
        margin: 0 0.5rem !important;
    }
}
