/*
 * Brand tokens — a copy of the part of design/brand/tokens.css the page uses:
 * design/ is not in the image's build context (DEBT).
 */
@font-face {
  font-family: 'Onest';
  src: url('fonts/Onest-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #2450ff;
  --brand-deep: #0f2a99;
  --brand-soft: #eaf0ff;
  --ink: #0e1525;
  --muted: #5b6475;
  --surface: #f4f6fa;
  --paper: #ffffff;
  --font-sans: 'Onest', system-ui, sans-serif;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}

.logo {
  width: 186px;
  height: auto;
  margin-bottom: 40px;
}

.title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

/* The way to the bot: the screen's main action, in the brand's color. */
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    opacity 0.15s;
}

.go:hover {
  background: var(--brand-deep);
}

.go:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
}

/* While the ClientID is on its way the button waits: a press now would lose it. */
.go[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.85;
}

.go__icon {
  display: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.go:not([aria-disabled='true']) .go__icon {
  display: block;
}

.go__spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.go:not([aria-disabled='true']) .go__spinner {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  .logo {
    width: 218px;
  }

  .title {
    font-size: 38px;
  }
}
