:root {
    --primary-color: #3366cc;
    --secondary-color: #1e3a8a;
    --accent-color: #28a745;
    --text-color: #333;
    --light-text-color: #fff;
    --background-light: #f9fafb;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
}

/*
   Global & Flex Layout
 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #DDD0C8 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1 0 auto; /* fills remaining space to push footer down */
}

/* 
   Links
 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

/* 
   Navbar
 */
.navbar {
    background-color: #DDD0C8 !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: #323232 !important;
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.nav-item .nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .nav-item .nav-link:hover {
        background-color: var(--primary-color);
        color: var(--light-text-color) !important;
        border-radius: 5px;
    }

/* 
   Footer
 */
.footer {
    flex-shrink: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #DDD0C8;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 0 20px;
    margin-top: 30px;
}

    .footer a {
        color: var(--primary-color);
    }

/* 
   Login Card
 */
.login-card {
    background: #323232 !important; /* solid dark gray */
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white; /* keeps the text visible on dark background */
}


.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

.form-field {
    width: 100%;
    margin-bottom: 1rem;
}

.custom-input {
    width: 100%;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    border: none;
    outline: none;
}

.custom-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color: #DDD0C8;
    border: none;
    transition: all 0.3s ease;
}

    .custom-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4);
    }

.signup-text {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
}

    .signup-text a {
        color: #fff;
        font-weight: 600;
        text-decoration: underline;
    }

.container h1 {
    color: #323232 !important;
}

.container h2 {
    color: #323232 !important;
}

.container p {
    color: #323232 !important;
}



/* Submit button styling */
.grid-box .custom-btn {
    background-color: #DDD0C8 !important; /* beige background */
    color: #323232 !important; /* dark gray text */
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-btn {
    background-color: #DDD0C8 !important; /* beige background */
    color: #323232 !important; /* dark gray text */
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}