/* BetterMantisAuth: uses the BetterMantis tokens when present, sensible fallbacks otherwise */
.bm-auth { --a: var(--bm-accent, #2563eb); --t: var(--bm-text, #111827); --t2: var(--bm-text-2, #374151); --m: var(--bm-muted, #6b7280);
	--b: var(--bm-border, #e5e7eb); --s2: var(--bm-surface-2, #f9fafb); --s3: var(--bm-surface-3, #f3f4f6); color: var(--t); }
.bm-auth-title { font-size: 22px; font-weight: 700; margin: 4px 0 8px; text-align: center; letter-spacing: -0.02em; }
.bm-auth-lead { color: var(--t2); font-size: 14.5px; line-height: 1.55; text-align: center; margin: 0 0 16px; }
.bm-auth-form { display: grid; gap: 10px; margin-top: 6px; }
.bm-auth-label { font-weight: 600; font-size: 13.5px; margin: 0; }
body .bm-auth input.bm-auth-code { font-size: 24px !important; letter-spacing: .25em; text-align: center; height: 56px !important; font-variant-numeric: tabular-nums;
	font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace !important; }
.bm-auth-help { color: var(--m); font-size: 12.5px; line-height: 1.5; margin: 0; }
.bm-auth-check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; margin: 4px 0; cursor: pointer; }
.bm-auth-check input { width: 18px; height: 18px; margin: 0; }
.bm-auth .btn-block { width: 100%; height: 44px; font-size: 15px; margin-top: 4px; }
.bm-auth-secondary { text-align: center; margin: 10px 0 0; }
.bm-auth-link { background: none; border: 0; padding: 4px; color: var(--bm-accent-text, var(--a)); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bm-auth-help-more { margin: 14px 0 0; font-size: 13.5px; color: var(--t2); }
.bm-auth-help-more summary { cursor: pointer; font-weight: 600; color: var(--bm-accent-text, var(--a)); }
.bm-auth-help-more p { margin: 8px 0 0; }
.bm-auth-foot { text-align: center; margin: 16px 0 0; font-size: 13.5px; }
.bm-auth-alert { border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 13.5px; border: 1px solid; }
.bm-auth-alert-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.bm-auth-alert-info { background: var(--s2); border-color: var(--b); color: var(--t2); }
.bm-auth-methods { display: grid; gap: 10px; }
.bm-auth-method { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--bm-border-strong, #d1d5db); border-radius: 12px;
	color: var(--t) !important; text-decoration: none !important; background: var(--bm-surface, #fff); transition: border-color .12s, box-shadow .12s; }
.bm-auth-method:hover, .bm-auth-method:focus-visible { border-color: var(--a); box-shadow: 0 0 0 3px var(--bm-focus, rgba(37,99,235,.25)); }
.bm-auth-method-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--a); font-size: 20px; }
.bm-auth-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--bm-accent-text, var(--a)); background: var(--bm-accent-soft, #eff6ff); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bm-auth-steps { padding-left: 20px; display: grid; gap: 10px; font-size: 14px; color: var(--t2); margin: 0 0 14px; }
.bm-auth-qr { width: 210px; max-width: 100%; margin: 10px auto 4px; padding: 8px; background: #fff; border: 1px solid var(--b); border-radius: 12px; }
.bm-auth-qr svg { display: block; width: 100%; height: auto; }
.bm-auth-key { display: inline-block; font-size: 15px; letter-spacing: .08em; padding: 6px 10px; background: var(--s3); border-radius: 8px; word-break: break-all; }
.bm-auth-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 14px 14px 14px 36px; background: var(--s2);
	border: 1px dashed var(--bm-border-strong, #d1d5db); border-radius: 12px; margin: 0 0 12px; }
.bm-auth-codes code { font-size: 15px; letter-spacing: .06em; background: none; color: var(--t); }
.bm-auth-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; align-items: center; }
.bm-auth-actions form { margin: 0; }
/* Account page */
.bm-auth-account .bm-auth-status { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--bm-border, #e5e7eb);
	background: var(--bm-surface-2, #f9fafb); margin-bottom: 16px; line-height: 1.5; }
.bm-auth-status-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.bm-auth-status-on .bm-auth-status-icon { background: #ecfdf3; color: #067647; }
.bm-auth-status-off .bm-auth-status-icon { background: var(--bm-surface-3, #f3f4f6); color: var(--bm-muted, #6b7280); }
.bm-auth-subtitle { font-size: 14px; font-weight: 650; margin: 18px 0 8px; }
.bm-auth-account .bm-auth-help { color: var(--bm-muted, #6b7280); }
/* "Sign in with Microsoft" on the login pages (Microsoft's button guidelines: neutral, logo left) */
.bm-sso-login { max-width: 420px; margin: 16px auto; }
#login-box .bm-sso-login { margin: 14px 0 4px; max-width: none; }
.bm-sso-or { display: flex; align-items: center; gap: 10px; color: var(--bm-muted, #6b7280); font-size: 12.5px; margin: 0 0 12px; }
.bm-sso-or::before, .bm-sso-or::after { content: ''; flex: 1; height: 1px; background: var(--bm-border, #e5e7eb); }
.bm-sso-button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px;
	border: 1px solid var(--bm-border-strong, #8c8c8c); background: var(--bm-surface, #fff); color: var(--bm-text, #5e5e5e) !important;
	font-weight: 600; font-size: 15px; text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.bm-sso-button:hover, .bm-sso-button:focus-visible { border-color: var(--bm-accent, #2563eb); box-shadow: 0 0 0 3px var(--bm-focus, rgba(37,99,235,.25)); outline: none; }
.bm-sso-button svg { flex: none; }
