html,
body.reference-login-body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #eef3fb;
    color: #191c21;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.reference-login-body *,
.reference-login-body *::before,
.reference-login-body *::after {
    box-sizing: border-box;
}

.auth-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #f8f6f1;
}

.auth-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.auth-page {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding-top: 40vh;
}

.auth-close {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    right: 20px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .76);
    color: #606060;
    font-size: 25px;
    line-height: 26px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
}

.auth-card {
    width: 78.4%;
    max-width: 345px;
    margin: 0 auto;
    padding: 42px 0 25px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.auth-card-inner {
    width: 87%;
    max-width: 300px;
    margin: 0 auto;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 45px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e7e5e0;
    border-radius: 12px;
    background: #f8f6f1;
}

.auth-input-icon {
    flex: 0 0 15px;
    width: 15px;
    margin: 0 8px 0 13px;
    color: #777a7f;
    font-size: 15px;
    text-align: center;
}

.auth-input input {
    min-width: 0;
    height: 43px;
    flex: 1;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #191c21;
    font: 14px/43px "Microsoft YaHei", "PingFang SC", sans-serif;
}

.auth-input input::placeholder {
    color: #9b9b9b;
}

.password-eye {
    flex: 0 0 42px;
    width: 42px;
    height: 43px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202327;
    font-size: 18px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 20px;
    margin-top: 7px;
    color: #191c21;
    font-size: 14px;
}

.remember-choice {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.remember-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 7px;
    border-radius: 50%;
    background: #d6b52d;
    color: #fff;
    font-size: 9px;
}

.remember-choice input:not(:checked) + .remember-dot {
    border: 1px solid #c9c9c9;
    background: #fff;
    color: transparent;
}

.text-action,
.auth-links button,
.customer-service {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(#ff7b6a, #cc3f18);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 7px 13px rgba(204, 63, 24, .18);
}

.primary-action:active {
    transform: translateY(1px);
    filter: brightness(.97);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 20px;
    margin-top: 20px;
    padding: 0 20px;
    color: #191c21;
    font-size: 12px;
}

.accent,
.auth-links .accent {
    color: #d89d59;
}

.customer-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 20px;
    margin-top: 25px;
    color: #333;
    font-size: 12px;
}

.customer-service i {
    font-size: 16px;
}

.auth-register {
    padding-top: 40vh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.register-card {
    padding: 25px 0 22px;
}

.auth-title {
    margin: 0 0 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.register-card .auth-input {
    margin-bottom: 11px;
}

.register-card .primary-action {
    margin-top: 17px;
}

.auth-links-single {
    justify-content: center;
    padding: 0;
}

.sms-input input {
    width: 45%;
}

.sms-button {
    flex: 0 0 88px;
    align-self: stretch;
    padding: 0;
    border: 0;
    border-left: 1px solid #e1ddd5;
    background: transparent;
    color: #d66f43;
    font-size: 12px;
}

button {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

@media (max-height: 720px) {
    .auth-page { padding-top: 34vh; }
    .auth-register { padding-top: 34vh; }
    .customer-service { margin-top: 16px; }
}

@media (min-width: 441px) {
    .auth-shell {
        box-shadow: 0 0 24px rgba(37, 57, 92, .14);
    }
}
