* {
    box-sizing: border-box;
}

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

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f5f7fa;
    color: #172033;
}

button,
input {
    font: inherit;
}


/* LOGIN */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top left,
            #172554 0,
            #07101f 45%,
            #050a13 100%
        );
}

.login-shell {
    width: 100%;
    max-width: 440px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: white;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #2563eb;
}

.login-brand h1 {
    margin: 0;
    font-size: 22px;
}

.login-brand p {
    margin: 3px 0 0;
    color: #aab7cc;
    font-size: 13px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 34px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .28);
}

.login-heading h2 {
    margin: 0 0 7px;
    font-size: 25px;
}

.login-heading p {
    margin: 0 0 26px;
    color: #667085;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    padding: 12px 13px;
    outline: none;
    transition: .2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .1);
}

.primary-button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    cursor: pointer;
    background: #2563eb;
    color: white;
    font-weight: 700;
}

.primary-button:hover {
    background: #1d4ed8;
}

.alert-error {
    padding: 11px 13px;
    margin-bottom: 20px;
    border-radius: 9px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 13px;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
    color: #8795aa;
    font-size: 12px;
}


/* ADMIN */

.admin-page {
    background: #f4f6f9;
}

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

.topbar-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.topbar-brand strong {
    font-size: 17px;
}

.topbar-brand span {
    color: #8390a5;
    font-size: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.topbar-user form {
    margin: 0;
}

.logout-button {
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 7px 12px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 68px);
}

.sidebar {
    background: white;
    border-right: 1px solid #e6e9ef;
    padding: 24px 14px;
}

.nav-label {
    padding: 0 10px 11px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.nav-item {
    display: block;
    text-decoration: none;
    color: #485467;
    padding: 11px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    font-size: 14px;
}

.nav-item:hover {
    background: #f4f6f9;
}

.nav-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.dashboard-content {
    padding: 32px;
    max-width: 1400px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.page-heading h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.page-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.system-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 700;
}

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

.stat-card {
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 13px;
    padding: 22px;
}

.stat-card span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 10px;
}

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

.dashboard-panel {
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 13px;
    overflow: hidden;
}

.panel-heading {
    padding: 21px 23px;
    border-bottom: 1px solid #edf0f4;
}

.panel-heading h2 {
    margin: 0 0 5px;
    font-size: 17px;
}

.panel-heading p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.status-list {
    padding: 5px 23px;
}

.status-list > div {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.status-list > div:last-child {
    border-bottom: 0;
}

.ok {
    color: #07884a;
}

.pending {
    color: #b26a00;
}

@media (max-width: 800px) {

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar-brand span {
        display: none;
    }

    .login-card {
        padding: 25px;
    }
}
