:root {
    --black: #050505;
    --black-soft: #0d0d0d;
    --card: #151515;
    --border: #2b2b2b;
    --red: #d71920;
    --red-light: #ff3038;
    --white: #fff;
    --muted: #a4a4a4;
    --green: #39d98a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(215,25,32,.15), transparent 32%),
        var(--black);
    font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
    min-height: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(5,5,5,.94);
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: min(1120px, calc(100% - 30px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 900;
    letter-spacing: .4px;
}

.brand span {
    color: var(--red-light);
}

.page {
    width: min(1120px, calc(100% - 30px));
    margin: auto;
    padding: 60px 0;
}

.auth-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 35px 15px;
}

.card {
    width: min(520px, 100%);
    background: rgba(20,20,20,.97);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 35px 90px rgba(0,0,0,.5);
}

.card h1 {
    margin: 0 0 10px;
    font-size: 34px;
}

.subtitle {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 26px;
}

.field {
    margin-bottom: 17px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #373737;
    border-radius: 9px;
    background: #090909;
    color: white;
    padding: 0 14px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--red-light);
    box-shadow: 0 0 0 3px rgba(255,48,56,.1);
}

.button {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--red-light), #a50d13);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.button-secondary {
    background: #1b1b1b;
    border: 1px solid #3b3b3b;
}

.message {
    display: none;
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.45;
}

.message.error {
    display: block;
    color: #ffc2c4;
    background: rgba(215,25,32,.13);
    border: 1px solid rgba(255,48,56,.35);
}

.message.success {
    display: block;
    color: #b5f3d1;
    background: rgba(57,217,138,.12);
    border: 1px solid rgba(57,217,138,.3);
}

.switch {
    text-align: center;
    margin-top: 21px;
    color: var(--muted);
}

.switch a {
    color: #ff777c;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.status {
    color: var(--green);
    font-weight: 800;
}

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

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.small-button {
    min-height: 40px;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    background: #171717;
    color: white;
    padding: 0 16px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .panel-wide {
        grid-column: auto;
    }

    .card {
        padding: 24px;
    }
}
