* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.register-container {
    min-height: 100vh;
    background-color: white;
}

/* 顶部标题栏 */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    background-color: white;
    position: relative;
}

.title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.placeholder {
    width: 32px;
    position: absolute;
    left: 16px;
}

.placeholder:last-child {
    left: auto;
    right: 16px;
}

/* 表单容器 */
.form-container {
    padding: 32px 24px;
}

/* 表单项 */
.form-item {
    margin-bottom: 20px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 12px;
}

.icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 0;
}

.input::placeholder {
    color: #999;
}

/* 短信验证码按钮 */
.sms-btn {
    padding: 6px 12px;
    font-size: 12px;
    color: #E93323;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.sms-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

/* 密码切换按钮 */
.toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* 注册按钮 */
.register-btn {
    width: 100%;
    height: 44px;
    background-color: #E93323;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 16px;
}

.register-btn:disabled {
    background-color: #E0E0E0;
    cursor: not-allowed;
}

/* 登录链接 */
.login-link {
    display: flex;
    justify-content: center;
    font-size: 13px;
}

.login-link span {
    color: #999;
}

.login-btn {
    color: #E93323;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 4px;
    text-decoration: none;
}

/* 图形验证码弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    display: none;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 12px;
    color: #999;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.captcha-input {
    width: 120px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    outline: none;
}

.captcha-input:focus {
    border-color: #E93323;
}

.captcha-image {
    width: 120px;
    height: 40px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.cancel-btn {
    flex: 1;
    height: 40px;
    border: 1px solid #E0E0E0;
    background-color: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
}

.confirm-btn {
    flex: 1;
    height: 40px;
    background-color: #E93323;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-body {
    padding: 20px 0;
    text-align: center;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    z-index: 100;
}

.toast.show {
    display: block;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .form-container {
        padding: 24px 20px;
    }
    
    .register-btn {
        height: 40px;
        font-size: 15px;
    }
}

/* 加载状态 */
.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}