* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

.register-page {
  width: 100%;
  min-height: 100vh;
  padding: 70px 48px 48px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  position: relative;
  width: 52px;
  height: 52px;
  border: 3px solid #19c4bd;
  border-radius: 50%;
}

.bag-handle {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 22px;
  height: 15px;
  border: 3px solid #19c4bd;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.bag-body {
  position: absolute;
  left: 10px;
  top: 22px;
  width: 31px;
  height: 21px;
  border: 3px solid #19c4bd;
  border-radius: 7px;
}

.wave {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, #1185ff 0%, #01bfa6 100%);
  border-radius: 50%;
}

.wave::before,
.wave::after {
  content: "";
  position: absolute;
  background: #ffffff;
  opacity: 0.9;
}

.wave::before {
  left: 5px;
  top: 11px;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(-22deg);
}

.wave::after {
  left: 7px;
  top: 7px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(28deg);
}

.brand-small {
  margin-top: 6px;
  color: #1675bb;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.form-panel {
  margin-top: 90px;
}

h1 {
  margin: 0 0 42px;
  color: #050505;
  font-size: 31px;
  line-height: 42px;
  text-align: center;
  font-weight: 800;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid #f0f1f4;
}

.field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: #111827;
  font-size: 16px;
  background: transparent;
  border: 0;
  outline: 0;
}

.field input::placeholder {
  color: #8a94a3;
}

.captcha-field input,
.sms-field input {
  padding-right: 150px;
}

.captcha-button {
  position: absolute;
  right: 26px;
  top: 50%;
  width: 108px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  background: #f7fbff;
  border-radius: 2px;
  transform: translateY(-50%);
}

#captchaCanvas {
  width: 108px;
  height: 34px;
  display: block;
}

.send-button {
  position: absolute;
  right: 0;
  top: 50%;
  width: 132px;
  height: 48px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  background: #1185ff;
  border-radius: 6px;
  transform: translateY(-50%);
}

.send-button:disabled {
  background: #a9cffa;
}

.invite-field input {
  color: #000000;
  font-weight: 500;
}

.agreement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 32px;
  color: #5f6b7a;
  font-size: 15px;
  line-height: 24px;
}

.agreement input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  margin-right: 2px;
  border: 2px solid #5b45ff;
  border-radius: 50%;
}

.agreement input:checked + .radio-mark {
  box-shadow: inset 0 0 0 4px #ffffff;
  background: #6c4cff;
}

.agreement a {
  color: #664dff;
  text-decoration: none;
}

.register-button {
  width: 100%;
  height: 59px;
  margin-top: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  background: #1084ff;
  border-radius: 999px;
}

.download-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.download-button {
  min-width: 172px;
  height: 52px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  background: #1084ff;
  border-radius: 999px;
}

.register-button:disabled,
.download-button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.78;
}

.register-button.is-loading::before,
.download-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  max-width: calc(100vw - 48px);
  padding: 11px 16px;
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  background: rgba(17, 24, 39, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 420px) {
  .register-page {
    padding-left: 32px;
    padding-right: 32px;
  }

  .form-panel {
    margin-top: 76px;
  }

  .captcha-field input,
  .sms-field input {
    padding-right: 138px;
  }

  .captcha-button {
    right: 10px;
  }

  .send-button {
    width: 124px;
  }

  .download-button {
    min-width: 146px;
  }
}
