* {
    box-sizing: border-box;
}

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

    background: #f4f5f7;
    color: #17191d;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(430px, 100%);
    padding: 40px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    box-shadow:
        0 25px 70px
        rgba(20,20,30,.08);
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #777e89;
}

h1 {
    margin: 8px 0 25px;
    font-size: 32px;
}

.muted {
    color: #747b87;
}

label {
    display: block;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    margin-top: 7px;
    padding: 13px;
    border: 1px solid #d8dce2;
    border-radius: 10px;
}

.login-card button[type="submit"] {
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    background: #181a1f;
    color: white;
    font-weight: 800;
}

.alert {
    margin: 18px 0;
    padding: 12px;
    background: #fff0f0;
    border-radius: 10px;
    color: #9d2929;
}

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

.brand {
    display: flex;
    gap: 10px;
}

.brand span {
    color: #969da8;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar a,
.link-button {
    color: white;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.inline-form {
    display: inline;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 45px auto 80px;
}

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

.stat,
.company-card,
.empty-state,
.table-wrap {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
}

.stat {
    padding: 24px;
}

.stat strong {
    display: block;
    font-size: 35px;
}

.stat span {
    color: #747b87;
}

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

.company-card {
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-card h3 {
    margin: 0 0 5px;
}

.company-card p {
    margin: 0;
    color: #747b87;
}

.company-card > strong {
    font-size: 32px;
}

.empty-state {
    padding: 50px;
    text-align: center;
}

.empty-state p {
    color: #747b87;
}

.table-wrap {
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #eceef1;
}

th {
    color: #777e89;
    font-size: 12px;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 750px) {

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

    .topbar {
        height: auto;
        padding: 18px 20px;
    }
}
