* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #182033;
}

a {
    color: inherit;
}

.topbar {
    height: 64px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
}

.topbar nav a {
    margin-left: 20px;
    text-decoration: none;
    opacity: .9;
}

.container {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 30%),
        linear-gradient(135deg, #f7faff, #eef3fb);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

.auth-logo {
    font-size: 28px;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 8px;
}

.muted {
    color: #64748b;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
}

button {
    margin-top: 22px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 18px 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.page-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.panel {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.stat-card span {
    color: #64748b;
    display: block;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 34px;
}

@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .topbar {
        padding: 0 16px;
    }
}
