:root {
    --auth-bg-top: #2e3144;
    --auth-bg-bottom: #242738;
    --auth-card: #2e3144;
    --auth-field: #494e6b;
    --auth-field-text: #ffffff;
    --auth-muted: #8894ac;
    --auth-border: #6b7084;
    --auth-orange: #ff5212;
    --auth-orange-start: #ff7131;
    --auth-orange-end: #ff4101;
    --auth-purple-start: #7459da;
    --auth-purple-end: #6242d1;
    --auth-blue: #3fa4df;
    --auth-danger: #ef5959;
    --auth-success: #70c68f;
}
* {
    box-sizing: border-box;
}
html {
    min-width: 320px;
    min-height: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    background: linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-bottom) 100%);
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
body.country-modal-open {
    overflow: hidden;
}
button,
input {
    font: inherit;
}
button {
    outline: none;
}
a {
    color: #fff;
    text-decoration: none;
}
a:hover {
    color: var(--auth-orange);
}
.auth-container {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}
.auth-header {
    background: transparent;
}
.auth-header__inner {
    min-height: 106px;
    padding: 25px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.auth-logo {
    display: block;
    width: 120px;
    height: 56px;
}
.auth-logo img {
    display: block;
    width: 120px;
    height: 56px;
    object-fit: contain;
}
.auth-header__nav {
    display: flex;
    align-items: center;
    padding-top: 1px;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}
.auth-header__nav a {
    padding: 0 10px;
}
.auth-stage {
    min-height: 725px;
    margin-top: 60px;
    margin-bottom: 120px;
    padding-left: 690px;
    background-position: 40px bottom;
    background-repeat: no-repeat;
}
.auth-stage--login {
    background-image: url('../images/loginbg.png');
}
.auth-stage--register {
    background-image: url('../images/registerbg.png');
}
.auth-card {
    width: 508px;
    min-height: 725px;
    margin: 0;
    padding: 0 40px;
    border: 1px solid var(--auth-border);
    background: var(--auth-card);
    color: var(--auth-muted);
}
.auth-card--login {
    padding-left: 34px;
    padding-right: 34px;
}
.auth-heading h1 {
    height: 60px;
    margin: 0;
    padding-top: 30px;
    color: #fff;
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    text-align: center;
}
.auth-heading p {
    margin: 0;
    padding: 20px 0;
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 1.6;
}
.auth-card--login .auth-heading p {
    text-align: center;
}
.auth-tabs {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.auth-tab {
    width: 50%;
    height: 50px;
    padding: 0;
    border: 0;
    background: #2d3143;
    color: #fff;
    font-size: 16px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
}
.auth-tab.is-active {
    background: transparent;
    color: #f55117;
    font-weight: 700;
}
.auth-panel {
    display: none;
    width: 100%;
    padding: 25px 0 0;
}
.auth-panel.is-active {
    display: block;
}
.auth-panel[hidden] {
    display: none !important;
}
.auth-phone-field,
.auth-dark-field {
    position: relative;
    width: 100%;
    height: 52px;
    border-radius: 6px;
    background: var(--auth-field);
}
.auth-phone-field {
    display: flex;
    align-items: stretch;
    height: 44px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
}
.auth-country-trigger {
    position: relative;
    flex: 0 0 127px;
    height: 30px;
    margin: 7px 0 0;
    padding: 0 24px 0 11px;
    border: 0;
    border-right: 1px solid #dcdcdc;
    background: transparent;
    color: #fff;
    line-height: 30px;
    cursor: pointer;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap;
}
.auth-country-name {
    display: inline-block;
    width: 58px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: top;
}
.auth-country-code {
    display: inline-block;
    margin-left: 9px;
    vertical-align: top;
}
.auth-country-arrow {
    position: absolute;
    right: 7px;
    top: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #d7d9df;
}
.auth-phone-input,
.auth-dark-field input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: var(--auth-field) !important;
    color: var(--auth-field-text);
    font-size: 16px;
    box-shadow: 0 0 0 1000px var(--auth-field) inset !important;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}
.auth-phone-input {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
}
.auth-dark-field {
    padding: 0 20px;
}
.auth-dark-field input {
    width: 100%;
    height: 52px;
    padding: 0;
    line-height: 52px;
}
.auth-phone-input::placeholder,
.auth-dark-field input::placeholder {
    color: #858da2;
    -webkit-text-fill-color: #858da2;
    opacity: 1;
}
.auth-panel h3 {
    margin: 28px 0 10px;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
}
.auth-panel h3:first-of-type {
    margin-top: 0;
}
.auth-required {
    position: absolute;
    top: 0;
    right: -20px;
    color: #ff6f3d;
    font-size: 14px;
    font-style: normal;
    line-height: 48px;
}
.auth-form-spacer {
    height: 28px;
}
.auth-code-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-code-input {
    width: 224px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    background: #fff;
    color: #555;
    outline: 0;
    font-size: 14px;
}
.auth-code-input::placeholder {
    color: #7c8494;
    opacity: 1;
}
.auth-code-button {
    display: block;
    width: 148px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--auth-blue);
    border-radius: 5px;
    background: #ebf5fb;
    color: var(--auth-blue);
    font-size: 14px;
    cursor: pointer;
}
.auth-code-button:hover:not(:disabled) {
    background: #e2f1fa;
}
.auth-code-button:disabled {
    border-color: #dcdcdc;
    background: #f0f0f0;
    color: #7a879f;
    cursor: not-allowed;
}
.auth-code-message {
    width: 100%;
    min-height: 28px;
    color: var(--auth-danger);
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 1px;
}
.auth-code-message.is-success {
    color: var(--auth-success);
}
.auth-primary,
.auth-secondary {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 22px;
    line-height: 56px;
    text-align: center;
}
.auth-primary {
    margin-top: 24px;
    background: linear-gradient(90deg, var(--auth-orange-start) 0%, var(--auth-orange-end) 100%);
    cursor: pointer;
}
.auth-primary:hover {
    color: #fff;
    filter: brightness(1.04);
}
.auth-secondary {
    margin-top: 12px;
    background: linear-gradient(90deg, var(--auth-purple-start) 0%, var(--auth-purple-end) 100%);
}
.auth-secondary:hover {
    color: #fff;
    filter: brightness(1.05);
}
.auth-login-separator {
    width: 100%;
    height: 28px;
    margin-top: 25px;
    border-bottom: 1px solid #82899c;
}
.auth-login-separator a {
    color: var(--auth-muted);
}
.auth-login-separator a:hover {
    color: var(--auth-orange);
}
.auth-card--register form {
    margin-top: 0;
}
.auth-card--register .auth-primary {
    margin-top: 24px;
}
.auth-alert {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 20px;
}
.auth-alert--error {
    border: 1px solid rgba(239, 89, 89, .45);
    background: rgba(239, 89, 89, .1);
    color: #ff8d8d;
}
.auth-alert--success {
    border: 1px solid rgba(112, 198, 143, .4);
    background: rgba(112, 198, 143, .1);
    color: #8ee0ad;
}
.auth-footer {
    padding: 20px 15px;
    background: transparent;
    color: #b8c0e7;
    text-align: center;
    font-size: 12px;
}
.country-modal-backdrop {
    position: fixed;
    z-index: 9998;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}
.country-modal-backdrop[hidden],
.country-modal[hidden] {
    display: none !important;
}
.country-modal {
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 512px;
    height: 628px;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: #fff;
    color: #22292e;
}
.country-modal__title {
    height: 60px;
    margin: 0;
    border-bottom: 1px solid #c5c5c7;
    border-radius: 16px 16px 0 0;
    background: #fff;
    color: #22292e;
    font-size: 20px;
    font-weight: 600;
    line-height: 60px;
    text-align: center;
}
.country-modal__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.country-modal__close::before,
.country-modal__close::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 11px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #9aa0a8;
}
.country-modal__close::before {
    transform: rotate(45deg);
}
.country-modal__close::after {
    transform: rotate(-45deg);
}
.country-modal__close:hover::before,
.country-modal__close:hover::after {
    background: #222;
}
.country-modal__letters {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 20px;
    width: 40px;
    margin: 20px 0 0;
    padding: 20px 0;
    transform: translateY(-50%);
    border-radius: 20px;
    background: #f5f5f5;
    list-style: none;
    text-align: center;
}
.country-modal__letters li {
    width: 40px;
    height: 20px;
    margin: 0;
    padding: 0;
}
.country-modal__letters button {
    width: 40px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8a8e;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.country-modal__letters button.is-active {
    color: #5859f3;
}
.country-modal__scroll {
    height: 568px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #8a8a8e transparent;
    scrollbar-width: auto;
}
.country-modal__scroll::-webkit-scrollbar {
    width: 10px;
}
.country-modal__scroll::-webkit-scrollbar-track {
    background: transparent;
}
.country-modal__scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: #8a8a8e;
    background-clip: padding-box;
}
.country-modal__list {
    position: relative;
    padding: 0 50px 30px 30px;
}
.country-group {
    padding: 20px 0;
    scroll-margin-top: 0;
}
.country-group h3 {
    margin: 0;
    color: #8a8a8e;
    font-size: 16px;
    font-weight: 700;
    line-height: 25px;
}
.country-hot-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}
.country-hot-list button {
    margin: 0;
    padding: 10px 30px 10px 0;
    border: 0;
    background: transparent;
    color: #22292e;
    font-size: 14px;
    line-height: 25px;
    cursor: pointer;
}
.country-hot-list button:hover,
.country-row:hover {
    color: #5859f3;
}
.country-row {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 7px 20px 7px 0;
    border: 0;
    background: transparent;
    color: #22292e;
    font-size: 14px;
    line-height: 25px;
    text-align: left;
    cursor: pointer;
}
.country-row__code {
    flex: 1 1 auto;
    margin-left: 20px;
    color: #8a8a8e;
    text-align: right;
}
@media (max-width: 1100px) {
    .auth-stage {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        background-position: -9999px -9999px;
    }
    .auth-card {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 640px) {
    .auth-container {
        max-width: calc(100% - 24px);
    }
    .auth-header__inner {
        min-height: 82px;
        padding: 13px 0;
    }
    .auth-header__nav {
        padding-top: 8px;
        font-size: 14px;
    }
    .auth-header__nav a {
        padding: 0 5px;
    }
    .auth-stage {
        min-height: 0;
        margin-top: 25px;
        margin-bottom: 45px;
    }
    .auth-card {
        width: 100%;
        min-height: 0;
        padding-left: 22px;
        padding-right: 22px;
    }
    .auth-country-trigger {
        flex-basis: 122px;
    }
    .auth-country-name {
        width: 52px;
    }
    .auth-code-input {
        width: calc(100% - 136px);
    }
    .auth-code-button {
        width: 124px;
    }
    .auth-required {
        right: -14px;
    }
    .country-modal {
        width: calc(100% - 28px);
        height: min(628px, calc(100vh - 28px));
    }
    .country-modal__scroll {
        height: calc(100% - 60px);
    }
    .country-modal__letters {
        right: 8px;
    }
    .country-modal__list {
        padding-left: 20px;
        padding-right: 42px;
    }
}
