/*
 * The sign-in page (owner, 14 Nov 2026): one centred column on a light page - the language switch, Billy's
 * logo and its line, the form in a white card, a note under it. Billy's own tokens from billy-theme.css.
 */
body.bb-auth {
    margin: 0;
    min-height: 100vh;
    background: #EEF3F4;
    font-family: var(--bb-font);
    color: var(--bb-primary);
}

.bb-auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 16px 40px;
    box-sizing: border-box;
}

.bb-auth-column {
    width: 100%;
    max-width: 460px;
}

/* EN | SQ, at the card's right edge */
.bb-auth-lang {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.bb-auth-lang a {
    display: inline-block;
    min-width: 38px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--bb-muted);
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    text-decoration: none;
}

.bb-auth-lang a:first-child {
    border-radius: 3px 0 0 3px;
}

.bb-auth-lang a:last-child {
    border-radius: 0 3px 3px 0;
    border-left: 0;
}

.bb-auth-lang a.active {
    color: var(--bb-white);
    background: var(--bb-primary);
    border-color: var(--bb-primary);
}

.bb-auth-lang a:focus-visible {
    outline: none;
    box-shadow: var(--bb-focus-ring);
}

/* the owner's logo (the mark over the wordmark) and its line */
.bb-auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.bb-auth-logo {
    display: block;
    width: 260px;
    max-width: 72%;
    height: auto;
    margin: 0 auto;
}

.bb-auth-tagline {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bb-primary);
}

/* the card */
.bb-auth-card {
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: 2px;
    padding: 30px 28px 26px;
}

.bb-auth-card .alert {
    font-size: 13px;
    margin-bottom: 18px;
}

.bb-auth-company {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--bb-muted);
}

.bb-auth-company strong {
    color: var(--bb-primary);
}

.bb-auth-field {
    margin-bottom: 18px;
}

.bb-auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bb-primary);
}

.bb-auth-field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    color: var(--bb-primary);
    background: var(--bb-white);
    border: 1px solid #C9D4D8;
    border-radius: 2px;
}

.bb-auth-field input::placeholder {
    color: #9AA8AE;
}

.bb-auth-field input:focus {
    outline: none;
    border-color: var(--bb-accent);
    box-shadow: var(--bb-focus-ring);
}

.bb-auth-field input.is-missing {
    border-color: var(--bb-danger);
}

.bb-auth-trust {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 22px;
}

.bb-auth-trust input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex: none;
    accent-color: var(--bb-primary);
}

.bb-auth-trust label {
    font-size: 14px;
    color: var(--bb-primary);
    cursor: pointer;
}

.bb-auth-trust small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bb-muted);
}

.bb-auth-submit {
    display: block;
    width: 100%;
    height: 44px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--bb-white);
    background: var(--bb-primary);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
}

.bb-auth-submit:hover {
    background: var(--bb-primary-hover);
}

.bb-auth-submit:focus-visible {
    outline: none;
    box-shadow: var(--bb-focus-ring);
}

.bb-auth-forgot {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--bb-accent-strong);
    text-decoration: none;
}

.bb-auth-forgot:hover,
.bb-auth-forgot:focus-visible {
    text-decoration: underline;
}

/* under the card */
.bb-auth-note {
    margin: 26px auto 0;
    max-width: 400px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bb-muted);
}

@media (max-width: 480px) {
    .bb-auth-page {
        padding-top: 28px;
    }

    .bb-auth-card {
        padding: 24px 18px 22px;
    }
}
