/*
 * The CMS sign-in page (and the /console placeholder), on the Pomeroy Challenge palette
 * (packages/website/assets/css/game.css: --deep-blue, --energy-blue, --fire).
 *
 * <de-login> is mounted with `surface: 'host'` (src/main.ts), so it takes its colours from the
 * framework tokens remapped here rather than from designEdit's own slate and cyan. Light only,
 * deliberately: index.html pins data-mode="light". Adapted from BMO Wrap The Good's admin.css.
 */
:root,
:root[data-mode='light'] {
  --de-blue-50: #eef6ff;
  --de-blue-100: #d9ecff;
  --de-blue-200: #a8d4ff;
  --de-blue-300: #66b7ff;
  --de-blue-400: #2aa2ff;
  --de-blue-500: #0098ff; /* --energy-blue */
  --de-blue-600: #0077cc;
  --de-blue-700: #00508f;
  --de-blue-800: #003a6e;
  --de-blue-900: #002856; /* --deep-blue */
  --de-color-fg: #002856;
  --de-color-fg-muted: #3a5070;
}

html,
body {
  height: 100%;
  margin: 0;
}

/* The page owns the centring and the surface: <de-login> is `embedded`. */
body {
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: var(--de-font-sans);
  background-color: #002856;
  background-image: linear-gradient(170deg, #061f90 0%, #002856 60%, #001a3a 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.shell {
  width: 100%;
  max-width: 520px;
}

.card {
  box-sizing: border-box;
  padding: 40px 44px 38px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgb(0 40 86 / 0.12),
    0 24px 48px -16px rgb(0 20 50 / 0.45);
}

@media (max-width: 480px) {
  .card {
    padding: 28px 22px 26px;
  }
}

/* The project name, as the card's masthead with a rule under it. */
.card .wordmark {
  margin: 0 0 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e8ef;
  color: #f26f21; /* --fire */
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.card h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #002856;
}

.lede {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #002856;
}

.tag {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #d9ecff;
  color: #00508f;
  font-size: 0.8125rem;
  font-weight: 600;
}

#login {
  margin-top: 8px;
}

form button {
  margin-top: 24px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #0098ff;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

noscript {
  display: block;
  margin-top: 20px;
  font-size: 0.9375rem;
  color: #3a5070;
}
