.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.login-back-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    padding: 2rem 3rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    min-width: 15rem;
    min-height: 5rem;
}

.login-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.login-help-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    min-height: 5rem;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    padding: 2rem 3rem;
}

.weight-help-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    min-height: 5rem;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    padding: 2rem 3rem;
    position: relative;
    z-index: 10002;
}

.login-menu-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    padding: 2rem 3rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    min-width: 15rem;
    min-height: 5rem;
}

.login-content {
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    position: relative;
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 5rem;
    overflow-y: auto;
}

.login-form-field {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-field-label {
    color: #ff6600;
    font-size: 3.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.login-field-label.user-id-label {
    margin-left: 6rem;
}

.login-field-label.gender-label {
    margin-left: 6rem;
}

.login-required {
    color: #ff6600;
}

.login-user-id-input {
    background: #151515;
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    font-size: 2.5rem;
    width: calc(100% - 12rem);
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-left: 6rem;
    height: 8rem;
}

.login-user-id-input::placeholder {
    color: #888;
}

.login-height-age-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-left: 6rem;
    width: calc(100% - 12rem);
    margin-top: 3rem;
}

.login-gender-section {
    margin-top: 3rem;
}

.login-number-selector {
    position: relative;
    border: 3px solid #555;
    border-radius: 25px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.login-number-unit {
    color: #ffffff;
    font-size: 3.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.login-selector-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #ff6600;
    z-index: 10;
}

.login-number-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
}

.login-number-item {
    color: #9a9a9a;
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, font-size 0.6s ease, color 0.6s ease;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

.login-number-item.selected {
    color: #ffffff;
    font-size: 8rem;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
}

.login-age-selector-container {
    position: relative;
    border: 3px solid #555;
    border-radius: 25px;
    height: 400px;
    width: 100%;
    display: flex;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    justify-content: center;
    gap: 15px;
}

/* 放大身高选择器整体视觉比例（不改变外框尺寸） */
#heightSelector .p-inline-root{
    -webkit-transform: scale(4);
            transform: scale(4);
    -webkit-transform-origin: center center;
            transform-origin: center center;
}

.login-age-digit-selector {
    position: relative;
    flex: 0 0 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.login-age-digit-selector:first-child {
    justify-content: flex-start;
    padding-left: 15px;
}

.login-age-digit-selector:last-child {
    justify-content: flex-end;
    padding-right: 15px;
}

.login-age-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
}

#tensHit {
    left: 0;
    right: 60%;
}

#unitsHit {
    left: 60%;
    right: 0;
}

.login-age-selector-container .login-selector-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #ff6600;
    z-index: 10;
}

#tensSelector .login-number-list {
    align-items: flex-start;
    padding-left: 30px;
    padding-right: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s ease;
}

#tensSelector .login-number-item {
    width: 100%;
    text-align: left;
    color: #9a9a9a;
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, font-size 0.6s ease, color 0.6s ease;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform-origin: center;
}

#tensSelector .login-number-item.selected {
    color: #ffffff;
    font-size: 8rem;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
}

#unitsSelector .login-number-list {
    align-items: flex-end;
    padding-right: 30px;
    padding-left: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s ease;
}

#unitsSelector .login-number-item {
    width: 100%;
    text-align: right;
    color: #9a9a9a;
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, font-size 0.6s ease, color 0.6s ease;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform-origin: center;
}

#unitsSelector .login-number-item.selected {
    color: #ffffff;
    font-size: 8rem;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
}

.login-gender-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 6rem;
    width: calc(100% - 12rem);
    height: 8rem;
}

.login-gender-button {
    flex: 1;
    padding: 2rem;
    border-radius: 1.5rem;
    border: none;
    font-size: 3.5rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    transition: all 0.3s ease;
    height: 8rem;
}

.login-gender-button.selected {
    background: transparent;
    color: #ff6600;
    border: 3px solid #ff6600;
}

.login-gender-button.unselected {
    background: transparent;
    color: #272727;
    border: 3px solid #272727;
}

.login-terms-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    margin-left: 6rem;
    width: calc(100% - 12rem);
}

.login-terms-checkbox {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #ff6600;
    border-radius: 0.5rem;
    position: relative;
    cursor: pointer;
    background-image: none; /* Default: unchecked */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-terms-checkbox.unchecked {
    border: 3px solid #ff6600;
    background-image: none;
}

.login-terms-checkbox.checked {
    border: 3px solid #ff6600;
    background-image: url('../icon/check mark3.png');
}

.login-terms-text {
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    color: #ccc;
    font-size: 2.5rem;
}

.login-terms-link {
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    color: #ff6600;
    text-decoration: underline;
    cursor: pointer;
}

/* 登录页表单错误提示（红色文字） */
.login-error-text {
    color: red;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-left: 6rem;
    margin-top: -1rem;
}

.login-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 4rem 0rem 5rem 0rem;
    flex-shrink: 0;
}

.login-required-text {
    color: #ff6600;
    font-size: 2.5rem;
    font-style: italic;
    margin-right: 20rem;
}

.login-button {
    background: #ff6600;
    border: none;
    border-radius: 1rem;
    color: #000000;
    padding: 2rem 4rem;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 25rem;
    height: 8rem;
    margin-right: 6rem;
}
 /* Prevent transition during initial render to avoid flash */
 #agePicker .wrapper-container:not(.picker-ready),
 #ageTens .wrapper-container:not(.picker-ready),
 #ageUnits .wrapper-container:not(.picker-ready) {
     transition: none !important;
 }






 
/* Terms (FAQ) 弹窗 */
.terms-modal {
    width: calc(100% - 12rem);
    max-height: 72vh;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.terms-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.terms-modal-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
}

.terms-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    padding-right: 1.5rem;
}

.terms-modal-body p {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-indent: 2em;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
   
}

.terms-modal-body p:last-child {
    margin-bottom: 0;
}

.terms-modal-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
  
    text-indent: 0;
}

.terms-modal-body h3:first-child {
    margin-top: 0;
}

.terms-modal-body ol {
    margin: 0;
    margin-bottom: 1.2rem;
    padding-left: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    list-style: none;
    counter-reset: item;
}

.terms-modal-body li {
   
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    counter-increment: item;
    position: relative;
    padding-left: 6rem;
    text-indent: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.terms-modal-body li::before {
    content: "（" counter(item) "）";
    position: absolute;
    left: 1.6em;
}

/* 登录帮助弹窗样式 */
.login-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-help-overlay.active {
    display: flex;
}

.login-help-modal {
    width: calc(100% - 12rem);
    min-height: 72vh;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.login-help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.login-help-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.login-help-modal-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
}

.login-help-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    padding-right: 1.5rem;
}

.login-help-modal-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-indent: 0;
}

.login-help-modal-body p {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-indent: 2em;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.login-help-modal-body .login-help-no-justify {
    text-align: left;
    text-indent: 2em;
}

.login-help-modal-body p + p {
    margin-top: 0.8rem;
}

.login-help-modal-body ul {
    margin: 0.8rem 0 1.2rem 5rem;
    padding: 0;
    list-style: disc;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
}

.login-help-modal-body li {
    margin-bottom: 0.4rem;
    text-indent: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.login-help-modal-body[lang="en"] p,
.login-help-modal-body[lang="en"] li {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.login-help-modal-body[lang="en"] p {
    text-indent: 2em;
}

.login-help-modal-body[lang="en"] .login-help-question,
.login-help-modal-body[lang="en"] .login-help-subtitle,
.login-help-modal-body[lang="en"] .login-help-section-label {
    text-indent: 0;
}

.login-help-modal-body .login-help-subtitle {
    margin: 0.8rem 0 0.4rem;
    text-indent: 0;
    margin-left: -0.5em;
    font-weight: 600;
}

.login-help-modal-body .login-help-question {
    margin: 1.6rem 0 0.8rem;
    font-size: 1.8rem;
    font-weight: 400;
    text-indent: 0;
}

.login-help-modal-body .login-help-section-label {
    margin: 0.8rem 0 0.4rem;
    font-weight: 400;
    text-indent: 0;
}

