:root {
    color-scheme: dark;
    --bg: #11110f;
    --panel: #191916;
    --line: #4b4942;
    --line-hover: #8d897d;
    --text: #dddcd3;
    --muted: #8f8d84;
    --subtitle: #6f6d65;
    --accent: #eceae0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 Georgia, "Times New Roman", serif;
}

.shell {
    max-width: 960px;
    margin: 48px auto;
    padding: 16px;
}

.panel {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 20px;
}

.auth {
    max-width: 420px;
    margin: auto;
}

.auth-header,
.auth-footer {
    text-align: center;
}

.auth-header {
    margin-bottom: 18px;
}

.auth-title {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 6px 0 0;
    color: var(--subtitle);
    font-size: 12px;
    letter-spacing: .04em;
}

.auth-footer {
    margin-top: 18px;
}

.auth-footer a {
    display: inline-block;
    padding: 4px 8px;
    color: #c8c6bb;
    text-decoration: none;
    transition: color 140ms ease, background-color 140ms ease;
}

.auth-footer a:hover,
.auth-footer a:focus-visible {
    color: #fff;
    background: #21211d;
    outline: none;
}

h1 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 400;
}

form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 5px;
    color: var(--muted);
}

label.inline {
    display: flex;
    align-items: center;
}

input,
button,
.button {
    border: 1px solid var(--line);
    background: #11110f;
    color: var(--text);
    padding: 9px;
    font: inherit;
}

button,
.button {
    cursor: pointer;
    text-decoration: none;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 80ms ease;
}

.auth form > button:hover,
.auth form > button:focus-visible {
    border-color: var(--line-hover);
    background: #25251f;
    color: #fff;
    outline: none;
}

.auth form > button:active {
    transform: translateY(1px);
    background: #2b2a24;
}

.bar,
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.row {
    border-top: 1px dotted var(--line);
    padding-top: 8px;
}

.error {
    margin-bottom: 12px;
    color: #d28f82;
}

a {
    color: #c8c6bb;
}
