/* V125 — 1GO-style Sign In / Sign Up overlay on #/login and #/register
   1GO CSS is authored at 16px rem. This app's html rem is width/10 (~40px),
   so overlay internals use em against a 16px base on .co-auth. Width stays 10rem. */

html.co-auth-open,
html.co-auth-open body {
  overflow: hidden !important;
  background: #121212 !important;
  height: 100% !important;
}

html.co-auth-open #app {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.co-auth-open .tabbar__container,
html.co-auth-open #app .tabbar__container,
html.co-auth-open #co-dl-bar,
html.co-auth-open .co-dl-bar,
html.co-auth-open #co-guest-nav,
html.co-auth-open .co-guest-nav,
html.co-auth-open .p8-home__nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.co-auth-open {
  --co-dl-h: 0px;
}

html.co-auth-open .van-overlay,
html.co-auth-open .van-popup,
html.co-auth-open .van-toast,
html.co-auth-open .van-notify,
html.co-auth-open .van-dialog {
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 400 !important;
}

html.co-auth-open .captcha,
html.co-auth-open .slide-captcha,
html.co-auth-nocaptcha .captcha,
html.co-auth-nocaptcha .slide-captcha,
html.co-auth-nocaptcha [class*="SlideCaptcha"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.co-auth {
  --co-auth-bg: #202327;
  --co-auth-input: #1e2121;
  --co-auth-border: #3a4142;
  --co-auth-lime: #24ee89;
  --co-auth-lime-2: #9fe871;
  --co-auth-muted: #98a7b5;
  --co-auth-ph: #7b868c;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10rem;
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--co-auth-bg);
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
}

.co-auth *,
.co-auth *:before,
.co-auth *:after {
  box-sizing: border-box;
}

.co-auth__scroll {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.co-auth__hero {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 55.9%;
  overflow: hidden;
  flex: none;
}

.co-auth__hero-img,
.co-auth__hero-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

.co-auth__logo {
  position: absolute;
  z-index: 4;
  top: 0.5em;
  left: 0.85em;
  height: 2.55em;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.co-auth__close {
  position: absolute;
  z-index: 5;
  top: 0.55em;
  right: 0.55em;
  width: 1.75em;
  height: 1.75em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(80, 86, 92, 0.72);
  color: #c5c8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.co-auth__close svg {
  width: 0.85em;
  height: 0.85em;
  display: block;
}

.co-auth__form {
  position: relative;
  z-index: 2;
  margin-top: -0.85em;
  padding: 2em 2em 1.5em;
  background: var(--co-auth-bg);
}

.co-auth__title {
  margin: 0;
  height: 1.25em;
  color: #fff;
  font-size: 1.125em;
  font-weight: 700;
  line-height: 1.25em;
  text-transform: capitalize;
}

.co-auth__field {
  margin-top: 0.75em;
  height: 3em;
  border-radius: 0.5em;
  border: 1px solid var(--co-auth-border);
  background: var(--co-auth-input);
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 0.5em 0 0.75em;
}

.co-auth__field:focus-within {
  border-color: var(--co-auth-lime);
}

.co-auth__field.is-err {
  border-color: #ff5b6e;
}

.co-auth__cc {
  flex: none;
  color: #fff;
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1;
  padding-right: 0.55em;
  border-right: 1px solid rgba(167, 177, 179, 0.35);
}

.co-auth__field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 0.875em;
  font-weight: 600;
}

.co-auth__field input::placeholder {
  color: var(--co-auth-ph);
  font-weight: 400;
}

.co-auth__eye {
  flex: none;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a7b1b3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.co-auth__eye svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
}

.co-auth__otp-send {
  flex: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
  padding: 0 0.15em;
  cursor: pointer;
}

.co-auth__otp-send[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.co-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1em;
}

.co-auth__forget {
  color: var(--co-auth-lime);
  font-size: 0.875em;
  line-height: 1em;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.co-auth__submit {
  width: 100%;
  height: 3em;
  margin-top: 2em;
  border: 0;
  border-radius: 0.5em;
  color: #000;
  font-size: 1em;
  font-weight: 800;
  background: linear-gradient(90deg, #24ee89, #9fe871);
  background-image: linear-gradient(90deg, #24ee89, #9fe871);
  box-shadow: 0 0 12px rgba(35, 238, 136, 0.3), inset 0 -2px #1dca6a;
  cursor: pointer;
}

.co-auth__footer {
  margin-top: 1.2em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  color: #fff;
  font-size: 0.875em;
}

.co-auth__create {
  margin-left: 0.1em;
  color: var(--co-auth-lime);
  font-size: 0.875em;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.co-auth__invite-toggle {
  display: flex;
  align-items: center;
  margin-top: 0.75em;
  height: 1.5em;
  color: var(--co-auth-muted);
  font-size: 0.8em;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.co-auth__invite-toggle svg {
  width: 1em;
  height: 1em;
  margin-left: 0.15em;
  transition: transform 0.2s ease;
}

.co-auth__invite-toggle.is-open svg {
  transform: rotate(180deg);
}

.co-auth__invite-err {
  margin: 0.35em 0 0;
  color: #ff5b6e;
  font-size: 0.72em;
  line-height: 1.2;
}

.co-auth__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  margin-top: 0.85em;
  color: var(--co-auth-muted);
  font-size: 0.75em;
  line-height: 1.15em;
}

.co-auth__agree + .co-auth__agree {
  margin-top: 0.5em;
}

.co-auth__check {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.05em;
  border: 0;
  border-radius: 0.3em;
  background: #24ee89;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.co-auth__check.is-off {
  background: transparent;
  border: 1px solid #5f6975;
  color: transparent;
}

.co-auth__check svg {
  width: 0.85em;
  height: 0.85em;
  display: block;
}

.co-auth__agree-link {
  color: #fff;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.co-auth__login-only[hidden],
.co-auth__reg-only[hidden],
.co-auth__reset-only[hidden],
.co-auth__otp-row[hidden] {
  display: none !important;
}

.co-auth__help {
  margin-top: 1.2em;
  color: #fff;
  font-size: 0.875em;
}

.co-auth__footer:not([hidden]) + .co-auth__help,
.co-auth__footer:not([hidden]) + .co-auth__footer + .co-auth__help,
.co-auth__footer + .co-auth__footer:not([hidden]) + .co-auth__help {
  margin-top: 0.45em;
}

.co-auth__help[hidden] {
  display: none !important;
}

.co-auth__help-link {
  margin-left: 0.1em;
  color: #24ee89;
  font-size: 0.875em;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
