.create-body {
  padding: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.panel {
  position: relative;
  z-index: 2;
  width: min(94vw, 480px);
  margin: 6vh auto;
  padding: 34px 30px 38px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(22, 22, 27, 0.72) 0%, rgba(9, 9, 11, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

.field-label {
  display: block;
  font-family: 'SFProDisplay', sans-serif;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: #999;
  margin: 22px 0 8px;
  text-transform: lowercase;
}
.field-label:first-of-type { margin-top: 8px; }

/* ---------- url / text boxes ---------- */
.url-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 12px;
  padding: 3px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: border-color 0.45s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.url-box.focused {
  transform: translateY(-2px);
  border-color: rgba(255, 65, 108, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 65, 108, 0.12), 0 8px 20px rgba(255, 65, 108, 0.15);
}
.url-box.ok {
  border-color: #33d17a;
  box-shadow: 0 0 0 4px rgba(51, 209, 122, 0.12);
}
.url-box.bad {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.12);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.url-prefix {
  font-family: 'SFProDisplay', sans-serif;
  font-size: 13px;
  color: #666;
  user-select: none;
  white-space: nowrap;
  padding: 12px 0;
  flex-shrink: 0;
}

.url-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: 'SFProDisplay', sans-serif;
  font-size: 14px;
  padding: 12px 2px;
}
.url-box input::placeholder { color: #555; }

/* shiny bevel wipe, right -> left, on focus */
.shine {
  position: absolute;
  top: 0; left: -60%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.0) 65%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.url-box.focused .shine {
  /* fast burst at the start, long smooth tail-off — a real high-speed-to-low-speed sweep */
  animation: wipe 1.15s cubic-bezier(0.07, 0.82, 0.13, 1) both;
}
@keyframes wipe {
  from { left: 120%; }
  to { left: -60%; }
}

.hint {
  font-family: 'SFProDisplay', sans-serif;
  font-size: 11.5px;
  color: #666;
  margin: 7px 2px 0;
  min-height: 14px;
  transition: color 0.25s ease;
}
.hint.bad { color: #ff5c5c; }
.hint.ok { color: #33d17a; }

.register-btn {
  width: 100%;
  margin-top: 30px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  font-family: 'SFProDisplay', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.register-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.register-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 65, 108, 0.45);
}

.link-btn {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: #888;
  font-family: 'SFProDisplay', sans-serif;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- loading overlay ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 6, 0.55);
  backdrop-filter: blur(22px) brightness(0.7);
  -webkit-backdrop-filter: blur(22px) brightness(0.7);
}
.loading-overlay.show { display: flex; }
.loading-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* windows-11-ish three-ring spinner */
.win-spinner { position: relative; width: 64px; height: 64px; }
.win-spinner .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ff416c;
  animation: spin 1.1s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite;
}
.win-spinner .ring:nth-child(2) { inset: 9px; border-top-color: rgba(255,255,255,0.7); animation-duration: 1.5s; animation-direction: reverse; }
.win-spinner .ring:nth-child(3) { inset: 18px; border-top-color: #ff4b2b; animation-duration: 0.9s; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text-wrap { overflow: hidden; }
.loading-text {
  font-family: 'SFProDisplay', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: bold;
  background: linear-gradient(90deg, #888 0%, #888 40%, #fff 50%, #888 60%, #888 100%);
  background-size: 720px 100%;
  background-position: -720px 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textswipe 2.5s linear infinite;
}
@keyframes textswipe {
  0%   { background-position: -720px 0; }
  40%  { background-position: 0px 0; }
  100% { background-position: 720px 0; }
}

/* ---------- email verification overlay ---------- */
.verify-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.verify-overlay.show { display: flex; }
.verify-card {
  width: min(92vw, 400px);
  padding: 30px 26px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(22,22,27,0.9), rgba(9,9,11,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}
.verify-card .hint { text-align: center; }
.code-row { display: flex; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.code-digit {
  width: 38px; height: 46px;
  text-align: center;
  font-size: 18px;
  color: white;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: 'SFProDisplay', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}
.code-digit:focus { border-color: #ff416c; }

/* ---------- terms / privacy line under the register button ---------- */
.legal-note {
  font-family: 'SFProDisplay', sans-serif;
  font-size: 11.5px;
  line-height: 1.7;
  color: #777;
  text-align: center;
  margin: 16px 6px 0;
}
.legal-note a {
  color: #ff8aa5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.legal-note a:hover { color: #fff; text-shadow: 0 0 12px rgba(255, 65, 108, 0.8); }
