/* =================== Sign-in "orbit" design (2026-11-26) ===================
   Left: the apps turn round the BSA hub with their live status. Words, app names, logos and colours come from
   Login & branding; every moving part has its own Look & feel switch (html.fx-login*). Nothing moves for people whose
   device asks for less motion, or on a slow device (html.ob-still, set by login.js). Loaded after styles.css. */
.auth3.ob-page { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
.a3-brand.ob { --ob-ink: #0b2540; --ob-soft: #4a6280; --ob-glow: #38bdf8; --ob-blue: #0284c7;
  background: #eaf5ff; color: var(--ob-ink); }
.a3-brand.ob::after { display: none; }
.a3-brand.ob > :not(.ob-dots) { position: relative; z-index: 1; }
.ob-dots { position: absolute; inset: -24px; background-image: radial-gradient(rgba(2, 132, 199, .16) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; transition: transform .4s ease-out; }
.ob-pitch { align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; }
.ob-text { flex: 1 1 250px; min-width: 0; display: grid; gap: 16px; justify-items: start; }
.ob-text h2 { margin: 0; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.ob-hl { font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% 30%; }
.ob-hl.pre { background-size: 0 30%; }
.ob-hl.sweep { animation: ob-sweep .7s cubic-bezier(.65, 0, .35, 1) both; }
.ob-caret { display: none; width: 3px; height: .85em; margin-left: 3px; vertical-align: -.08em; background: var(--ob-blue); animation: ob-tick 1s steps(1) infinite; }
.ob-hl.typing .ob-caret { display: inline-block; }
.ob-lead { margin: 0; max-width: 440px; font-size: 15.5px; line-height: 1.65; color: var(--ob-soft); }
.a3-brand.ob .a3-status { padding: 6px 12px; border-radius: 999px; border: 1px solid #cfe3f5; background: rgba(255, 255, 255, .85); font-weight: 500; }
.a3-status.checking { color: var(--ob-soft); }
.a3-status.checking i { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .2); }
@keyframes ob-sweep { from { background-size: 0 30%; } to { background-size: 100% 30%; } }
@keyframes ob-tick { 50% { opacity: .15; } }

/* the orbit */
.ob-wrap { flex: 0 1 440px; min-width: 0; display: flex; justify-content: center; perspective: 900px; }
.ob-tilt { width: 440px; max-width: 100%; transition: transform .35s ease-out; }
.ob-orbit { position: relative; width: 100%; aspect-ratio: 1; }
.ob-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-rings circle { stroke: #b9d9f2; }
.ob-rings circle + circle { stroke: #d6e8f7; }
.ob-hub { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.ob-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ob-glow); opacity: 0; }
.ob-core { position: absolute; inset: 14px; border-radius: 50%; background: #fff; border: 1px solid #cfe3f5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 0 60px -6px var(--ob-glow); color: var(--charcoal); transition: transform .3s ease, box-shadow .3s ease; }
.ob-core b { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--ob-soft); }
.ob-build { display: inline-flex; }
.ob-boost { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.55, 0, .25, 1); }
.ob-ring { position: absolute; inset: 30px; pointer-events: none; }
.ob-arm { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.ob-arm:hover, .ob-arm:focus-within { z-index: 5; }
.ob-spoke { position: absolute; left: 50%; top: 26px; bottom: calc(50% + 48px); width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, #b9d9f2 0 4px, transparent 4px 9px); }
.ob-spoke i, .ob-spoke b { display: none; position: absolute; border-radius: 50%; }
.ob-spoke i { left: -2px; width: 6px; height: 6px; margin-top: -3px; background: var(--ob-glow); box-shadow: 0 0 10px 2px var(--ob-glow); }
.ob-spoke b { left: -3px; width: 8px; height: 8px; margin-top: -4px; background: var(--yellow); box-shadow: 0 0 12px 3px rgba(248, 199, 0, .8); }
.ob-unarm { position: absolute; top: -30px; left: 50%; width: 92px; margin-left: -46px; transform: rotate(calc(-1 * var(--a))); }
.ob-chip { display: flex; justify-content: center; pointer-events: auto; }
.ob-cb { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 1s cubic-bezier(.55, 0, .25, 1); }
.ob-tile { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 14px; background: var(--tb, var(--ob-blue)); border: 1px solid rgba(255, 255, 255, .4); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; box-shadow: 0 10px 24px -10px rgba(3, 105, 161, .45); transition: transform .2s ease, box-shadow .2s ease; }
html:not(.fx-loginPick) .ob-tile { cursor: default; }
.ob-tile > svg { display: block; }
.ob-tile > b { font-weight: 700; letter-spacing: .02em; }
.ob-tile:hover, .ob-tile:focus-visible { transform: translateY(-4px) scale(1.1); box-shadow: 0 16px 30px -12px rgba(2, 132, 199, .6); }
.ob-tile:focus-visible { outline: 3px solid var(--ob-blue); outline-offset: 3px; }
.ob-tile.ob-on { box-shadow: 0 0 0 3px var(--yellow), 0 16px 30px -12px rgba(2, 132, 199, .55); }
.ob-st { position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: #10b981; }
.ob-st.slow { background: #f59e0b; }
.ob-st.down { background: #dc2626; }
.ob-st.unknown { display: none; }
.ob-st.pending { background: #cbd5e1; }
.ob-st.ob-pop { animation: ab-pop .4s cubic-bezier(.2, .8, .3, 1.6); }
.ob-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; width: 200px; padding: 10px 12px; border-radius: 10px; background: var(--ob-ink); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(6px); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 12px 30px -10px rgba(11, 37, 64, .6); z-index: 2; }
.ob-tip strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ob-tip em { display: block; font-style: normal; margin-top: 4px; color: #fcd34d; }
.ob-tile:hover .ob-tip, .ob-tile:focus-visible .ob-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.ob-label { white-space: nowrap; font-size: 11px; font-weight: 500; color: #3a5272; }
.ob-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tb, var(--ob-blue)); color: #fff; flex: none; }
.ob-logo b { font-size: 9px; }
.ob-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.ob-net line { stroke: #9cc9ec; stroke-width: 1; opacity: .6; transition: stroke .25s, opacity .25s, stroke-width .25s; }
.ob-net line.ob-x { opacity: .3; stroke-dasharray: 2 5; }
.ob-net line.broken { stroke: #f3a29b; stroke-dasharray: 3 4; }
.ob-net line.hot { stroke: var(--yellow); opacity: 1; stroke-width: 2; stroke-dasharray: none; }
.ob-run { fill: none; stroke: var(--ob-glow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 95; filter: drop-shadow(0 0 4px var(--ob-glow)); }

/* the sign-in card extras */
.ob-clock { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: #f1f8ff; border: 1px solid #d6e8f7; font-size: 12px; font-weight: 500; color: #3a5272; font-variant-numeric: tabular-nums; }
.ob-clock svg { color: #0284c7; }
.ob-colon { animation: ob-tick 1s steps(1) infinite; }
.ob-sep { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-soft, #5d605e); }
.ob-sep::before, .ob-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ob-picked { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fffbea; border: 1px solid #f1dc84; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #5d605e); animation: ab-up .35s ease-out both; }
.ob-picked b { color: var(--ink); font-size: 14px; }
.ob-picked .link-u { justify-self: start; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.a3-card .ms-btn { position: relative; overflow: hidden; }
.ob-sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(125, 211, 252, .35), transparent); transform: translateX(-120%); pointer-events: none; }

/* Sign-in page animation (existing switch): headline + orbit float + button shine */
html.fx-loginAnim .ob-text h2 { animation: ab-up .6s ease-out both; }
html.fx-loginAnim:not(.fx-loginTyping) .ob-hl { animation: ob-sweep .8s .35s cubic-bezier(.65, 0, .35, 1) both; }
html.fx-loginAnim .ob-orbit { animation: ob-float 6s ease-in-out infinite; }
html.fx-loginAnim .ob-sheen { animation: ob-shine 3.2s ease-in-out infinite; }
@keyframes ob-float { 50% { transform: translateY(-10px); } }
@keyframes ob-shine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }

/* Turning app orbit */
html.fx-loginOrbit .ob-ring { animation: ob-spin 56s linear infinite; }
html.fx-loginOrbit .ob-chip { animation: ob-spinr 56s linear infinite; }
html.fx-loginOrbit .ob-ring:hover, html.fx-loginOrbit .ob-ring:hover .ob-chip,
html.fx-loginOrbit .ob-ring:focus-within, html.fx-loginOrbit .ob-ring:focus-within .ob-chip { animation-play-state: paused; }
html.fx-loginOrbit .ob-ripple { animation: ob-ripple 3.6s ease-out infinite; }
html.fx-loginOrbit .ob-ripple:nth-child(2) { animation-delay: 1.2s; }
html.fx-loginOrbit .ob-ripple:nth-child(3) { animation-delay: 2.4s; }
html.fx-loginOrbit .ob-dash { animation: ob-dash 2s linear infinite; }
html.fx-loginOrbit .ob-dots { animation: ob-drift 6s linear infinite; }
html.fx-loginOrbit .ob-spoke i { display: block; animation: ob-flow 2.6s ease-in-out infinite; animation-delay: var(--d); }
html.fx-loginOrbit .ob-arm.down .ob-spoke i { display: none; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-spinr { to { transform: rotate(-360deg); } }
@keyframes ob-ripple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ob-dash { to { stroke-dashoffset: -40; } }
@keyframes ob-drift { to { background-position: 32px 32px; } }
@keyframes ob-flow { 0% { top: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes ob-inflow { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Orbit hover glow */
html.fx-loginHoverGlow .ob-arm:hover .ob-spoke, html.fx-loginHoverGlow .ob-arm:focus-within .ob-spoke { background: repeating-linear-gradient(to bottom, var(--yellow) 0 5px, transparent 5px 9px); filter: drop-shadow(0 0 4px rgba(248, 199, 0, .9)); }
html.fx-loginHoverGlow .ob-arm:hover .ob-spoke b, html.fx-loginHoverGlow .ob-arm:focus-within .ob-spoke b { display: block; animation: ob-inflow .9s linear infinite; }
html.fx-loginHoverGlow .ob-arm:hover .ob-spoke i, html.fx-loginHoverGlow .ob-arm:focus-within .ob-spoke i { display: none; }
html.fx-loginHoverGlow .ob-orbit:has(.ob-arm:hover) .ob-core, html.fx-loginHoverGlow .ob-orbit:has(.ob-arm:focus-within) .ob-core { transform: scale(1.07); box-shadow: 0 0 70px -2px var(--yellow); }

/* Sign-in launch (login.js adds .ob-launch, then goes to Microsoft) */
.ob-orbit.ob-launch .ob-boost { transform: rotate(360deg); }
.ob-orbit.ob-launch .ob-cb { transform: rotate(-360deg); }
.ob-orbit.ob-launch .ob-spoke { background: repeating-linear-gradient(to bottom, var(--yellow) 0 5px, transparent 5px 9px); }
.ob-orbit.ob-launch .ob-spoke i { display: none; }
.ob-orbit.ob-launch .ob-spoke b { display: block; animation: ob-inflow .5s linear infinite; animation-delay: var(--d2); }
.ob-orbit.ob-launch .ob-ripple { border-color: var(--yellow); animation: ob-ripple 1.2s ease-out infinite; }
.ob-orbit.ob-launch .ob-core { animation: ob-hubflash .45s .55s ease-in-out 2 alternate; box-shadow: 0 0 90px 0 var(--yellow); }
@keyframes ob-hubflash { to { transform: scale(1.16); background: #fffbea; } }

/* Sign-in mouse tilt (login.js sets --mx / --my, -1…1) */
html.fx-loginTilt .ob-page .ob-dots { transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -16px)); }
html.fx-loginTilt .ob-page .ob-tilt { transform: rotateX(calc(var(--my, 0) * -10deg)) rotateY(calc(var(--mx, 0) * 12deg)); }

/* App network lines */
html.fx-loginNetwork .ob-net { display: block; }
html.fx-loginNetwork .ob-run { animation: ob-run 7s linear infinite; }
@keyframes ob-run { to { stroke-dashoffset: -100; } }

/* Logo builds itself (login.js adds .play once per visit) */
.ob-build .lm-line { stroke-dasharray: 1 1; }
.ob-build .lm-node, .ob-build .lm-hub { transform-box: fill-box; transform-origin: center; }
html.fx-loginLogoBuild .ob-build.play .lm-line { animation: ab-draw .45s ease-out both; animation-delay: calc(.15s + var(--i) * .1s); }
html.fx-loginLogoBuild .ob-build.play .lm-node { animation: ob-lmpop .4s cubic-bezier(.2, .8, .3, 1.5) both; animation-delay: calc(.5s + var(--i) * .1s); }
html.fx-loginLogoBuild .ob-build.play .lm-hub { animation: ob-lmpop .5s 1s cubic-bezier(.2, .8, .3, 1.5) both, ob-hubglow 1.2s 1.3s ease-out; }
@keyframes ob-lmpop { from { transform: scale(0); } }
@keyframes ob-hubglow { 40% { filter: drop-shadow(0 0 6px #f8c700); } }

/* Pick an app on the orbit */
.ob-tile.flip { animation: ob-flip .6s cubic-bezier(.3, .7, .3, 1); }
@keyframes ob-flip { from { transform: perspective(300px) rotateY(0); } to { transform: perspective(300px) rotateY(360deg); } }

/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Login & branding editor: logo previews */
.ld-apps td { vertical-align: middle; }
.ld-apps .ob-logo { width: 34px; height: 34px; border-radius: 9px; }
.ld-apps input[type="color"] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* Phones and narrow windows: no orbit (the sign-in button stays near the top) */
@media (max-width: 860px) {
  .auth3.ob-page { grid-template-columns: 1fr; }
  .ob-wrap, .ob-lead { display: none; }
  .ob-text { gap: 10px; }
  .ob-text h2 { font-size: 26px; }
}

/* Less motion (device setting) or a slow device: nothing moves, everything shows at rest */
@media (prefers-reduced-motion: reduce) {
  .ob-page *, .ob-page .ob-dots { animation: none !important; transition: none !important; }
  .ob-page .ob-tilt, .ob-page .ob-dots, .ob-page .ob-boost, .ob-page .ob-cb { transform: none !important; }
  .ob-hl { background-size: 100% 30% !important; }
}
html.ob-still .ob-page *, html.ob-still .ob-page .ob-dots { animation: none !important; transition: none !important; }
html.ob-still .ob-page .ob-tilt, html.ob-still .ob-page .ob-dots, html.ob-still .ob-page .ob-boost, html.ob-still .ob-page .ob-cb { transform: none !important; }
html.ob-still .ob-hl { background-size: 100% 30% !important; }
