html {
    font-size: 14px;
    position: relative;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #801e1e;
    --primary-light: #9f4f4f;
    --background-light: #ffffff;
    --background-dark: #121212;
    --text-light: #333333;
    --text-dark: #f0f0f0;
    --bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

[data-bs-theme="dark"] {
    --bs-box-shadow: 0 .5rem 1rem rgba(255, 255, 255, 0.1);
    --bs-box-shadow-sm: 0 .125rem .25rem rgba(255, 255, 255, 0.05);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(255, 255, 255, 0.15);
}

.shadow-sm-theme {
    box-shadow: 0 .125rem .25rem var(--shadow-color-sm);
}

.shadow-lg-theme {
    box-shadow: 0 1rem 3rem var(--shadow-color-lg);
}

hr {
    height: 2px !important;
    background: linear-gradient(to right, var(--primary), transparent);
    border: none;
    margin-top: 4px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--bs-body-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.6rem;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem;
    width: 100%;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
    .btn-primary:hover {
        background: var(--primary-light);
    }

.btn-outline-primary {
    background-color: transparent;
    color: var(--background-color);
    border: 1px solid var(--primary);
    transition: all 0.25s ease-in-out;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--primary);
        border: 1px solid var(--primary);
        color: var(--background-color);
        box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 50%, transparent);
    }

    .btn-outline-primary:active {
        background-color: color-mix(in srgb, var(--primary) 80%, var(--background-color));
        border-color: color-mix(in srgb, var(--primary) 80%, var(--background-color));
        color: var(--background-color);
    }

    .btn-outline-primary:disabled,
    .btn-outline-primary.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        box-shadow: none;
    }

.switch {
    margin-top: 1rem;
}

.navbar {
    box-shadow: 0 2px 4px color-mix(in srgb, currentColor 30%, transparent);
}

.list-group-item {
    background-color: #fff;
    color: #212529;
    border-color: rgba(0,0,0,.125);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #f8f9fa;
    color: #212529;
}

.page-box {
    background: var(--bs-tertiary-bg);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

    .page-box h3 {
        margin-top: 0;
    }

    .page-box ul {
        margin: 0.5rem 0 0 1.25rem;
    }

    .page-box li {
        margin-bottom: 0.35rem;
    }