:root {
    /* Premium HealthFirst Color Palette */
    --color-primary: #10B981;
    /* Emerald 500 */
    --color-primary-soft: #ECFDF5;
    /* Emerald 50 */
    --color-primary-dark: #059669;
    /* Emerald 600 */
    --color-secondary: #F59E0B;
    /* Amber 500 (For CTA/Accents) */
    --color-cream: #FDFBF7;
    /* Soft Cream for backgrounds */
    --color-dark: #111827;
    /* Gray 900 */
    --color-dark-muted: #4B5563;
    /* Gray 600 */
    --color-white: #ffffff;
    --color-border: #E5E7EB;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Effects */
    --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);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Legacy Compatibility Aliases */
    --color-text: var(--color-dark-muted);
    --color-text-muted: #6B7280;
    --color-light: var(--color-cream);
    --color-dark-light: #1F2937;
    --radius-lg: 12px;
    --radius-md: 8px;
    --font-family-base: var(--font-body);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
}

/* Auth Page Layout */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.alert {
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* --- Mobile Responsiveness --- */

/* Breakpoint: Tablets and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-grid div:first-child {
        order: 1;
    }

    .hero-grid div:last-child {
        order: 2;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav for now, will add mobile toggle */
    }
}

/* Breakpoint: Mobile Large and below */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0 !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Grid Stacking */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Single Post Specifics */
    main[style*="padding: 80px 0"] {
        padding: 40px 0 !important;
    }

    h1[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
    }

    .blog-post-content {
        font-size: 1.05rem !important;
    }

    /* Sidebar comes after content */
    aside {
        margin-top: 40px;
    }
}

/* Utility Classes */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}