:root {
    color-scheme: light;
    --bg: #f5f8fc;
    --panel: #ffffff;
    --text: #162033;
    --muted: #66738b;
    --line: #dce5f2;
    --accent: #2e88e6;
    --accent-strong: #166fd0;
    --ok: #287a4f;
    --danger: #b93030;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

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

.mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #54c879, #4a9ee8);
}

.product {
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.subproduct {
    color: #5f789a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(43, 62, 92, .08);
}

.auth-panel {
    max-width: 520px;
}

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

.muted,
.footline {
    color: var(--muted);
}

.form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #cad6e8;
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 136, 230, .12);
}

.check {
    grid-template-columns: 18px 1fr;
    align-items: start;
    color: var(--muted);
    font-weight: 500;
}

.check input {
    margin-top: 2px;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--accent-strong);
}

.message,
.state {
    margin-top: 16px;
    border-radius: 8px;
    padding: 12px 14px;
    background: #eef4ff;
    color: #345173;
}

.message.error {
    background: #fff0f0;
    color: var(--danger);
}

.message.ok {
    background: #eefaf3;
    color: var(--ok);
}

.cabinet {
    display: grid;
    gap: 14px;
    max-width: 540px;
}

.label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.doc {
    line-height: 1.65;
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 20px, 960px);
        padding: 22px 0;
    }

    .panel {
        padding: 20px;
    }
}
