/*  The sign-in page.

    Kept apart from site.css because it is the one page with no navigation, no client in
    scope and nobody signed in: it is the front door rather than part of the application, and
    it should not inherit layout meant for screens with a header and a menu.

    Shaped after the accounting system's own sign-in so the two feel like one estate: a thin
    information strip, then a lot of quiet space, the product named in the middle, and a
    single card asking for as little as possible.
*/

.signin-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, var(--page) 100%);
    color: var(--ink);
}

/* ---- the strip across the top ---- */

.signin-strip {
    background: #2b3340;
    color: #d7dce5;
    font-size: 13px;
}

.signin-strip-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.signin-strip-right { margin-left: auto; }

.signin-strip a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.signin-strip a:hover { text-decoration: underline; }

/* ---- the middle ---- */

.signin-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 16px;
}

.signin-column { width: min(430px, 100%); }

/* ---- the lock-up: who this belongs to, before anything is asked ---- */

.signin-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.signin-logo {
    display: block;
    max-height: 56px;
    max-width: 240px;
    width: auto;
    height: auto;
}

.signin-mark {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1;
}

.signin-mark span { color: var(--green); }

/* The divider the accounting system uses between its mark and the product name. */
.signin-rule {
    width: 1px;
    align-self: stretch;
    min-height: 38px;
    background: var(--rule);
}

.signin-product {
    font-size: 27px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
}

/* ---- the card ---- */

.signin-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    border-top: 4px solid var(--green);
    padding: 28px 26px 26px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.signin-card h1 {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

.signin-card .field { margin-bottom: 16px; }

.signin-card .alert { margin-bottom: 16px; }

/* Full width, like the Continue button it is modelled on. */
.signin-continue {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 4px;
}

.signin-help {
    margin: 20px 4px 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ---- the foot ---- */

.signin-foot {
    padding: 18px 20px 26px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---- narrow screens ---- */

@media (max-width: 480px) {
    .signin-main { padding: 28px 14px; }
    .signin-mark { font-size: 27px; }
    .signin-product { font-size: 22px; }
    .signin-strip-inner { font-size: 12px; padding: 8px 14px; }
}
