/* The sign-in page: the living HomeNet emblem above the form on a phone, beside it on a wide screen.
   Plain CSS rather than Tailwind utilities, so the page needs no rebuild of site.min.css. The emblem's own
   rules (colours, the pending/failsafe rule) are in homenet-logo.css, generated with it. */

.hn-login {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 32px;
}

.hn-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hn-login-brand .hnl-host {
    width: min(208px, 56vw);
}

.hn-login-name {
    margin: 6px 0 20px;
    font-family: var(--hn-font-heading, inherit);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* The name lands with the emblem: held back while the intro plays, then it settles in. With no script or
   reduced motion there is no intro, so it is simply there. */
.hn-login-brand .hnl-host.hnl-playing + .hn-login-name {
    opacity: 0;
    transform: translateY(6px);
}

.hn-login-form {
    width: 100%;
    max-width: 28rem;
}

/* A short window (a phone held sideways, a small laptop) keeps the form in view. */
@media (max-height: 700px) {
    .hn-login-brand .hnl-host { width: min(140px, 36vw); }
    .hn-login-name { font-size: 1.4rem; margin-bottom: 12px; }
}

@media (min-width: 1024px) {
    .hn-login {
        flex-direction: row;
        gap: clamp(40px, 6vw, 112px);
        padding: 32px;
    }
    .hn-login-brand .hnl-host { width: min(420px, 36vw, 68vh); }
    .hn-login-name { font-size: 2.25rem; margin: 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hn-login-name { transition: none; }
}
