@font-face {
  font-family: plex-sans;
  src: url(/static/fonts/plex-sans-regular.2afba28a9ce96315436db858db163c47.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: plex-sans;
  src: url(/static/fonts/plex-sans-bold.9505572e17d333f0ffe7131f95a5992d.woff) format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   Account selection — layered brand composition.
   Three rotated planes form a confident Deliveroo backdrop:
   teal-100 stripe (the iconic mark), aubergine-100 fold from
   the opposite corner, and a small mustard-100 accent line.
   All design-system tokens (constants.scss).
   ============================================================= */

html,
body {
  margin: 0;
  padding: 0;
  background: #faf6f0;
  color: #1c2222;
  font-family: "plex-sans", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body {
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-direction: column;
  position: relative;
}

/* Iconic teal stripe (primary brand plane) */
body::before {
  content: '';
  position: absolute;
  top: -53vh;
  left: -50vw;
  height: 100vh;
  width: 200vw;
  transform: rotate(-6deg);
  background: #00ccbc;
  z-index: 0;
}

/* Aubergine fold — opposite angle, peeks from the bottom-right */
body::after {
  content: '';
  position: absolute;
  bottom: -36vh;
  right: -60vw;
  height: 64vh;
  width: 200vw;
  transform: rotate(9deg);
  background: #733f8a;
  z-index: 0;
}

/* Mustard accent line — small finishing detail high-left */
html::before {
  content: '';
  position: absolute;
  top: 19vh;
  left: 6vw;
  height: 4px;
  width: 140px;
  background: #fabe00;
  border-radius: 2px;
  transform: rotate(-6deg);
  z-index: 0;
}

.wrapper {
  margin-top: -2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card {
  box-sizing: border-box;
  /* Top-edge brand hairline lives in background-image so it follows the
     card's rounded corners (background-image is clipped by border-radius;
     a 4px-tall ::before would have its corner radii clamped instead). */
  background-color: #FFFFFF;
  background-image: linear-gradient(90deg, #00ccbc 0%, #733f8a 100%);
  background-size: 100% 4px;
  background-position: top;
  background-repeat: no-repeat;
  padding: 48px 48px 40px;
  max-width: 460px;
  min-width: 460px;
  border-radius: 14px;
  position: relative;
  box-shadow:
    0 24px 60px -16px rgba(20, 30, 40, 0.18),
    0 8px 20px -6px rgba(20, 30, 40, 0.10);
  margin: 8px;
}

@media screen and (max-width: 500px) {
  .card {
    max-width: initial;
    min-width: initial;
    padding: 32px 24px 28px;
    border-radius: 10px;
  }
}

/* Heading — small tracked label + hero client name + teal underline */
.card__instructions {
  font-size: 28px;
  font-weight: bold;
  color: #1c2222;
  text-align: center;
  padding: 0;
  margin: 0 0 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.card__instructions em {
  display: block;
  margin-bottom: 14px;
  color: #707c7c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__instructions br {
  display: none;
}
.card__instructions::after {
  content: '';
  display: block;
  margin: 18px auto 0;
  width: 32px;
  height: 3px;
  background: #00ccbc;
  border-radius: 2px;
}

.deliveroo-logo {
  margin-bottom: 32px;
  height: 64px;
  width: 64px;
  position: relative;
  filter: drop-shadow(0 6px 14px rgba(0, 60, 55, 0.22));
}
.deliveroo-logo path {
  fill: #FFFFFF;
}

/* Generic .button — preserved for legacy callers, never instantiated on
   the current account-selection markup but kept for parity. */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1c2222;
  outline: none;
  background: none;
  border: 1px solid #d5d6d6;
  font-size: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}
.button:focus,
.button:hover {
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.10);
}

/* Okta secondary button — matched to Google GSI's "large" button so the
   two read as a coherent pair, but with brand-teal hover/focus instead
   of Google blue. */
.okta-button {
  border: 1px solid #d5d6d6;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1c2222;
  font-family: "plex-sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  padding: 0 16px;
  width: 300px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.okta-button:hover {
  background-color: #f2fcfc;
  border-color: #66e0d7;
  box-shadow: 0 4px 12px -4px rgba(0, 163, 150, 0.22);
}
.okta-button:focus {
  border-color: #00ccbc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 204, 188, 0.22);
}
.okta-button:active {
  transform: translateY(1px);
}
.okta-logo {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

/* Blocker warning toast — shown only when ad-block prevents Google sign-in */
.blocker-warning {
  background-color: #fb5058;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  position: fixed;
  width: calc(100% - 60px);
  left: 50%;
  margin-left: calc(-50% + 30px);
  bottom: 30px;
  z-index: 999;
  border-radius: 10px;
  display: none;
  box-shadow: 0 12px 24px -8px rgba(251, 80, 88, 0.40);
}
@media screen and (max-width: 600px) {
  .blocker-warning {
    width: 100%;
    margin-left: -50%;
    bottom: 0;
    border-radius: 0;
    font-size: 15px;
  }
}
.blocker-warning__text {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.35;
  padding: 18px;
}

/* ---------- Nudge variant (OKTA_NUDGE_ENABLED) ---------- */

/* Softer pumpkin banner — pumpkin-100 bg, pumpkin-40 rail, pumpkin-10 text.
   Reads as an informational note rather than a warning sticker. */
.okta-preference {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background-color: #fff3ed;
  border-left: 3px solid #d6410b;
  border-radius: 8px;
  color: #782102;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.okta-preference a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.preference-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #d6410b;
}

/* Primary CTA — confident teal pill with subtle vertical gradient. */
.okta-button--primary {
  width: 100%;
  max-width: 340px;
  height: 52px;
  background: linear-gradient(180deg, #00ccbc 0%, #00b8a9 100%);
  border-color: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -6px rgba(0, 163, 150, 0.45);
}
.okta-button--primary:hover {
  background: linear-gradient(180deg, #00b8a9 0%, #00a396 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px -6px rgba(0, 163, 150, 0.55);
}
.okta-button--primary:focus {
  border-color: transparent;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 204, 188, 0.35),
    0 8px 20px -6px rgba(0, 163, 150, 0.45);
}
.okta-button--primary .okta-logo path {
  fill: #ffffff;
}

.provider-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 14px;
  color: #707c7c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.provider-divider::before,
.provider-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}
.provider-divider span {
  padding: 0 14px;
}

/* ============================================================
   Dark mode — layered planes inverted in tone.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #0a0d0d;
    color: #f1f4f4;
  }
  body::before {
    background: #01857c;
  }
  body::after {
    background: #440063;
  }

  .card {
    background-color: #1c2222;
    background-image: linear-gradient(90deg, #01857c 0%, #c11f91 100%);
    box-shadow:
      0 24px 60px -16px rgba(0, 0, 0, 0.65),
      0 8px 20px -6px rgba(0, 0, 0, 0.45);
  }
  .card__instructions {
    color: #f1f4f4;
  }
  .card__instructions em {
    color: #a1afaf;
  }
  .card__instructions::after {
    background: #00ccbc;
  }
  .deliveroo-logo {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
  }
  .button {
    color: #f1f4f4;
    border-color: rgba(255, 255, 255, 0.12);
  }
  .button:focus,
  .button:hover {
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  }
  /* GSI button renders filled_black in dark mode and otherwise blends into
     the card. Wrap it in a brand-tinted frame so it reads as a distinct
     control — especially when it sits beneath the teal Okta primary in the
     nudge layout. */
  #buttonDiv {
    border: 1px solid rgba(0, 204, 188, 0.45);
    border-radius: 8px;
    padding: 1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  }
  .okta-button {
    background-color: #1c2222;
    border-color: rgba(255, 255, 255, 0.18);
    color: #f1f4f4;
  }
  .okta-button:hover {
    background-color: #0e5454;
    border-color: rgba(0, 204, 188, 0.40);
    box-shadow: 0 4px 14px -4px rgba(0, 204, 188, 0.32);
  }
  .okta-button:focus {
    border-color: #00ccbc;
    box-shadow: 0 0 0 3px rgba(0, 204, 188, 0.30);
  }

  .okta-preference {
    background-color: #9a2d05;
    border-left-color: #fcaf8b;
    color: #ffe1d4;
  }
  .preference-icon {
    color: #fcaf8b;
  }

  .okta-button--primary {
    box-shadow: 0 8px 22px -6px rgba(0, 204, 188, 0.55);
  }
  .okta-button--primary:hover {
    box-shadow: 0 10px 28px -6px rgba(0, 204, 188, 0.65);
  }
  .okta-button--primary:focus {
    box-shadow:
      0 0 0 3px rgba(0, 204, 188, 0.45),
      0 8px 22px -6px rgba(0, 204, 188, 0.55);
  }

  .provider-divider {
    color: #a1afaf;
  }
  .provider-divider::before,
  .provider-divider::after {
    background-color: rgba(255, 255, 255, 0.12);
  }
}
