/*
 * fabrica-brand.css — Fabrica's chrome stylesheet.
 *
 * Fabrica — a self-hosted git forge with a first-class agentic layer.
 * Copyright (C) 2025  Fabrica authors (GPL-3.0-or-later)
 *
 * The design allows Fabrica exactly three extension stylesheets —
 * chrome (this), diff panes, and graphs — all consuming theme CSS
 * variables only. Spry styles `img` with `max-width: 100%` and no
 * intrinsic size, so the brand emblem (a 685×653 asset) would render
 * at natural size and dwarf the topbar; these rules pin the emblem
 * to the brand's type height and the login hero to a fixed size.
 */

.brand-emblem {
    display: inline-block;
    height: 1.45em;
    width: auto;
    vertical-align: -0.28em;
    margin-right: 0.35rem;
}

.login-emblem {
    height: 72px;
    width: auto;
    margin-inline: auto;
}

/*
 * The login screen: Spry ships no login-layout classes, so the card
 * stretched the viewport's full width. A centered column with a
 * modest max width — the standard auth posture.
 */
.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spry-space-3, 1.5rem);
}

.login-card {
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    gap: var(--spry-space-2, 1rem);
}
