/* Stream Brothers' sign-in page: the brand's shape and type over the page it shares with Primcast.
 *
 * Written by hand and never by tools/partner-sites/build-portal.py, which links it after /login/index.min.css and
 * recolours that stylesheet with this brand's palette (PARTNERS['streambrothers.com']['palette']). What a palette
 * cannot say lives here: the site's studio look (site/css/site.css): deep indigo with a violet-and-cyan glow, soft
 * 14px cards and 10px buttons, the violet button, the system type face at heavy weights and the pink "live" dot. */
:root {
  --radius: 18px;
  --sb-cy: #22d3ee;
  --sb-live: #ff4d6d;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(720px 420px at 22% -6%, rgba(91, 63, 214, .34), transparent 62%),
    radial-gradient(560px 360px at 88% 8%, rgba(34, 211, 238, .12), transparent 64%),
    #0d0b1a;
}

/* The card: a channel tile, violet rim, a pink on-air light in its corner. */
.card {
  position: relative;
  border: 1px solid rgba(183, 166, 255, .18);
}
.card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sb-live);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, .16);
  animation: sb-onair 2.4s ease-in-out infinite;
}
/* The console chip under the card is a dark pill in both themes; its host name takes the brand's light tint (lilac, the site's --vi):
   the accent the palette gives it is too dark for 11px type on the pill. */
.console-chip .cc-host { color: #b7a6ff; }

.card h2 {
  letter-spacing: -.02em;
  font-weight: 750;
}

.auth-switch { border-radius: 12px; }
.auth-switch .auth-seg { border-radius: 9px; }
.auth-switch .auth-seg.is-active { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(183, 166, 255, .22); }

.input { border-radius: 10px; }

/* The site's button: violet, a soft glow instead of a ledge. */
.app-btn { border-radius: 10px; }
.app-btn.primary {
  background: linear-gradient(180deg, #6a4cf0, #5b3fd6 60%, #4a31b8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 28px rgba(91, 63, 214, .42);
  transition: transform .15s, box-shadow .15s;
}
.app-btn.primary:hover:not([disabled]) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 32px rgba(91, 63, 214, .5); }
.app-btn.primary:active { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 14px rgba(91, 63, 214, .4); }

a:focus-visible, .app-btn:focus-visible { outline: 2px solid var(--sb-cy); outline-offset: 2px; }

@keyframes sb-onair { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* By day: lilac paper, indigo ink. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) body {
    background:
      radial-gradient(720px 420px at 22% -6%, rgba(91, 63, 214, .14), transparent 62%),
      radial-gradient(560px 360px at 88% 8%, rgba(34, 211, 238, .1), transparent 64%),
      #f8f6ff;
  }
  :root:not([data-theme=dark]) .card { border-color: #e3defa; }
}
:root[data-theme=light] body {
  background:
    radial-gradient(720px 420px at 22% -6%, rgba(91, 63, 214, .14), transparent 62%),
    radial-gradient(560px 360px at 88% 8%, rgba(34, 211, 238, .1), transparent 64%),
    #f8f6ff;
}
:root[data-theme=light] .card { border-color: #e3defa; }

@media (prefers-reduced-motion: reduce) {
  .card::after { animation: none; }
  .app-btn.primary { transition: none; }
}
