* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #111111;
    background: #f5f5f3;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #f5f5f3;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e5e2;
    border-radius: 18px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);
}

.brand {
    margin-bottom: 36px;
}

.brand-mark {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.brand-subtitle {
    margin-top: 7px;
    color: #c60000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d8d8d4;
    border-radius: 9px;
    padding: 0 13px;
    background: #ffffff;
    color: #111111;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.field input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.primary-button {
    height: 46px;
    border: 0;
    border-radius: 9px;
    background: #111111;
    color: #ffffff;
    font-weight: 750;
    margin-top: 4px;
}

.primary-button:hover {
    background: #2a2a2a;
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.form-error {
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff0f0;
    color: #a40000;
    font-size: 13px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e4e4e1;
    padding: 28px 18px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 0 12px 27px;
}

.nav-list {
    display: grid;
    gap: 5px;
}

.nav-button {
    min-height: 43px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #555550;
    text-align: left;
    font-size: 14px;
    font-weight: 620;
}

.nav-button:hover {
    background: #f4f4f1;
    color: #111111;
}

.nav-button.active {
    background: #111111;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 12px 0;
    border-top: 1px solid #ecece9;
}

.admin-name {
    font-size: 14px;
    font-weight: 750;
}

.admin-role {
    margin-top: 4px;
    color: #777771;
    font-size: 12px;
}

.logout-button {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b40000;
    font-size: 13px;
    font-weight: 700;
}

.content-shell {
    min-width: 0;
}

.topbar {
    min-height: 96px;
    padding: 24px 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(245, 245, 243, 0.96);
    border-bottom: 1px solid #e4e4e1;
}

.topbar h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.6px;
}

.topbar p {
    margin: 5px 0 0;
    color: #777771;
    font-size: 13px;
}

.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #deded9;
    border-radius: 8px;
    background: #ffffff;
}

.content {
    padding: 30px 34px 50px;
}

.placeholder-card {
    max-width: 1040px;
    background: #ffffff;
    border: 1px solid #e4e4e1;
    border-radius: 14px;
    padding: 28px;
}

.placeholder-kicker {
    margin-bottom: 9px;
    color: #c60000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.placeholder-card h2 {
    margin: 0;
    font-size: 19px;
}

.placeholder-card p {
    margin: 10px 0 0;
    max-width: 670px;
    color: #6f6f69;
    font-size: 14px;
    line-height: 1.6;
}

.audit-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.audit-tab {
    border: 1px solid #dcdcd8;
    background: #ffffff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
}

.audit-tab.active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 270px;
        z-index: 20;
        transform: translateX(-100%);
        transition: transform 0.18s ease;
        box-shadow:
            20px 0 50px rgba(0, 0, 0, 0.13);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        padding: 20px;
    }

    .content {
        padding: 22px 20px 40px;
    }
}
