:root {
    --purple: #F02D2B;
    --purple-2: #c354ff;
    --text: #18184f;
    --muted: #9c9fc4;
    --line: #ececf6;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    background: #fff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.page {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80.5px);
    margin: 0 auto;
    overflow: hidden;
    background: #fff url("/content/images/login/bg-register3.webp") top center / 100% auto no-repeat;
    padding-bottom: 16px;
}

.header {
    position: relative;
    width: 100%;
    padding-top: 40px;
}

.back-btn {
    position: absolute;
    top: 16px;
    left: 14px;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
}

    .back-btn img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.hero-title {
    position: static;
    margin-left: 36px;
    color: #fff;
    margin-top: 0px;
}

    .hero-title h1 {
        margin: 0 0 8px;
        font-size: 21px;
        line-height: 28px;
        font-weight: 500;
    }

    .hero-title p {
        margin: 0;
        font-size: 13px;
        line-height: 14px;
        font-weight: 400;
    }

.login-card {
    position: relative;
    z-index: 3;
    margin: 20px 14px 0;
    padding: 0 14px 18px;
    border-radius: 10px;
    background: transparent;
}

    .login-card::before {
        position: absolute;
        top: 50px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        border-radius: 0 0 10px 10px;
        background: #fff;
        box-shadow: 0 6px 16px 0 rgba(160, 160, 160, 0.20);
        content: "";
    }

    .login-card > * {
        position: relative;
        z-index: 1;
    }

.login-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  height: 50px;
  margin: 0 -14px 12px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  color: #B7A7AE;
  font-size: 17px;
  font-weight: 400;
}
.login-tabs .tab-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.login-tabs .tab-shape {
  opacity: 0;
}
.login-tabs.code-active .tab-shape-code,
.login-tabs.password-active .tab-shape-password {
  opacity: 1;
}
.login-tabs .tab {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50%;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  padding-top: 13px;
  font-size: 15px;
}

.login-tabs .tab.is-active {
  color: #333;
  font-size: 17px;
  font-weight: 600;
}
.login-tabs .tab.is-active::after {
  position: absolute;
  bottom: 3.5px;
  left: 50%;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--purple);
  transform: translateX(-50%);
  content: "";
}
.login-tabs .tab:not(.is-active) {
  color: #B7A7AE;
  padding-top: 18px;
  font-weight: 400;
  background: transparent;
}
.panels {
    position: relative;
}

.login-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

    .login-panel.is-active {
        position: relative;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

.field {
    display: flex;
    align-items: center;
    height: 44px;
    margin-bottom: 10px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #F8F8F8;
}

.field-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 8px;
    object-fit: contain;
}

.phone-field .field-icon {
    margin-right: 5px;
}

.country-select {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 12px;
    padding: 0;
    background: transparent;
    color: #000;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.country-code {
    display: inline-block;
    width: 34px;
    text-align: left;
}

.country-arrow {
    width: 10px;
    height: 10px;
    margin-left: 5px;
    object-fit: contain;
}

.country-menu {
    position: fixed;
    z-index: 20;
    display: none;
    min-width: 88px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(160, 160, 160, 0.2);
}

    .country-menu.is-open {
        display: block;
    }

.country-option {
    display: block;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    color: #000;
    font-size: 14px;
    line-height: 34px;
    text-align: left;
}

    .country-option:active {
        background: #F8F8F8;
    }

.form-tip {
    margin: -4px 0 10px;
    color: #555;
    font-size: 12px;
    line-height: 14px;
}

.field input {
    width: 0;
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #000;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    background: transparent;
}

    .field input::placeholder {
        color: #A9A9A9;
        font-weight: 400;
    }

.captcha-img {
    width: 72px;
    height: 20px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 2px;
    background: linear-gradient(105deg, #eef7f2, #fff, #f3eefb);
}

.code-btn {
    flex: 0 0 auto;
    background: transparent;
    color: #008fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.link-btn {
    flex: 0 0 auto;
    background: transparent;
    color: #008fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.agreement {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    color: #555;
    font-size: 12px;
    line-height: 14px;
    align-items: center;
}

.check {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    padding: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
}

    .check img {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.agreement a {
    color: #008fff !important;
    text-decoration: none;
}

.main-btn {
    display: flex;
    width: 100%;
    height: 44px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(90deg, #F44442 0%, #E34947 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 3px 12px rgb(240 45 43 / 14%);
}
.main-btn.gray {
    background: linear-gradient(90deg, #b8b8b8 0%, #ababab 100%);
}
.other-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0 14px;
    color: #222;
    font-size: 12px;
    line-height: 14px;
}

    .other-title::before,
    .other-title::after {
        width: 100px;
        height: 1px;
        background: #eeedf7;
        content: "";
    }

.oauth {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 42px;
    /* width: 190px; */
    margin: 0 auto 18px;
}

.oauth-item {
    width: 74px;
}

.oauth-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #111442;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    background: transparent;
}

.oauth-icon {
    width: 36px;
    height: 36px;
    display: block;
    margin-bottom: 4px;
    border-radius: 50%;
    object-fit: contain;
}

.new-user-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
}

.new-user-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 375px) {
    .login-card {
        margin-right: 14px;
        margin-left: 14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .tabs {
        margin-right: -14px;
        margin-left: -14px;
    }

    .field {
        padding-right: 12px;
        padding-left: 12px;
    }

    .code-btn {
        font-size: 14px;
    }

    .login-card {
        margin: 20px 14px 0;
    }

    .agreement {
        font-size: 11.5px;
    }

    .check {
        flex: 0 0 14px;
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 392px) {
    .login-card {
        margin: 36px 14px 0;
    }
}


.forgot-card {
    position: relative;
    z-index: 3;
    margin: 26px 14px 0;
    padding: 18px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 16px 0 rgba(160, 160, 160, 0.20);
}

.code-btn{
    color: #008fff !important;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400 !important;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    text-align: right;
    -webkit-tap-highlight-color: transparent;
}



.code-btn:hover,
.code-btn:focus,
.code-btn:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}