:root {
    --primary-color: #5e35b1;
    /* Deep Purple */
    --secondary-color: #ff9800;
    /* Orange Accent */
    --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #e0f7fa 100%);
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --success: #4caf50;
    --danger: #ef5350;
    --warning: #ffb74d;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* Boosted shadow */
    --radius: 20px;
    --font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
    /* Space for nav */
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Container */
.container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Premium Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Glass hint */
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:active {
    opacity: 0.85;
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4527a0 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f57c00 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    font-size: 16px;
    background: #fafafa;
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(94, 53, 177, 0.1);
}

/* Landing Page Specific (Split Layout) */
.landing-container {
    display: flex;
    min-height: 100vh;
    background: white;
}

.landing-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.8) 0%, rgba(69, 39, 160, 0.9) 100%);
}

.landing-brand {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

.landing-right {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
}

.role-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
}

.role-card:hover {
    border-color: var(--primary-color);
    background: #f8f9fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 53, 177, 0.1);
}

.role-icon {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
    }

    .landing-left {
        height: 300px;
        flex: none;
    }

    .landing-right {
        max-width: 100%;
        padding: 30px 20px;
        flex: 1;
    }
}

/* --- Responsive Sidebar & Desktop Layout --- */

/* Default: Mobile First (Sidebar Hidden, Bottom Nav Visible) */
.sidebar {
    display: none;
}

.bottom-nav {
    display: flex;
}

/* Desktop Styles (> 768px) */
@media (min-width: 769px) {

    /* Hide Bottom Nav */
    .bottom-nav {
        display: none !important;
    }

    /* Show Sidebar */
    .sidebar {
        display: flex;
        flex-direction: column;
        width: 260px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: white;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding: 20px;
    }

    .sidebar-brand {
        font-size: 24px;
        font-weight: 800;
        color: var(--primary-color);
        margin-bottom: 40px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        color: var(--text-muted);
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .sidebar-link:hover {
        background: #f8f9fe;
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .sidebar-link.active {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .sidebar-link span {
        font-size: 20px;
    }

    /* Adjust Layout for Sidebar */
    body {
        padding-bottom: 0;
        /* Remove bottom nav padding */
        padding-left: 260px;
        /* Make space for sidebar */
    }

    .container {
        max-width: 1200px;
        /* Wider container on desktop */
        padding: 30px;
    }

    /* Hide Mobile Top Bar if preferred, or keep it. Let's hide brand in top bar, keep User/Logout */
    .top-bar .brand {
        display: none;
    }
}