:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #172b45;
    background: #f1f5fa;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, #071b35, #123d68);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px #0003;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: white;
    background: #0879d1;
    font-size: 27px;
    font-weight: 800;
}

.eyebrow {
    color: #0879d1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.muted {
    color: #718096;
    line-height: 1.5;
}

label {
    display: block;
    margin: 20px 0 7px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 13px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    font-size: 16px;
}

input:focus {
    outline: 2px solid #8ac8f5;
    border-color: #0879d1;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: 0;
    border-radius: 9px;
    background: #0879d1;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.alert {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    color: #9b2525;
    background: #fff0f0;
    font-size: 13px;
}

.footer {
    margin-top: 28px;
    color: #8a98aa;
    text-align: center;
    font-size: 12px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px max(20px, calc((100% - 960px) / 2));
    color: white;
    background: #071b35;
}

.topbar strong,
.topbar span {
    display: block;
}

.topbar span {
    margin-top: 4px;
    color: #b8c9dc;
    font-size: 12px;
}

.topbar form {
    margin: 0;
}

button.button-secondary {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    background: #244766;
    font-size: 12px;
}

.dashboard {
    width: min(100% - 32px, 850px);
    margin: 30px auto;
}

.welcome {
    margin-bottom: 30px;
}

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

.section-heading h2 {
    font-size: 20px;
}

.section-heading span {
    color: #718096;
    font-size: 13px;
}

.device-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #e2e9f1;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 18px #193b5b0a;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.device-header h3 {
    margin: 7px 0;
}

.status,
.small-status {
    padding: 7px 10px;
    border-radius: 20px;
    color: #176c43;
    background: #e7f7ee;
    font-size: 12px;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.metrics div {
    padding: 13px;
    border-radius: 9px;
    background: #f4f7fb;
}

.metrics span,
.metrics strong,
.wifi-item span {
    display: block;
}

.metrics span,
.wifi-item span {
    color: #718096;
    font-size: 12px;
}

.metrics strong {
    margin-top: 7px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.device-card h4 {
    margin-bottom: 10px;
}

.wifi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #edf1f5;
}

.wifi-item strong {
    display: block;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.small-status {
    color: #43566c;
    background: #edf2f7;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-card {
        padding: 26px 22px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .device-card {
        padding: 17px;
    }
}
