.r_popup_confirm {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 3;
}

.glass-frame {
  bottom: 0%;
  width: 99%;
  background: #e2e2e238 0% 0% no-repeat padding-box;
  border: 2px solid #ffffff42;
  border-radius: 0.5rem 0.5rem 0 0;
  opacity: 1;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.form {
  width: 5.7rem;
  height: 100%;
  gap: 0.35rem;
  padding: 0.5em 0;
}

.title {
  color: white;
  font-size: 0.5rem;
}

.signup-form {
  width: 5.7rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.signup-form .btn-close{
  position: absolute;
  top: 0.23rem;
  right: 0.23rem;
  width: 0.7rem;
  height: 0.7rem;
  background-image: url('./img/ic-close.svg');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.form-control {
  width: 5.7rem;
  height: 0.84rem;
  position: relative;
}

.error-msg {
  position: absolute;
  bottom: -0.3rem;
  left: 0.3rem;
  font: normal normal normal 0.24rem/0.29rem SF Pro;
  color: red;
}

.pass-form {
  display: none;
}

.prefix {
  display: flex;
  gap: 0.1rem;
  position: absolute;
  top: 0.15rem;
  left: 0.3rem;
  z-index: 2;
}

.flag {
  width: 0.54rem;
  height: 0.54rem;
  object-fit: contain;
}

.prefix .prefix-text {
  color: #ffffff;
  font: normal normal normal 0.24rem/0.29rem SF Pro;
  line-height: 0.54rem;
}

input {
  position: absolute;
  width: 3.69rem;
  height: 0.84rem;
  padding: 0 0.5rem;
  border: none;
  outline: none;
  background: #9696967a 0% 0% no-repeat padding-box;
  border-radius: 42px;
  opacity: 1;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: #ffffff;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}

::-webkit-input-placeholder {
  color: #dddddd;
}

.phone-input {
  padding-left: 1.5rem;
}

.suffix {
  width: 2rem;
  height: 0.84rem;
  position: absolute;
  top: 0;
  right: 0;
}

.btn:acitve {
  transform: scale(0.98);
}

.btn {
  cursor: pointer;
  border: none;
}

.btn-code{
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 0.84rem;
  background: #ffffff 0% 0% no-repeat padding-box;
  border-radius: 50px;
  font-size: 0.24rem;
  font-weight: bold;
  border: none;
}

.no-code-text {
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 0;
  color: #d0d0d0;
  font: normal normal normal 0.24rem/0.29rem SF Pro;
}

.signup-form .btn-signup {
  width: 5.7rem;
  height: 0.84rem;
  background: transparent linear-gradient(90deg, #ff2700 0%, #ff00ba 100%) 0% 0% no-repeat padding-box;
  box-shadow: inset 0px 3px 6px #ffffff29;
  border-radius: 50px;
  color: #ffffff;
  font: normal normal bold 0.28rem/0.34rem SF Pro;
}

.r_popup_confirm2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: none;
}
.r_popup_confirm2 .popup_main2 {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 6.9rem;
  background: #e2e2e238 0% 0% no-repeat padding-box;
  border: 2px solid #a3a3a3;
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.r_popup_confirm2 .popup_main2 .popup_title2 {
  height: 0.9rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.4rem;
  font-weight: 700;
  padding: 0rem 0.7rem;
  line-height: 0.5rem;
  position: relative;
  border-radius: 0.1rem 0.1rem 0 0;
  padding-top: 0.2rem;
  text-transform: uppercase;
}

.r_popup_confirm2 .popup_main2 .tnc_content {
  font-size: 0.28rem;
  padding: 0.3rem 0.8rem;
  text-align: justify;
  color: #ffffff;
  height: 400px;
  overflow: scroll;
  ol {
    margin-top: 0.3rem;
    padding: 0;
    li {
      list-style: decimal;
      margin-bottom: 0.3rem;
    }
  }
}
.r_popup_confirm2 .popup_main2 .tnc_btn_group {
  margin-top: 0.3rem;
}

.r_popup_confirm2 .popup_main2 .box_popup_btn {
  width: 100%;
  height: 0.84rem;
  line-height: 0.84rem;
  display: flex;
  font-size: 0.28rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.r_popup_confirm2 .popup_main2 .box_popup_btn .r-btn {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23137254901960785);
  text-align: center;
  display: inline-block;
  font-size: 0.28rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 100%;
  max-width: 4.2rem;
  margin: 0 0.25rem;
  border: none;
}

.r_popup_confirm2 .popup_main2 .box_popup_btn .btn-close {
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  border-radius: 42px;
  background: rgba(0, 0, 0, 0) 0 0 no-repeat padding-box;
  border: 1px solid #fff;
}

.r_popup_confirm2 .popup_main2 .box_popup_btn .btn-ok {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(0, 0, 0, 0) linear-gradient(90deg, #ff2700, #ff00ba) 0 0 no-repeat padding-box;
  border-radius: 42px;
}

#tipsPopup .popup_main2 .popup_title2 {
  font-size: 0.08rem;
}

#tipsPopup .popup_main2 {
  width: 1.6rem;
}

.tips-content {
  text-align: center;
  font-size: 0.06rem;
  color: #d0d0d0;
  padding: 0.1rem 0.1rem;
  margin: 10px 0 25px 0;
}

.popup_main2 .btn-tips-close {
  position: absolute;
  width: 0.2rem;
  height: 0.2rem;
  top: 0.05rem;
  right: 0.05rem;
  background-image: url('./img/ic-close.svg');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

#tipsClose {
  max-width: 0.6rem;
  height: 0.15rem;
}

/* Absolute Center Spinner */
.loading {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
  background: -webkit-radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (min-width: 667px) {
  .glass-frame {
    width: 100%;
    height: fit-content;
  }

  .form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4rem;
  }

  .title {
    font-size: 0.25rem;
  }

  .prefix {
    top: -0.05rem;
  }

  .prefix-text {
    font-size: 0.15rem !important;
  }

  .flag {
    width: 0.24rem;
  }

  .signup-form {
    width: fit-content;
    gap: 0.37rem;
  }

  .form-control {
    width: auto;
    height: 0.24rem;
  }

  .phone-input {
    padding-left: 1.4rem;
  }

  input {
    width: 1.1rem;
    height: 0.44rem;
    font-size: 0.11rem;
  }

  .suffix {
    width: 1rem;
    height: 0.44rem;
  }

  .btn-code {
    font-size: 0.14rem;
    width: 1.5rem;
    height: 0.44rem;
  }

  .signup-form .btn-signup {
    margin-top: 0.4rem;
    width: 3rem;
    height: 0.44rem;
    font-size: 0.15rem;
  }

  .no-code-text {
    font-size: 0.15rem;
    top: 0.6rem;
  }

  .error-msg {
    bottom: -0.45rem;
    font-size: 0.14rem;
  }
}

@media (min-width: 1024px) {
  .glass-frame {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0.1rem;
    width: 2.5rem;
  }

  .title {
    display: none;
  }

  .signup-form .btn-close {
    width: 0.2rem;
    height: 0.2rem;
  }

  .form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .prefix {
    top: -0.12rem;
    left: 0.1rem;
  }

  .prefix-text {
    font-size: 0.08rem !important;
  }

  .flag {
    width: 0.18rem;
  }

  .signup-form {
    gap: 0.2rem;
  }

  .form-control {
    width: auto;
    height: 0.24rem;
  }

  .phone-input {
    padding-left: 0.6rem;
  }

  .code-input {
    padding: 0 0.2rem;
  }

  input {
    width: 0.8rem;
    height: 0.3rem;
    font-size: 0.08rem;
  }

  .suffix {
    width: 0.8rem;
    height: 0.3rem;
  }

  .btn-code {
    width: 0.9rem;
    height: 0.3rem;
    font-size: 0.08rem;
  }

  .signup-form .btn-signup {
    margin-top: 0;
    width: 1.9rem;
    height: 0.3rem;
    font-size: 0.12rem;
  }

  .no-code-text {
    font-size: 0.08rem;
    top: 0.3rem;
  }

  .error-msg {
    bottom: -0.28rem;
    font-size: 0.08rem;
    left: 0.1rem;
  }

  .r_popup_confirm2 .popup_main2 {
    width: 3rem;
  }

  .r_popup_confirm2 .popup_main2 .popup_title2 {
    height: 0.2rem;
    color: #ffffff;
    font-size: 0.1rem;
    line-height: 0;
  }

  .r_popup_confirm2 .popup_main2 .tnc_content {
    font-size: 0.06rem;
    text-align: justify;
    color: #ffffff;
    height: 1.7rem;
    padding: 0rem 0.3rem;
    ol {
      margin-top: 0.2rem;
      li {
        margin-bottom: 0.2rem;
      }
    }
  }

  .r_popup_confirm2 .popup_main2 .tnc_btn_group {
    margin-top: 0.1rem;
  }

  .r_popup_confirm2 .popup_main2 .box_popup_btn {
    height: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .r_popup_confirm2 .popup_main2 .box_popup_btn .r-btn {
    font-size: 0.06rem;
    max-width: 1rem;
  }
}
