* {
    box-sizing: border-box;
}

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

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

    background: #f6f8fb;
    color: #18212f;
}

a {
    color: inherit;
}

.topbar {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #e7ebf0;

    display: flex;
    align-items: center;

    padding: 0 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #101828;
    color: white;

    font-size: 18px;
    font-weight: 700;
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #87909e;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 25px;
}

.page-header h1 {
    margin: 3px 0 5px;
    font-size: 27px;
    letter-spacing: -0.5px;
}

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

.eyebrow {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 18px;
}

.dashboard-card {
    background: white;

    border: 1px solid #e5e9ef;
    border-radius: 13px;

    padding: 22px;

    display: flex;
    gap: 16px;

    text-decoration: none;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03);

    transition:
        transform 120ms ease,
        box-shadow 120ms ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(16, 24, 40, 0.08);
}

.dashboard-icon,
.empty-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff4e8;
    color: #c76500;

    font-weight: 800;
}

.dashboard-card h2 {
    margin: 0 0 7px;
    font-size: 16px;
}

.dashboard-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.empty-state {
    min-height: 360px;

    border: 1px dashed #d7dce3;
    border-radius: 14px;

    background: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px;
}

.empty-state h2 {
    margin: 15px 0 6px;
    font-size: 18px;
}

.empty-state p {
    max-width: 450px;
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .topbar {
        padding: 0 18px;
    }

    .page {
        width: calc(100% - 28px);
        padding-top: 22px;
    }

    .page-header h1 {
        font-size: 23px;
    }
}

.topbar {
    justify-content: space-between;
}

.topbar-actions {
    display: flex;
    align-items: center;
}

.logout-button {
    appearance: none;

    background: #ffffff;
    color: #344054;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    padding: 8px 13px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
}

.logout-button:hover {
    background: #f9fafb;
}

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fa;
}

.login-shell {
    width: 100%;
    padding: 24px;
}

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

    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 12px 32px rgba(16, 24, 40, 0.08);
}

.login-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 30px;
}

.login-heading h1 {
    margin: 0 0 6px;

    font-size: 25px;
    letter-spacing: -0.4px;
}

.login-heading p {
    margin: 0 0 25px;

    color: #667085;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.login-form label {
    display: flex;
    flex-direction: column;

    gap: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 600;
}

.login-form input {
    width: 100%;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    padding: 11px 12px;

    font-size: 14px;

    outline: none;
}

.login-form input:focus {
    border-color: #98a2b3;

    box-shadow:
        0 0 0 3px rgba(152, 162, 179, 0.15);
}

.login-form button {
    appearance: none;

    border: none;
    border-radius: 9px;

    background: #101828;
    color: #ffffff;

    padding: 11px 14px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.login-form button:hover {
    background: #1d2939;
}

.login-error {
    margin-bottom: 18px;

    padding: 10px 12px;

    border: 1px solid #fecdca;
    border-radius: 8px;

    background: #fef3f2;
    color: #b42318;

    font-size: 13px;
}
