/* BlurConnect's sign-in pages: phone first, dark by default (#101317),
   light when the site says so. Only one language shows: <html lang>. */

.bc-card, .bc-buttons {
  --bc-bg: #101317; --bc-card: #181c22; --bc-text: #e9edf2; --bc-muted: #9aa4b2;
  --bc-accent: #00c6cf; --bc-accent-text: #04282b; --bc-error: #f87171;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bc-card, :root:not([data-theme="dark"]) .bc-buttons {
    --bc-bg: #f4f6f9; --bc-card: #fff; --bc-text: #14181d; --bc-muted: #5b6573; --bc-error: #b91c1c;
  }
}
:root[data-theme="light"] .bc-card, :root[data-theme="light"] .bc-buttons {
  --bc-bg: #f4f6f9; --bc-card: #fff; --bc-text: #14181d; --bc-muted: #5b6573; --bc-error: #b91c1c;
}

html:not([lang^="en"]) .bc-card [lang="en"], html:not([lang^="en"]) .bc-buttons [lang="en"],
html[lang^="en"] .bc-card [lang="bg"], html[lang^="en"] .bc-buttons [lang="bg"] { display: none; }

.bc-card {
  /* the ecosystem's 16 px side gutter on a phone (BlurAccounter, 2026-10-29) */
  box-sizing: border-box; width: calc(100% - 32px); max-width: 420px; margin: 24px auto; padding: 28px 16px;
  background: var(--bc-card); color: var(--bc-text); border-radius: 16px; text-align: center;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 480px) { .bc-card { padding: 32px 28px; } }
.bc-card h1 { font-size: 1.35rem; margin: 12px 0 20px; overflow-wrap: anywhere; }
.bc-logo { display: block; margin: 0 auto; width: 72px; height: 72px; border-radius: 18px; }

.bc-buttons { display: grid; gap: 8px; }
.bc-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--bc-accent); color: var(--bc-accent-text); font: inherit; font-weight: 600; text-decoration: none;
}
.bc-paper-mark { display: inline-block; width: 1.2em; height: 1.2em; flex: none; border-radius: 3px; vertical-align: -0.2em; }
.bc-card h1 .bc-paper-mark { margin-right: 0.4em; }
.bc-button[aria-busy="true"] .bc-paper-mark { display: none; }
.bc-button:disabled { opacity: .7; cursor: progress; }
.bc-link { background: none; border: 0; padding: 8px; color: var(--bc-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.bc-or { margin: 12px 0 0; }
.bc-error { color: var(--bc-error); margin: 12px 0 0; }
.bc-status { margin: 12px 0; color: var(--bc-text); }

/* Every wait is visible: the button's own spinner, and the return page's. */
.bc-spin { display: none; }
.bc-button[aria-busy="true"] .bc-spin,
.bc-spinner {
  display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: bc-turn .8s linear infinite;
}
.bc-spinner { width: 40px; height: 40px; margin: 8px auto 0; color: var(--bc-accent); display: block; }
.bc-spinner[hidden] { display: none; }
@keyframes bc-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bc-spin, .bc-spinner { animation-duration: 2.4s; } }

/* The people picker (blurconnect-people). */
.bc-people { position: relative; display: grid; gap: 6px; }
.bc-people-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; }
.bc-people-list { list-style: none; margin: 0; padding: 4px; border-radius: 10px; border: 1px solid currentColor; }
.bc-people-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.bc-people-list li[aria-selected="true"], .bc-people-list li:hover { background: rgba(0, 198, 207, .18); }
.bc-people[aria-busy="true"] .bc-people-note::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: bc-turn .8s linear infinite; vertical-align: -1px; }
.bc-people-note { margin: 0; font-size: .9em; opacity: .85; }
