:root {
    --bg: #07080b;
    --panel: rgba(17, 18, 23, .92);
    --line: #2a2d36;
    --red: #e50914;
    --red-dark: #8b1018;
    --text: #f4f4f5;
    --muted: #a1a1aa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, .97), rgba(7, 8, 11, .86)),
        url("assets/wallpaper.png") center / cover fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: rgba(6, 7, 10, .94);
}

.brand-logo {
    display: block;
    width: 94px;
    height: 94px;
    object-fit: contain;
    margin-bottom: 10px;
}

aside strong {
    display: block;
    margin-bottom: 26px;
    font-size: 21px;
}

nav {
    display: grid;
    gap: 8px;
}

nav a,
.button,
button {
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 14px;
}

nav a {
    background: transparent;
    color: var(--muted);
}

nav a:hover,
nav a.active {
    background: var(--red);
    color: white;
}

main {
    margin-left: 250px;
    padding: 28px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 30px;
}

h2 {
    margin-bottom: 16px;
}

p {
    color: var(--muted);
    margin-top: 6px;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 8px 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stats article,
.panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.stats article {
    padding: 22px;
}

.stats span {
    color: var(--muted);
}

.stats strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.panel {
    margin-top: 18px;
    padding: 22px;
}

.hero {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero img {
    width: 220px;
    max-width: 40%;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0c0d12;
    color: white;
    outline: 0;
    padding: 12px;
}

input:focus {
    border-color: var(--red);
}

.secondary {
    background: #20222b;
    text-align: center;
}

.danger {
    background: var(--red-dark);
}

.small {
    padding: 8px 10px;
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(420px, 100%);
    padding: 30px;
}

.login-logo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.login-card h1,
.login-card p {
    text-align: center;
}

.login-card label {
    margin-top: 16px;
}

.login-card button {
    width: 100%;
    margin-top: 18px;
}

.alert {
    margin-top: 16px;
    border: 1px solid var(--red);
    border-radius: 6px;
    background: rgba(229, 9, 20, .13);
    padding: 10px;
}

@media (max-width: 900px) {
    aside {
        position: static;
        width: auto;
    }

    main {
        margin-left: 0;
        padding: 18px;
    }

    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero img {
        max-width: 100%;
    }
}
