:root {
    color-scheme: light;
    --background: #f4f6f8;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #697586;
    --border: #dce2e8;
    --primary: #2957d3;
    --primary-hover: #1e46b5;
    --success: #228b57;
    --shadow: 0 18px 50px rgba(18, 33, 56, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--background);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hero {
    max-width: 700px;
    padding: 56px 0 72px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lead,
.muted {
    color: var(--muted);
    line-height: 1.7;
}

.lead {
    max-width: 580px;
    font-size: 18px;
    margin-bottom: 32px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--primary-hover);
}

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

.card,
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card {
    min-height: 180px;
    padding: 26px;
}

.card h2 {
    font-size: 17px;
}

.card p {
    color: var(--muted);
    line-height: 1.6;
}

.status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
}

footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-container {
    width: min(100%, 430px);
}

.login-brand {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.login-card {
    padding: 34px;
}

.login-card h1 {
    font-size: 32px;
}

form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 650;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
}

input:focus {
    outline: 3px solid rgba(41, 87, 211, 0.15);
    border-color: var(--primary);
}

button {
    margin-top: 12px;
    width: 100%;
}

.form-note {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding-top: 34px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
    }
}
