* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    background-image: url('../img/regist/bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 头部区域 */
.header {
    width: 100vw;
    height: 40px;
    background-image: url('../img/regist/download.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 10px 14px 0 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #FFFFFF;
}

header a {
    font-size: 15px;
    color: #FFFFFF;
    text-decoration: none;
}

header a::after {
    content: '>>';
    margin-left: 4px;
}

/* 表单容器 */
.form-container {
    width: 320px; /* 增加到320px，提供更多空间 */
    height: 340px;
    background: url('../img/regist/box.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin: 65% auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 表单样式 */
.form-group {
    margin-top: 14px;
    position: relative;
    width: 100%;
    max-width: 240px;
}

/* 调整所有输入框高度一致 */
.form-input {
    outline: none;
    width: 100%;
    height: 32px;
    border-radius: 2px;
    border: 1px solid #EEEEEF;
    font-size: 13px;
    color: #0E0E0E;
    padding: 0 13px;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #CECECE;
}

/* 验证码输入包装器 */
.code-input-wrapper {
    position: relative;
    width: 100%;
    height: 32px; /* 添加固定高度，确保与输入框一致 */
}

.code-input-wrapper .form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-right: 110px; /* 为验证码按钮或图片留出空间 */
}

/* 获取验证码按钮 */
.get-code-btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 70px;
    height: 26px;
    background-color: #947DFF;
    border-radius: 4px;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    line-height: 26px;
    cursor: pointer;
    z-index: 1;
}

.get-code-btn.counting-down {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 图片验证码容器 */
.captcha-container {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    width: 100px;
    height: 32px; /* 改为与输入框高度一致：32px */
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    z-index: 1;
}

.captcha-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 协议同意 */
.agreement-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 10px;
    color: #95ABFF;
    width: 100%;
    max-width: 240px;
}

.checkbox-wrapper {
    position: relative;
    margin-right: 8px;
    cursor: pointer;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.checkbox-img.unchecked {
    opacity: 1;
}

.checkbox-img.checked {
    opacity: 0;
}

.checkbox-input:checked ~ .checkbox-img.unchecked {
    opacity: 0;
}

.checkbox-input:checked ~ .checkbox-img.checked {
    opacity: 1;
}

.agreement-link {
    color: #18DA2E;
    text-decoration: none;
}

/* 注册按钮 */
.register-btn {
    width: 170px;
    height: 58px;
    background: url('../img/regist/btn.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 10px;
}