.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-section {
    flex: 1;
    background-image: url(../images/loginbg.png);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 120px;
}

.register-form {
    width: 520px;
    /* height: 515px; */
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    /* display: flex; */
}

.register-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    /* margin: 0 auto; */
    text-align: center;
}

.form-input {
    width: 340px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #E3E3E3;
    padding: 0 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #DC1305;
    outline: none;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    width: 340px;
    margin: 0 auto;
    border-radius: 5px;
}

.captcha-input {
    width: 180px;
    height: 40px;
    border-radius: 4px;
    border: 0;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.captcha-img {
    width: 100px;
    height: 32px;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.refresh-text {
    color: #DC1305;
    font-size: 14px;
    cursor: pointer;
}

.agreement-group {
    display: flex;
    align-items: baseline;
    margin: 20px auto;
    width: 320px;
}

.agreement-checkbox {
    margin-right: 8px;
}

.agreement-text {
    font-size: 14px;
}

.agreement-link {
    color: #1890ff;
    cursor: pointer;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 340px;
    height: 40px;
    background: #DC1305;
    border-radius: 4px;
    border: 1px solid #DC1305;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background: #c01104;
}

.submit-btn:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 520px;
    height: 515px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.agreement-content {
    width: 460px;
    height: 356px;
    background: #F9FAFB;
    border-radius: 4px;
    border: 1px solid #E3E3E3;
    padding: 20px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: #DCDCDC;
    border-radius: 4px;
}

.modal-footer {
    text-align: center;
}

.agree-btn {
    width: 187px;
    height: 40px;
    background: #DC1305;
    border-radius: 4px;
    border: 1px solid #DC1305;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.bottom-section {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}


.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #999;
    font-size: 14px;
    width: 340px;
    margin: 20px auto;
}

.auto-login {
    display: flex;
    align-items: center;
}

.auto-login-checkbox {
    margin-right: 8px;
}

.forgot-password {
    color: #999;
    text-decoration: none;
}

.forgot-password:hover {
    color: #DC1305;
}

.login-btn {
    width: 340px;
    height: 40px;
    background: #DC1305;
    border-radius: 4px;
    border: 1px solid #DC1305;
    color: white;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #c01104;
}

.register-prompt {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.register-link {
    color: #DC1305;
    font-size: 14px;
    text-decoration: none;
    margin-left: 5px;
}

.register-link:hover {
    text-decoration: underline;
}


