:root {
    --ink: #f0f0f0;
    --ink-soft: #9a9a9a;
    --paper: #0a0a0a;
    --track: #111111;
    --lane: #242424;
    --signal: #ff5e00;

    --app-bg: var(--track);
    --app-border: var(--lane);

    --red-700: #e05555;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Barlow", system-ui, sans-serif;
    background-color: var(--app-bg);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
}

.header {
    background: var(--paper);
    border-bottom: 1px solid var(--app-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-mark__wordmark {
    height: 1.35rem;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

.header__nav {
    display: none;
}

.header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--app-border);
}

.header__nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--ink);
}

#admin-logout-button {
    border: 1px solid var(--lane);
    color: var(--ink-soft);
}

#admin-logout-button:hover {
    background: var(--lane);
    color: var(--ink);
}

.header__menu-btn {
    background: none;
    border: 1px solid var(--lane);
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
}

.auth-page {
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2rem;
}

.login-panel {
    width: 100%;
    max-width: 22rem;
    background: var(--paper);
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.login-panel__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.login-panel__subtitle {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
}

.dashboard__title,
.recent-section__title {
    font-weight: 600;
}

.btn {
    background: var(--signal);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    background: #e65500;
}

.btn--full {
    width: 100%;
}

.alert {
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert--error {
    background: #2a1515;
    color: #f0c0c0;
    border: 1px solid #5c2020;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--lane);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--track);
    color: var(--ink);
}

.form-control::placeholder {
    color: #666;
}

.form-control:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--signal) 50%, var(--lane));
}

.footer {
    border-top: 1px solid var(--app-border);
    padding: 1rem;
    color: var(--ink-soft);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer__text {
    font-size: 0.8125rem;
}

@media (min-width: 800px) {
    .header__menu-btn {
        display: none;
    }

    .header__nav {
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
    }

    .header__nav.active {
        position: static;
        background: none;
        padding: 0;
        border: none;
    }
}
