/* The web portal's style: ash greys and one ember accent, Kiln's palette, light or dark by the system's choice. */

:root {
    --page: #f4f3f2;
    --card: #ffffff;
    --line: #d9d6d3;
    --text: #1f1d1b;
    --quiet: #6b6662;
    --ember: #d9650a;
    --ember-text: #ffffff;
    --error: #b42318;
    --error-wash: #fdecea;
    --good: #1e7a3c;
    --good-wash: #e7f5ec;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #141312;
        --card: #1e1c1b;
        --line: #36322f;
        --text: #ece9e6;
        --quiet: #a29b95;
        --ember: #ff8c1a;
        --ember-text: #1a1008;
        --error: #ff7a6b;
        --error-wash: #3a1d1a;
        --good: #6fd38f;
        --good-wash: #16301f;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: var(--page);
    color: var(--text);
    font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}

.card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 28px 24px;
}

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

.mark {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--ember);
    transform: rotate(45deg);
}

h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
}

h3 {
    margin: 22px 0 10px;
    font-size: 15px;
    font-weight: 600;
}

p {
    margin: 0 0 14px;
}

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

label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--quiet);
}

input {
    font: inherit;
    color: var(--text);
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px 10px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
}

button {
    font: inherit;
    font-weight: 600;
    border-radius: 7px;
    padding: 9px 14px;
    cursor: pointer;
}

button.primary {
    border: 0;
    background: var(--ember);
    color: var(--ember-text);
}

button.secondary {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

button:disabled {
    opacity: 0.6;
    cursor: progress;
}

a {
    color: var(--ember);
}

.links {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--quiet);
}

.note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--quiet);
}

.notice {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 14px;
    background: var(--good-wash);
    color: var(--good);
}

.notice.error {
    background: var(--error-wash);
    color: var(--error);
}

.profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
}

.profile dt {
    color: var(--quiet);
}

.profile dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.captcha:empty {
    display: none;
}
