* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #172033;
    background: #f5f6fa;
}

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

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

.login-card {
    width: min(100%, 430px);
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e5e7ef;
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(26, 29, 45, 0.08);
}

.brand {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #5b21b6;
    color: white;
    font-weight: 800;
}

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

.brand p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
}

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

input:focus {
    outline: 3px solid rgba(91, 33, 182, 0.14);
    border-color: #5b21b6;
}

button {
    width: 100%;
    margin-top: 24px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: #5b21b6;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button.secondary {
    width: auto;
    margin: 0;
    background: #eef0f5;
    color: #293044;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 14px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ef;
}

.topbar-brand {
    display: flex;
    flex-direction: column;
}

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

.topbar-brand span,
.user-block span {
    color: #73798b;
    font-size: 13px;
}

.user-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-block > div {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px;
}

.welcome h1 {
    margin: 0 0 8px;
}

.welcome p {
    margin: 0;
    color: #6b7280;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.card {
    padding: 24px;
    background: white;
    border: 1px solid #e4e7ef;
    border-radius: 14px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
}

.card-title {
    margin-top: 5px;
    color: #73798b;
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        padding: 14px 18px;
    }

    .topbar-brand span {
        display: none;
    }

    .content {
        padding: 24px 16px;
    }

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

    .user-block > div {
        display: none;
    }

    .login-card {
        padding: 26px 20px;
    }
}
