/* 基础样式 */

html,
body {
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}


/* 顶部导航栏 */

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
}

.left-group,
.right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 20px;
    height: 20px;
}

.brand {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.icon {
    width: 20px;
    height: 20px;
}


/* 主内容区 */

.content {
    position: relative;
    width: 100%;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
    margin-top: 20px;
    transform: none;
    left: auto;
    top: auto;
}

h3 {
    font-size: 18px;
    color: #000;
    margin: 0 0 10px 0;
}

.subtitle {
    font-size: 16px;
    color: #333;
    margin: 0 auto 5px auto;
    max-width: 80%;
}

.main-image {
    width: 320px;
    height: 355px;
    margin: 0 auto 14px auto;
}

.community {
    font-size: 14px;
    color: #000;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid #000;
}


/* 底部按钮 */

.bottom-bar {
    position: static;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
    background: #fff;
}

.btn {
    width: 96px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btnimg {
    width: 96px;
    height: 34px;
}

@media (max-width: 480px) {
    .main-image {
        width: 90%;
        height: auto;
    }
}


/* 确保所有容器元素不会超出视口 */

.top-bar,
.bottom-bar,
.main-image {
    max-width: 100%;
    box-sizing: border-box;
}

.title-bar {
    display: flex;
    align-items: center;
    padding-left: 30px;
    border-radius: 8px;
    margin: 20px auto;
    padding-top: 30px;
}

.register-container {
    margin-top: 10px;
    padding: 0 15px;
}

.welcome-text {
    color: black;
    font-size: 21px;
    margin-left: 20px;
}

.input-field {
    width: calc(100% - 40px);
    height: 45px;
    margin-top: 15px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    padding-left: 20px;
    font-size: 15px;
    color: black;
}

.input-field::placeholder {
    color: #8d8d8d;
}

.password-container {
    position: relative;
    width: calc(100% - 20px);
    margin-top: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.password-field {
    width: calc(100% - 60px);
    height: 45px;
    background: none;
    border: none;
    padding-left: 20px;
    font-size: 15px;
    color: black;
}

.password-field::placeholder {
    color: #8d8d8d;
}

.display-icon {
    position: absolute;
    right: 10px;
    top: 12px;
    width: 20px;
    height: 16px;
    padding: 5px;
}

.password-tips {
    margin-top: 10px;
    margin-left: 45px;
    margin-right: 45px;
}

.password-tips p {
    color: #cf1818;
    font-size: 12px;
}

.condition-row {
    display: flex;
    margin-top: 5px;
}

.condition {
    display: flex;
    align-items: center;
    width: 50%;
}

.condition img {
    width: 14px;
    height: 14px;
}

.condition span {
    margin-left: 10px;
    font-size: 10px;
    color: black;
}

.code-container {
    position: relative;
    width: calc(100% - 20px);
    margin-top: 15px;
}

.code-field {
    width: calc(100% - 90px);
    height: 45px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    padding-left: 20px;
    font-size: 15px;
    color: black;
}

.code-field::placeholder {
    color: #8d8d8d;
}

.get-code-button {
    position: absolute;
    right: 0;
    top: 3px;
    width: 58px;
    height: 45px;
    background-color: #5777FD;
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 45px;
    border-radius: 6px;
    border: none;
}

.get-register-button {
    position: relative;
    width: calc(100% - 20px);
    margin-top: 30px;
    right: 0;
    height: 45px;
    background-color: #5777FD;
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 45px;
    border-radius: 45px;
}

#success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.description {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}