/* Board and sign-in page. Colours, radii and fonts come from the Aurora tokens (css/aurora.css and
   css/aurora-overrides.css); nothing here carries a colour of its own. */

/* The columns share one height, reaching almost the bottom of the screen, and the drop area fills the column.
   Without this a column is as tall as its cards, and the only place that accepts a drop is the strip they occupy. */
.s-kanban {
    align-items: stretch;
    min-height: calc(100vh - 190px);
}

.s-col-bd.board-zone {
    flex: 1 1 auto;
    min-height: 200px;
}

.kcard-meta {
    margin-top: 6px;
}

/* Two lines at most: a long request must not stretch the card. */
.kcard-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* The sign-in page is a plain form without MudBlazor (it needs the interactive connection). */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--fh-side);
    font-family: var(--s-font);
}

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 28px;
    border-radius: var(--s-radius);
    background: var(--s-card);
    color: var(--s-fg);
}

.login-card h1 {
    margin: 0 0 4px;
    font-family: var(--s-display);
    font-size: 1.9rem;
    font-weight: 600;
}

.login-subtitle {
    margin: 0 0 24px;
    color: var(--s-muted);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.login-field label {
    font-size: 0.875rem;
    font-weight: 600;
}

.login-field input {
    padding: 10px 12px;
    border: 1px solid var(--fh-field-bd);
    border-radius: var(--s-nav-r);
    background: var(--s-card);
    color: var(--s-fg);
    font: inherit;
}

.login-field input:focus {
    outline: 2px solid var(--s-accent-ink);
    outline-offset: 1px;
}

.login-validation,
.login-error {
    color: var(--s-crit);
    font-size: 0.875rem;
}

.login-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--s-crit-bd);
    border-radius: var(--s-nav-r);
    background: var(--s-crit-bg);
}

.login-submit {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--fh-btn-edge);
    border-radius: var(--s-btn-r);
    background: var(--s-accent);
    color: var(--s-accent-fg);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.login-submit:hover {
    filter: brightness(0.95);
}
