:root {
    --page: #f5f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #69788d;
    --line: #d9e0ea;
    --primary: #0f6b5f;
    --secondary: #314158;
    --success-bg: #effaf3;
    --success-line: #bfe7ca;
    --success-text: #155f2b;
    --error-bg: #fff1f1;
    --error-line: #ffc9c9;
    --error-text: #8a1f1f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.shell {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 18px;
}

.auth-shell {
    max-width: 420px;
    margin: 64px auto;
    padding: 0 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(23, 32, 51, .08);
}

.auth-panel {
    padding-top: 28px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

h1 {
    margin: 0 0 18px;
    font-size: 26px;
}

h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

p {
    margin: 0;
    color: #516176;
    line-height: 1.5;
}

label {
    display: block;
    margin: 14px 0 0;
    font-weight: 700;
}

input {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #bdc7d5;
    border-radius: 6px;
    font-size: 15px;
}

button,
.button {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    margin-top: 0;
    background: var(--secondary);
}

.notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #cdddf7;
    border-radius: 6px;
    background: #eef4ff;
}

.notice.error {
    border-color: var(--error-line);
    background: var(--error-bg);
    color: var(--error-text);
}

.notice.success {
    border-color: var(--success-line);
    background: var(--success-bg);
    color: var(--success-text);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.topbar span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

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

.grid section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 700px) {
    .shell,
    .auth-shell {
        margin: 18px auto;
    }

    .panel {
        padding: 18px;
    }

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

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
