/* Registration only. The JS adapter inserts this after the invite-code field. */

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha {
  --sgc-register-captcha-accent: var(--sgc-accent, var(--sgc-auth-red, #d92f36));
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 14px;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  column-gap: 10px;
  align-items: start;
  width: 100%;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #e6ded8;
  border-radius: 10px;
  background: #fffcfa;
  color: #24282d;
  font: 400 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em;
  outline: 0;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-input::placeholder {
  color: #8a9098;
  letter-spacing: normal;
  opacity: 1;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-input:focus,
.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-input:focus-visible,
.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-image-button:focus-visible {
  border-color: var(--sgc-register-captcha-accent);
  outline: 2px solid var(--sgc-register-captcha-accent);
  outline-offset: 2px;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-image-button {
  display: block;
  box-sizing: border-box;
  width: 112px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6ded8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-error {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-error {
  margin: 5px 0 0;
  color: #c7353d;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-error[hidden] {
  display: none !important;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha[data-sgc-captcha-state="error"] .sgc-register-captcha-input,
.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha[data-sgc-captcha-state="expired"] .sgc-register-captcha-input {
  border-color: #c7353d;
  background: #fff5f5;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha[data-sgc-captcha-state="loading"] .sgc-register-captcha-image-button {
  opacity: .55;
  cursor: progress;
}

.createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha :is(button, input):disabled {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-height: 800px) {
  .createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha {
    margin-bottom: 10px;
  }

  .createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-input,
  .createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-image-button {
    height: 48px;
  }
}

@media (max-width: 360px) {
  .createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-controls {
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 8px;
  }

  .createNewCount.sgc-auth-mall-redwhite-v1 .sgc-register-captcha-image-button {
    width: 100px;
  }
}
