/* HQ Remote additions on top of the company UI standard (css/info-ui.css).
   Only what the standard does not cover lives here, and it uses the standard's variables throughout. */

* { box-sizing: border-box; }
body.lm-app { margin: 0; font-size: var(--ui-fs-lg); line-height: 1.5; }

/* Wordmark next to the INFO mark: same construction as "360" in Info360. */
.sb-logo-full b.hq-word { font-size: 19px; letter-spacing: -.3px; }

/* Bootstrap is not loaded here, so buttons used as menu items and stats need their browser defaults removed. */
button.sb-item { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; text-align: left; }
.sb-foot form { margin: 0; }
button.ui-stat { border: 0; border-right: 1px solid var(--ui-line); background: none; font: inherit; text-align: left; cursor: pointer; }
button.ui-stat:hover { background: var(--ui-surface); }
button.ui-stat:focus-visible { outline: 2px solid var(--ui-link); outline-offset: -2px; }
.tb-user { white-space: nowrap; }

.ui-mono { font-family: Consolas, 'Cascadia Mono', monospace; font-variant-numeric: tabular-nums; }
.ui-table td.hq-name { font-weight: 600; }
.ui-table tbody td { white-space: nowrap; }
.ui-filters .ui-input.hq-search { flex: 1 1 260px; max-width: 420px; }
.ui-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ui-gap-3); }
.ui-form-row .ui-field.col { font-size: var(--ui-fs-sm); }
.hq-groups { list-style: none; margin: 0; padding: 0; }
.hq-groups li { display: flex; justify-content: space-between; gap: var(--ui-gap-4); padding: 7px 0; border-bottom: 1px solid var(--ui-line-soft); }
.hq-token { flex-direction: column; align-items: flex-start; }
.hq-token code { font-size: var(--ui-fs-lg); color: var(--ui-text); overflow-wrap: anywhere; user-select: all; }
.ui-btn.link { border: 0; background: none; height: auto; padding: 0; color: var(--ui-bad); text-decoration: underline; }

/* ---------- Login: same two-panel page as Info360 ---------- */
body.lm-app:has(.login-shell) { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; }
.login-shell {
    display: flex; width: 100%; max-width: 900px; min-height: 540px; background: var(--ui-surface);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(34, 49, 63, .14), 0 2px 6px rgba(34, 49, 63, .06);
}
.login-brand {
    position: relative; flex: 0 0 44%; padding: 44px 40px; color: #dbe4ee; display: flex; flex-direction: column; overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(240, 145, 63, .16) 0%, transparent 45%),
        radial-gradient(circle at 10% 95%, rgba(240, 145, 63, .08) 0%, transparent 40%),
        var(--ui-nav-bg);
}
.login-brand::after {
    content: ''; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px;
    border-radius: 50%; border: 34px solid rgba(255, 255, 255, .04);
}
.login-logo { display: flex; align-items: flex-end; gap: 8px; }
.login-logo img { height: 58px; width: auto; display: block; }
.login-logo b {
    font-family: 'Poppins', 'Segoe UI', sans-serif; font-weight: 700; font-size: 40px; line-height: .74;
    letter-spacing: -1px; color: var(--ui-brand); margin-bottom: 4px;
}
.login-tagline { margin-top: 34px; font-size: 21px; font-weight: 600; color: #fff; line-height: 1.4; }
.login-blurb { margin-top: 10px; font-size: 14px; color: #a9b8c8; line-height: 1.6; max-width: 300px; }
.login-modules { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.login-modules span {
    font-size: 12px; padding: 4px 11px; border-radius: 14px; background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12); color: #c7d2de; white-space: nowrap;
}
.login-form-side { flex: 1 1 auto; padding: 36px 48px 40px; display: flex; flex-direction: column; }
.login-form { margin: auto 0; width: 100%; max-width: 340px; align-self: center; padding-top: 16px; }
.login-form h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.login-form .sub { color: var(--ui-text-2); font-size: 14px; margin: 0 0 28px; }
.login-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.login-input {
    display: flex; margin-bottom: 16px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius);
    background: var(--ui-surface-2); overflow: hidden;
}
.login-input:focus-within { border-color: var(--ui-link); background: var(--ui-surface); box-shadow: 0 0 0 2px rgba(11, 92, 173, .2); }
.login-input i { display: flex; align-items: center; padding: 0 12px; color: var(--ui-text-2); }
.login-input:focus-within i { color: var(--ui-link); }
.login-input input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 14px 11px 0; font: inherit; font-size: 14px; color: var(--ui-text); }
.login-submit {
    width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: var(--ui-radius); font: inherit; font-weight: 600;
    font-size: 15px; color: #fff; background: var(--ui-ink); cursor: pointer;
}
.login-submit:hover, .login-submit:focus-visible { background: var(--ui-ink-2); }
.login-submit:focus-visible { outline: 2px solid var(--ui-link); outline-offset: 2px; }
.login-error { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--ui-radius); font-size: 14px; background: var(--ui-bad-soft); color: var(--ui-bad); }
.login-foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--ui-text-2); }

@media (max-width: 760px) {
    body.lm-app:has(.login-shell) { padding: 0; align-items: stretch; background: var(--ui-surface); }
    .login-shell { flex-direction: column; border-radius: 0; box-shadow: none; min-height: 100vh; }
    .login-brand { flex: 0 0 auto; padding: 26px 20px 24px; }
    .login-brand::after { width: 200px; height: 200px; right: -70px; bottom: -90px; border-width: 22px; }
    .login-logo img { height: 46px; }
    .login-logo b { font-size: 32px; }
    .login-tagline { margin-top: 16px; font-size: 17px; }
    .login-blurb, .login-modules { display: none; }
    .login-form-side { padding: 18px 20px 28px; }
    .login-form { max-width: none; margin: 8px 0 0; }
}

/* ---------- MFA setup: a single centred panel ---------- */
body.lm-app:has(.mfa-card) { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; padding: 40px 16px; }
.mfa-card {
    width: 100%; max-width: 560px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 8px;
    padding: 28px 32px; display: flex; flex-direction: column; gap: var(--ui-gap-4); font-size: var(--ui-fs-lg);
}
.mfa-card h1 { margin: 0; font-size: var(--ui-fs-h1); font-weight: 700; }
.mfa-card .ui-sub { margin: 0; font-size: var(--ui-fs-md); }
.mfa-brand { display: flex; align-items: flex-end; gap: 5px; }
.mfa-brand img { height: 28px; width: auto; display: block; }
.mfa-brand b { font-family: 'Poppins', 'Segoe UI', sans-serif; font-weight: 700; font-size: 22px; line-height: .74; color: var(--ui-brand); margin-bottom: 2px; }
.mfa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--ui-gap-3); }
.mfa-qr { display: block; margin: var(--ui-gap-3) 0 var(--ui-gap-2); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: #fff; }
.mfa-key { display: inline-block; padding: 4px 10px; border-radius: var(--ui-radius); background: var(--ui-surface-2); font-size: var(--ui-fs-lg); letter-spacing: .04em; user-select: all; }
.mfa-form { margin: 0; display: flex; flex-direction: column; gap: var(--ui-gap-3); }
.mfa-codes { list-style: none; margin: 0; padding: 12px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; background: var(--ui-surface-2); border-radius: var(--ui-radius); }
.mfa-logout { margin: 0; padding-top: var(--ui-gap-3); border-top: 1px solid var(--ui-line-soft); }
