/* Shared by the login and the administration page. Both are a single centred
   card on the Lab's background, so one stylesheet covers them and the Lab's own
   `index.html` keeps its layout to itself.

   The colours come from `lab-theme.css`; nothing here restates a hex value. */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font:
        15px/1.55 system-ui,
        -apple-system,
        'Segoe UI',
        Roboto,
        sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 64px;
}
main {
    width: 100%;
    max-width: 420px;
}
main.wide {
    max-width: 720px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.mark svg {
    width: 28px;
    height: 28px;
}
h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}
h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}
p {
    margin: 0 0 18px;
    color: var(--dim);
}
label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--ink-2);
}
input,
select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    font: inherit;
}
input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-line);
}
.hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--dim-2);
}
button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: default;
}
button.quiet {
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--line-soft);
    font-weight: 400;
}
button.danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--line-soft);
    font-weight: 400;
    padding: 6px 12px;
}
.status {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
}
.status.bad {
    border-color: var(--danger);
    color: var(--danger);
}
.aside {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.aside h2 {
    margin-bottom: 4px;
}
a {
    color: var(--accent-text);
}
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.row:last-child {
    border-bottom: 0;
}
.row .who {
    font-weight: 600;
}
.row .meta {
    font-size: 12px;
    color: var(--dim-2);
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

/* The sign-in page follows the app's welcome screen (`WelcomeView.tsx`): the
   mark and greeting centred above, the actions as full-width rounded blocks. */
body[data-page='login'] {
    justify-content: center;
}
body[data-page='login'] main {
    max-width: 448px;
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}
.hero img {
    margin-bottom: 32px;
}
.hero h1 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}
.hero .quote {
    margin: 0 0 24px;
    color: var(--ink-2);
    font-style: italic;
    line-height: 1.625;
    text-wrap: balance;
}
.hero .note {
    margin: 0;
    font-size: 14px;
    color: var(--dim);
    text-wrap: balance;
}
body[data-page='login'] input {
    padding: 14px 16px;
    background: var(--line);
    border-color: var(--line-soft);
    border-radius: 16px;
}
body[data-page='login'] button {
    width: 100%;
    margin-top: 8px;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
}
body[data-page='login'] .status {
    border-radius: 16px;
}
/* The terms line under the sign-in form: quiet, but readable before signing in. */
.legal {
    margin: 24px 0 0;
    font-size: 12px;
    color: var(--dim-2);
    text-align: center;
}
.legal a {
    color: var(--dim);
}
