/* Basic Resets and Body Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #233C67; /* Dominant background color */
    color: #CCDBEE; /* Secondary color for text */
}

/* Styling for Landing Container on Home Page */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    text-align: center;
}

.welcome-section {
    width: 90%;
    max-width: 600px;
}

.logo img {
    width: 120px;
    margin-bottom: 20px;
}

h1, p {
    margin-bottom: 1.5em;
}

/* Call-to-Action Button Styling */
.cta-btn {
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #6888BE;
    color: #233C67;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #556D9A;
}

/* Login Container and Form Styling */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #CCDBEE; /* Secondary color for container background */
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    width: 90%;
    position: relative;
    margin-bottom: 20px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #6888BE; /* Accent color for inputs */
    border-radius: 5px;
    background-color: transparent;
    color: #233C67; /* Text color */
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #556D9A;
    outline: none;
}

label {
    color: #6888BE; /* Label color */
    position: absolute;
    left: 10px;
    top: -14px;
    background: #CCDBEE;
    padding: 0 5px;
    transition: all 0.3s;
}

input:focus + label {
    color: #556D9A; /* Darker color for active state */
}

/* Login Button Styling */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #6888BE;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #556D9A;
}

/* Alert Styling */
.alert {
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #FFD2D2; /* Light red for visibility */
    color: #D8000C; /* Dark red for text */
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #FF6347;
}

/* Sidebar Styling for mobile and desktop */
.sidebar {
    position: fixed;
    height: 100%;
    width: 0; /* Start hidden */
    background: #233C67; /* Matching dominant background color */
    overflow-x: hidden;
    transition: 0.3s; /* Smooth transition for opening and closing */
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #CCDBEE;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #6888BE;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .sidebar {
        width: 250px; /* Fixed width for desktop */
    }

    .main-content {
        margin-left: 250px; /* Content pushed aside by sidebar */
    }

    .menu {
        display: flex;
        align-items: center;
    }

    .menu-icon {
        display: block; /* Show menu icon in mobile view */
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 250px; /* Sidebar full width on mobile */
    }

    .sidebar.active {
        width: 250px; /* Same width when active */
    }

    .menu-icon {
        display: block; /* Always show menu icon on small screens */
    }

    .menu {
        display: none; /* Hide menu initially on small screens */
    }
}
