/* TungstenCloud Auth Phone Selector V5.14
 * One border, one seam, one selected-country flag. Applies to login/register;
 * forget.htm deliberately mounts on #login so it inherits the same component.
 */
body.tc-auth-page #login .input-with-select.el-input-group--prepend,
body.tc-auth-page #regist .input-with-select.el-input-group--prepend {
  --tc-phone-prefix: 100px;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  vertical-align: top !important;
}

body.tc-auth-page #login .input-with-select.el-input-group--prepend:focus-within,
body.tc-auth-page #regist .input-with-select.el-input-group--prepend:focus-within {
  border-color: var(--color-primary, #1769e0) !important;
  box-shadow: 0 0 0 2px rgba(23,105,224,.08) !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend {
  position: relative !important;
  display: block !important;
  flex: 0 0 var(--tc-phone-prefix) !important;
  width: var(--tc-phone-prefix) !important;
  min-width: var(--tc-phone-prefix) !important;
  max-width: var(--tc-phone-prefix) !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend::after,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend::after {
  content: "" !important;
  position: absolute !important;
  z-index: 8 !important;
  top: 8px !important;
  right: 0 !important;
  width: 1px !important;
  height: 26px !important;
  background: #e2e8f0 !important;
  pointer-events: none !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-select,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-select,
body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input__inner,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input__inner {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  line-height: 42px !important;
  margin: 0 !important;
  padding: 0 24px 0 35px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #334155 !important;
  font-size: 12px !important;
  background-color: #fff !important;
  background-image: none !important;
}

body.tc-auth-page #login .tc-v514-selected-flag,
body.tc-auth-page #regist .tc-v514-selected-flag {
  position: absolute !important;
  z-index: 12 !important;
  left: 9px !important;
  top: 50% !important;
  width: 18px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  object-fit: cover !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 1px rgba(15,23,42,.10) !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input__suffix,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input__suffix {
  top: 0 !important;
  right: 5px !important;
  height: 42px !important;
  line-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input__suffix-inner,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input__suffix-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
}

body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-select__caret,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-select__caret {
  height: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body.tc-auth-page #login .input-with-select.el-input-group--prepend > .el-input__inner,
body.tc-auth-page #regist .input-with-select.el-input-group--prepend > .el-input__inner {
  display: block !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  line-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
}

.tc-v514-country-option {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}
.tc-v514-country-option img {
  width: 19px !important;
  height: 13px !important;
  border-radius: 2px !important;
  object-fit: cover !important;
  flex: 0 0 auto !important;
  box-shadow: 0 0 0 1px rgba(15,23,42,.10) !important;
}

@media (max-width: 900px) {
  body.tc-auth-page #login .input-with-select.el-input-group--prepend,
  body.tc-auth-page #regist .input-with-select.el-input-group--prepend {
    --tc-phone-prefix: 94px;
    border-radius: 9px !important;
  }
  body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input__inner,
  body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input__inner {
    padding-left: 34px !important;
    padding-right: 23px !important;
    font-size: 12px !important;
  }
  body.tc-auth-page #login .tc-v514-selected-flag,
  body.tc-auth-page #regist .tc-v514-selected-flag {
    left: 8px !important;
    width: 18px !important;
    height: 12px !important;
  }
}


/* V5.14: selected-country flag is rendered ONLY by .tc-v514-selected-flag.
   Disable all legacy background/overlay flag mechanisms to prevent CN + selected flag overlap. */
body.tc-auth-page #login .input-with-select .el-input-group__prepend,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend,
body.tc-auth-page #forget .input-with-select .el-input-group__prepend,
body.tc-auth-page #login .input-with-select .el-input-group__prepend .el-input__inner,
body.tc-auth-page #regist .input-with-select .el-input-group__prepend .el-input__inner,
body.tc-auth-page #forget .input-with-select .el-input-group__prepend .el-input__inner {
  background-image: none !important;
  background-repeat: no-repeat !important;
}

body.tc-auth-page #login .tc-auth-selected-flag,
body.tc-auth-page #regist .tc-auth-selected-flag,
body.tc-auth-page #forget .tc-auth-selected-flag,
body.tc-auth-page #login .tc-safe-phone-flag,
body.tc-auth-page #regist .tc-safe-phone-flag,
body.tc-auth-page #forget .tc-safe-phone-flag,
body.tc-auth-page #login .tc-v513-selected-flag,
body.tc-auth-page #regist .tc-v513-selected-flag,
body.tc-auth-page #forget .tc-v513-selected-flag {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
