/* The sign-up component (public/js/lib/signup.js; watch-phone.png frame 3, player-phone.png frames 3 and 4, d2-d-guest.png): the same markup in a sheet, in a modal and on the /signin page.
   The numbers are the mockups': the phone's (the 390 pt frames) and, from 700 px up, the modal's (the 1440 pt frame). The two phone frames of the wall and of the page disagree by a point or two
   in four margins (`data-context="wall"` is the wall's frame, the rest the page's); the wide frame draws the providers first and its own sizes. Nothing here is placed by a coordinate.
   Only transform and opacity move (the shake, the pops and the mark are the script's springs); colours may transition on a small box. */
.su-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; color: #fff; padding-right: 30px; overflow-wrap: anywhere; }
.su-lock { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 197, 61, .14); border: 1px solid rgba(255, 197, 61, .5); color: var(--gold); margin-bottom: 14px; }
.su-lock svg { width: 24px; height: 24px; }
.sh-head[data-context="wall"] { padding-top: 26px; }
.su-lede { font-size: 15px; line-height: 1.45; color: #c4c4cc; margin: 8px 0 20px; }
.su-email { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.su-form { display: flex; flex-direction: column; }
.su-ts { display: flex; justify-content: center; }
.su-ts:empty { display: none; }

.su-field { display: block; width: 100%; height: 54px; border-radius: 12px; background: #1d1d22; border: 1px solid #34343a; padding: 0 16px; font-family: var(--body); font-size: 17px; color: #fff; margin-bottom: 12px; transition: border-color var(--fade-ms); user-select: text; -webkit-user-select: text; }
.su-field::placeholder { color: #71717a; opacity: 1; }
.su-field:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.su-field[aria-invalid="true"] { border-color: #ff8a7a; }
.su-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: normal; transition: background-color var(--fade-ms); }
.su-btn svg { width: 20px; height: 20px; margin-top: -2px; flex: none; }
.su-gold { background: var(--gold); color: #111; }
.su-gold:hover { background: var(--gold-hi); }
.su-white { background: #fff; color: #111; font-family: var(--body); font-weight: 600; font-size: 17px; }
.su-white + .su-white { margin-top: 10px; }
.su-white:hover { background: var(--softer); }
.su-white svg { width: 20px; height: 20px; margin-top: 0; }
.su-note { font-size: 13px; line-height: normal; color: var(--faint); text-align: center; margin-top: 9px; overflow-wrap: anywhere; }
.su-note[hidden] { display: none; }
.su-note[data-kind="error"] { color: #ff8a7a; }
.su-note[data-kind="done"] { color: var(--gold); font-weight: 600; }
.su-or { display: flex; align-items: center; gap: 12px; color: #71717a; font-size: 13px; margin: 18px 0; }
.su-or::before, .su-or::after { content: ""; flex: 1; height: 1px; background: #2e2e33; }
.su-providers { display: flex; flex-direction: column; }

.su-news { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 20px; text-align: left; font-size: 14px; line-height: 1.4; color: #d4d4d8; }
.su-box { position: relative; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid #52525b; transition: background-color var(--fade-ms), border-color var(--fade-ms); }
.su-news.is-on .su-box { background: var(--gold); border-color: var(--gold); }
.su-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #111; }
.su-mark svg { width: 14px; height: 14px; }
.su-news:focus-visible .su-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.su-legal { font-size: 12px; line-height: 1.4; color: #71717a; margin-top: 14px; }
.su-legal a { color: var(--muted); text-decoration: underline; }
.su-switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.su-link { color: #fff; font-weight: 700; touch-action: manipulation; }
.su-link b { font-weight: 600; }
.su-body[data-context="wall"] .su-news { margin-top: 18px; }
.su-body[data-context="wall"] .su-legal { margin-top: 12px; }

/* the code's step: six boxes; the ring and the fill are layers that fade (opacity), never a border that grows */
.su-codes { display: flex; gap: 9px; margin: 4px 0 6px; }
.su-cell { position: relative; flex: 1 1 0; min-width: 0; height: 62px; border-radius: 12px; background: #1d1d22; border: 1px solid #34343a; transition: background-color var(--fade-ms), border-color var(--fade-ms); }
.su-cell.is-filled { background: #26262d; border-color: #4a4a52; }
.su-digit { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; background: none; color: #fff; text-align: center; font-family: var(--display); font-weight: 800; font-size: 30px; caret-color: var(--gold); user-select: text; -webkit-user-select: text; }
.su-digit:focus-visible { outline: none; }
.su-ring { position: absolute; inset: -1px; border-radius: 12px; border: 2px solid var(--gold); opacity: 0; pointer-events: none; transition: opacity var(--fade-ms) ease-out; }
.su-cell:focus-within .su-ring { opacity: 1; }
.su-codes.is-error .su-cell { border-color: #ff8a7a; }
.su-codes.is-error .su-ring { border-color: #ff8a7a; }
.su-codes.is-done .su-cell { background: rgba(255, 197, 61, .14); border-color: var(--gold); }
.su-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.su-links b { color: #fff; font-weight: 600; white-space: nowrap; }
.su-links > :last-child { margin-left: auto; }                                  /* the narrowest phones: Change email goes under, on the right, in one piece */
.su-resend { min-width: 0; }
.su-body[data-step="code"] .su-note { margin-top: 22px; }

@media (min-width: 700px) {
  .sh-head[data-context="wall"] { padding-top: 30px; }
  .su-lock { width: 50px; height: 50px; }
  .su-lock svg { width: 22px; height: 22px; }
  .su-lede { margin: 8px 0 18px; }
  .su-field { height: 50px; font-size: 16px; margin-bottom: 10px; }
  .su-btn { height: 50px; border-radius: 12px; }
  .su-gold { font-size: 19px; }
  .su-white { font-size: 16px; }
  .su-btn svg, .su-white svg { width: 19px; height: 19px; }
  .su-or { margin: 16px 0; }
  .su-news { margin-top: 16px; }
  .su-body[data-context="wall"] .su-news { margin-top: 16px; }
  .su-box { flex-basis: 20px; width: 20px; height: 20px; border-radius: 5px; }
  .su-legal { margin-top: 12px; line-height: normal; }                      /* the wide frame draws no line-height on it (a 14 px line), the phone frames 1.4 */
  .su-body[data-context="wall"] .su-legal { margin-top: 12px; }
  .su-note { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .su-ring, .su-cell, .su-box { transition-duration: var(--fade-ms); }
}
