/**
 * The code step.
 *
 * A modal, unlike the terms panel, because this one is genuinely the next step:
 * there is no account yet and nothing behind it to look at. It can still be
 * closed — "use a different address" — because somebody who mistyped their
 * email must be able to start again without being trapped.
 */
.sc-wrap {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 20, 35, .55);
  backdrop-filter: blur(3px);
  font: 400 14px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sc-card {
  width: min(420px, 100%);
  background:var(--paper,#fff);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10, 20, 40, .3);
  padding: 28px 26px 22px;
  color: #14202f;
  text-align: center;
}
.sc-card small {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .12em;
  color: #1f5fd0;
  margin-bottom: 6px;
}
.sc-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 680; }
.sc-card > p { margin: 0 0 18px; font-size: 13.5px; opacity: .8; }
.sc-card b { font-weight: 620; }

.sc-code {
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #cdd7e4;
  border-radius: 12px;
  background:var(--sd-sunk,#f7f9fc);
  color: #14202f;
  /* Tabular figures, so six digits do not shuffle as they are typed. */
  font: 650 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: 0;
}
.sc-code:focus-visible { border-color: #1f5fd0; box-shadow: 0 0 0 3px rgba(31, 95, 208, .16); }

.sc-go {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #1769ff;
  color: #fff;
  font: 650 15px/1 inherit;
  cursor: pointer;
}
.sc-go:hover:not(:disabled) { background: #1257d8; }
.sc-go:disabled { opacity: .55; cursor: default; }
.sc-go:focus-visible { outline: 2px solid #1769ff; outline-offset: 2px; }

.sc-more { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.sc-more button {
  border: 0; background: transparent; cursor: pointer;
  font: 550 12.5px/1 inherit; color: #1f5fd0;
}
.sc-more button:hover:not(:disabled) { text-decoration: underline; }
.sc-more button:disabled { opacity: .45; cursor: default; }

.sc-note { margin: 12px 0 0; font-size: 13px; min-height: 1em; }
.sc-note[data-tone="good"] { color: #15803d; }
.sc-note[data-tone="bad"] { color: #b3253c; }
.sc-small { margin: 14px 0 0; font-size: 11.5px; opacity: .6; }

/* The page behind should not scroll while this is up. */
body.sc-open { overflow: hidden; }

html[data-theme="dark"] {
  .sc-card { background: #151d29; color: #e6edf6; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
  .sc-code { background: #0f1621; border-color: #2c3a4d; color: #e6edf6; }
  .sc-card small, .sc-more button { color: #6ea8ff; }
  .sc-note[data-tone="good"] { color: #7ad9a3; }
  .sc-note[data-tone="bad"] { color: #ff9aa8; }
}
