/* The Registration window: over the page, in the login box's style. On a phone it rises from the bottom. */
.reg-veil { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(13, 30, 66, .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.reg-veil[hidden] { display: none; }
.reg { position: relative; width: min(440px, 100%); padding: 26px 26px 20px; border-radius: 24px; background: #fff; box-shadow: 0 40px 80px -30px rgba(10, 30, 80, .6), 0 0 0 3px rgba(255, 255, 255, .7); animation: reg-in .45s var(--spring); }
@keyframes reg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.reg-art { position: absolute; right: 18px; top: -58px; height: 104px; width: auto; filter: drop-shadow(0 10px 10px rgba(20, 50, 100, .25)); pointer-events: none; }
.reg-x { position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 12px; background: #f1f5fb; color: var(--muted); font: 800 20px/1 Nunito, sans-serif; cursor: pointer; }
.reg-x:hover { background: #e6edf8; color: var(--ink); }
.reg-k { margin: 22px 0 2px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.reg h2 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: .3px; color: var(--ink); }
.reg-sub { margin: 8px 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ink2); }
.reg-f { display: block; margin-top: 12px; }
.reg-f span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .2px; }
.reg-f input { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid #d5deea; background: #f7faff; padding: 0 12px; font: 600 16px Nunito, sans-serif; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.reg-f input:focus { border-color: #8fb0ff; background: #fff; box-shadow: 0 0 0 4px rgba(47, 102, 245, .12); }
.reg-f.bad input { border-color: #ef9ab0; background: #fff7f9; }
.reg-f small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.reg-f.bad small { color: #c42d55; }
/* Gender: two choices side by side, nothing picked at first (signin.js) */
.reg-gen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reg-gen label { position: relative; display: block; cursor: pointer; }
.reg-gen input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.reg-f .reg-gen span { display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; border-radius: 12px; border: 1.5px solid #d5deea; background: #f7faff; font: 800 15.5px Nunito, sans-serif; letter-spacing: 0; color: var(--ink2); transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.reg-gen label:hover span { border-color: #b7c8e4; }
.reg-f .reg-gen input:checked + span { border-color: var(--blue); background: #eef3ff; color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 102, 245, .12); }
.reg-gen input:focus-visible + span { outline: 2px solid #8fb0ff; outline-offset: 2px; }
.reg-f.bad .reg-gen span { border-color: #ef9ab0; background: #fff7f9; }
.reg .gb-msg { margin-top: 14px; }
.reg-go { width: 100%; height: 50px; margin-top: 18px; border: 0; border-radius: 14px; color: #fff; font-family: var(--disp); font-size: 21px; letter-spacing: .4px; cursor: pointer;
  background: linear-gradient(#5b8cff, var(--blue)); box-shadow: 0 4px 0 #1f47b8, 0 14px 24px -12px rgba(47, 102, 245, .8); transition: transform .2s var(--spring); }
.reg-go:hover { transform: translateY(-2px); }
.reg-alt { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.reg-alt a { color: var(--blue); font-weight: 900; cursor: pointer; }
.reg-note { margin: 12px 0 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); }

@media (max-width: 680px) {
  .reg-veil { place-items: end stretch; padding: 0; }
  .reg { width: 100%; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation-name: reg-up; }
  @keyframes reg-up { from { transform: translateY(40px); opacity: 0; } }
  .reg-art { height: 88px; top: -48px; right: 14px; }
  .reg h2 { font-size: 27px; }
}
