/* Get Stream Hosting's sign-in page: the brand's shape and type over the page it shares with Server Room.
 *
 * 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['getstreamhosting.com']['palette']). What a palette
 * cannot say lives here: the site's broadcast-desk look (site/css/site.css): square 4px corners, flat electric-blue
 * buttons, a navy night with the hero's faint grid, paper by day, the system type face and a mono label. */
:root {
  --radius: 8px;
  --gsh-grid: rgba(143, 161, 194, .07);
  --gsh-edge: linear-gradient(90deg, #2f6bff, #1fd1f4);
  --gsh-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(900px 620px at 18% 22%, rgba(47, 107, 255, .16), transparent 62%),
    linear-gradient(180deg, #030a1a 0%, #0b1b3a 100%);
}

/* The card: a monitor on the desk, a blue-to-cyan signal line along its top edge. */
.app-card {
  position: relative;
  border: 1px solid rgba(143, 161, 194, .2);
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gsh-edge);
}
/* The console chip under the card is a dark pill in both themes; its host name takes the brand's light tint (ice, the site's --gb):
   the accent the palette gives it is too dark for 11px type on the pill. */
.console-chip .cc-host { color: #8fe9ff; }

.app-card h1 {
  letter-spacing: -.025em;
  font-weight: 700;
}

.auth-switch { border-radius: 6px; }
.auth-switch .auth-seg { border-radius: 4px; }
.auth-switch .auth-seg.is-active { box-shadow: inset 0 -2px 0 #1fd1f4; }

.input { border-radius: 4px; }
.input > legend {
  font: 500 10.5px/1.2 var(--gsh-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* The site's button: flat blue, square, an arrow that says "go". */
.app-btn { border-radius: 4px; }
.app-btn.primary {
  background: #2459e0;
  box-shadow: 0 10px 24px rgba(36, 89, 224, .32);
  transition: background .15s, box-shadow .15s;
}
.app-btn.primary:hover:not([disabled]) { background: #1a44b8; }
.app-btn.primary:active { box-shadow: 0 4px 12px rgba(36, 89, 224, .3); }
.app-btn.primary .textContent::after {
  content: "\2192";
  margin-left: .55em;
  font-weight: 400;
}
.app-btn[disabled] .textContent::after { content: none; }

/* By day: paper, navy ink, the grid in ink. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) { --gsh-grid: rgba(11, 27, 58, .05); }
  :root:not([data-theme=dark]) body {
    background:
      linear-gradient(var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
      radial-gradient(900px 620px at 18% 22%, rgba(47, 107, 255, .08), transparent 62%),
      #f6f6f3;
  }
  :root:not([data-theme=dark]) .app-card { border-color: #dcdbd4; }
}
:root[data-theme=light] { --gsh-grid: rgba(11, 27, 58, .05); }
:root[data-theme=light] body {
  background:
    linear-gradient(var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--gsh-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(900px 620px at 18% 22%, rgba(47, 107, 255, .08), transparent 62%),
    #f6f6f3;
}
:root[data-theme=light] .app-card { border-color: #dcdbd4; }

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

/* The stepped sign-up and sign-in (shared/js/auth-flow.js, behind ?flow=v2): the recoloured Server Room tokens
   (login/auth-flow-theme.css, made by build-portal.py) finished in this site's own type and shape. */
:root {
  --af-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --af-radius: 4px;
  --af-link: #8fe9ff;
}
#af-card .af-label { font: 500 10.5px/1.2 var(--gsh-mono); letter-spacing: .08em; text-transform: uppercase; }
#af-card .af-tab[aria-selected="true"] { border-bottom-color: #1fd1f4; }
@media (prefers-color-scheme: light) {
  html:root:not([data-theme=dark]) { --af-line: #cfcec6; --af-link: #1a44b8; }
}
html:root[data-theme=light] { --af-line: #cfcec6; --af-link: #1a44b8; }
